# CVE-2023-54297: btrfs: zoned: fix memory leak after finding block group with super blocks

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-30T12:23:33.834Z
- Modified: 2026-06-17T06:47:10.727Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 12659251ca5df05a484eb122c2c34c18d84e797c before ab80a901f8daca07c4a54af0ab0de745c9918294; from 12659251ca5df05a484eb122c2c34c18d84e797c before c35ea606196243063e63785918c7c8fe27c45798; from 12659251ca5df05a484eb122c2c34c18d84e797c before cca627afb463a4b47721eac017516ba200de85c3; from 12659251ca5df05a484eb122c2c34c18d84e797c before f1a07c2b4e2c473ec322b8b9ece071b8c88a3512; 5.11 (not affected: before 5.11; from 5.15.123 up to 5.15.*; from 6.1.42 up to 6.1.*; from 6.4.7 up to 6.4.*; from 6.5 up to *)

## References

- <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>

## Sources

- CVE List: [CVE-2023-54297](https://www.cve.org/CVERecord?id=CVE-2023-54297), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54297](https://nvd.nist.gov/vuln/detail/CVE-2023-54297), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-54297 · Whole record: https://cve.day/CVE-2023-54297.json · Rebuilt by cve.day 2026-11-25T22:58:35.264Z
