CVE-2023-54297 btrfs: zoned: fix memory leak after finding block group with super blocks
A memory leak in the Linux kernel's btrfs zoned filesystem code allows local attackers to cause denial of service by exhausting memory.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-54297?
CVE-2023-54297 is a memory corruption vulnerability in Linux, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2023-54297?
How do I fix CVE-2023-54297?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-54297 being exploited?
There is no known exploitation of CVE-2023-54297 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2023-54297, DEBIAN-CVE-2023-54297, GHSA-pg5c-ggpq-f3pm, UBUNTU-CVE-2023-54297.