CVE-2025-22079 ocfs2: validate l_tree_depth to avoid out-of-bounds access
A missing validation in the Linux kernel OCFS2 filesystem allows out-of-bounds access via a corrupted disk image, potentially causing crashes or data leaks.
- 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-22079?
CVE-2025-22079 is a high-severity memory corruption 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:
ocfs2: validate l_tree_depth to avoid out-of-bounds access
The l_tree_depth field is 16-bit (__le16), but the actual maximum depth is limited to OCFS2_MAX_PATH_DEPTH.
Add a check to prevent out-of-bounds access if l_tree_depth has an invalid value, which may occur when reading from a corrupted mounted disk [1].
Weakness: CWE-125
Which versions are affected by CVE-2025-22079?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-22079?
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-2025-22079 being exploited?
There is no known exploitation of CVE-2025-22079 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-22079, DEBIAN-CVE-2025-22079, GHSA-h8h5-wj84-22hp, ROOT-OS-UBUNTU-2404-CVE-2025-22079, UBUNTU-CVE-2025-22079.