[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025123031-CVE-2023-54297-6171@gregkh>
Date: Tue, 30 Dec 2025 13:23:50 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-54297: btrfs: zoned: fix memory leak after finding block group with super blocks
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
btrfs: zoned: fix memory leak after finding block group with super blocks
At exclude_super_stripes(), if we happen to find a block group that has
super blocks mapped to it and we are on a zoned filesystem, we error out
as this is not supposed to happen, indicating either a bug or maybe some
memory corruption for example. However we are exiting the function without
freeing the memory allocated for the logical address of the super blocks.
Fix this by freeing the logical address.
The Linux kernel CVE team has assigned CVE-2023-54297 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 5.15.123 with commit ab80a901f8daca07c4a54af0ab0de745c9918294
Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 6.1.42 with commit c35ea606196243063e63785918c7c8fe27c45798
Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 6.4.7 with commit cca627afb463a4b47721eac017516ba200de85c3
Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 6.5 with commit f1a07c2b4e2c473ec322b8b9ece071b8c88a3512
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2023-54297
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/btrfs/block-group.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/ab80a901f8daca07c4a54af0ab0de745c9918294
https://git.kernel.org/stable/c/c35ea606196243063e63785918c7c8fe27c45798
https://git.kernel.org/stable/c/cca627afb463a4b47721eac017516ba200de85c3
https://git.kernel.org/stable/c/f1a07c2b4e2c473ec322b8b9ece071b8c88a3512
Powered by blists - more mailing lists