CVE-2023-54297
btrfs: zoned: fix memory leak after finding block group with super blocks
Check your servers for CVE-2023-54297
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54297 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 12659251ca5df05a484eb122c2c34c18d84e797c, before ab80a901f8daca07c4a54af0ab0de745c9918294 affected from 12659251ca5df05a484eb122c2c34c18d84e797c, before c35ea606196243063e63785918c7c8fe27c45798 affected from 12659251ca5df05a484eb122c2c34c18d84e797c, before cca627afb463a4b47721eac017516ba200de85c3 affected from 12659251ca5df05a484eb122c2c34c18d84e797c, before f1a07c2b4e2c473ec322b8b9ece071b8c88a3512
Other versions: unaffected
|
| Linux |
affected 5.11 unaffected before 5.11 unaffected from 5.15.123 up to and including 5.15.* unaffected from 6.1.42 up to and including 6.1.* unaffected from 6.4.7 up to and including 6.4.* unaffected 6.5 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54297 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54297
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-54297
trivy image --scanners vuln IMAGE | grep CVE-2023-54297
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/ab80a901f8daca07c4a54af0ab0de745c9918294 git.kernel.org
- https://git.kernel.org/stable/c/c35ea606196243063e63785918c7c8fe27c45798 git.kernel.org
- https://git.kernel.org/stable/c/cca627afb463a4b47721eac017516ba200de85c3 git.kernel.org
- https://git.kernel.org/stable/c/f1a07c2b4e2c473ec322b8b9ece071b8c88a3512 git.kernel.org
Source: the record CVE-2023-54297 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse