CVE-2025-22114 btrfs: don't clobber ret in btrfs_validate_super()
A logic error in the Linux kernel btrfs filesystem allows mounting invalid filesystems, potentially leading to undefined behavior or instability.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-22114?
CVE-2025-22114 is a high-severity vulnerability in Linux kernel, published on 16 Apr 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: don't clobber ret in btrfs_validate_super()
Commit 2a9bb78cfd36 ("btrfs: validate system chunk array at btrfs_validate_super()") introduces a call to validate_sys_chunk_array() in btrfs_validate_super(), which clobbers the value of ret set earlier. This has the effect of negating the validity checks done earlier, making it so btrfs could potentially try to mount invalid filesystems.
Which versions are affected by CVE-2025-22114?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-22114?
Apply the vendor's patch.
Is CVE-2025-22114 being exploited?
There is no known exploitation of CVE-2025-22114 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-22114, GHSA-7rq4-gjpx-jq6g, ROOT-OS-DEBIAN-13-CVE-2025-22114, UBUNTU-CVE-2025-22114.