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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **Published:** 2025-12-30T12:23:33.834Z
- **Modified:** 2026-06-17T06:47:10.727Z

## Who should check

- Anyone running Linux \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< ab80a901f8daca07c4a54af0ab0de745c9918294; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< c35ea606196243063e63785918c7c8fe27c45798; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< cca627afb463a4b47721eac017516ba200de85c3; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< f1a07c2b4e2c473ec322b8b9ece071b8c88a3512
- Anyone running Linux 5.11

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

## Affected and fixed versions

- Linux: \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< ab80a901f8daca07c4a54af0ab0de745c9918294; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< c35ea606196243063e63785918c7c8fe27c45798; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< cca627afb463a4b47721eac017516ba200de85c3; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< f1a07c2b4e2c473ec322b8b9ece071b8c88a3512 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54297. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54297.md
Affected: Linux >= 12659251ca5df05a484eb122c2c34c18d84e797c, < ab80a901f8daca07c4a54af0ab0de745c9918294; >= 12659251ca5df05a484eb122c2c34c18d84e797c, < c35ea606196243063e63785918c7c8fe27c45798; >= 12659251ca5df05a484eb122c2c34c18d84e797c, < cca627afb463a4b47721eac017516ba200de85c3; >= 12659251ca5df05a484eb12…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54297 being exploited?

There is no confirmed exploitation: CVE-2023-54297 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-54297?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54297?

Linux \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< ab80a901f8daca07c4a54af0ab0de745c9918294; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< c35ea606196243063e63785918c7c8fe27c45798; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< cca627afb463a4b47721eac017516ba200de85c3; \>= 12659251ca5df05a484eb122c2c34c18d84e797c, \< f1a07c2b4e2c473ec322b8b9ece071b8c88a3512; Linux 5.11.

### Is there a fix for CVE-2023-54297?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54297?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ab80a901f8daca07c4a54af0ab0de745c9918294>
- other: <https://git.kernel.org/stable/c/c35ea606196243063e63785918c7c8fe27c45798>
- other: <https://git.kernel.org/stable/c/cca627afb463a4b47721eac017516ba200de85c3>
- other: <https://git.kernel.org/stable/c/f1a07c2b4e2c473ec322b8b9ece071b8c88a3512>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54297>

HTML: <https://flawdb.com/CVE-2023-54297> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54297>
