CVE-2025-22079

ocfs2: validate l_tree_depth to avoid out-of-bounds access

HIGH
7.1
CVSS Score
Published: April 16, 2025 at 02:12 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.16 ≤ v < 5.10.2362.6.16 ≤ v < 5.15.1802.6.16 ≤ v < 5.4.2922.6.16 ≤ v < 6.1.1342.6.16 ≤ v < 6.12.232.6.16 ≤ v < 6.13.112.6.16 ≤ v < 6.14.22.6.16 ≤ v < 6.152.6.16 ≤ v < 6.6.875.11 ≤ v < 5.15.1805.16 ≤ v < 6.1.1345.5 ≤ v < 5.10.2366.13 ≤ v < 6.13.116.14 ≤ v < 6.14.26.2 ≤ v < 6.6.876.7 ≤ v < 6.12.232.6.16ccd979bdbce9fba8412beb3f1de68a9d0171b12c
Vendor states this is fixed in 11e24802e73362aa2948ee16b8fb4e32635d5b2a (fixed)
Vendor states this is fixed in 17c99ab3db2ba74096d36c69daa6e784e98fc0b8 (fixed)
Vendor states this is fixed in 3d012ba4404a0bb517658699ba85e6abda386dc3 (fixed)
Vendor states this is fixed in 49d2a2ea9d30991bae82107f9523915b91637683 (fixed)
Vendor states this is fixed in 538ed8b049ef801a86c543433e5061a91cc106e3 (fixed)
Vendor states this is fixed in a406aff8c05115119127c962cbbbbd202e1973ef (fixed)
Vendor states this is fixed in b942f88fe7d2d789e51c5c30a675fa1c126f5a6d (fixed)
Vendor states this is fixed in e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c (fixed)
Vendor states this is fixed in ef34840bda333fe99bafbd2d73b70ceaaf9eba66 (fixed)
Vendor states this is fixed in 2.6.16 (unaffected)
Vendor states this is fixed in 5.10.236 (unaffected)
Vendor states this is fixed in 5.15.180 (unaffected)
Vendor states this is fixed in 5.4.292 (unaffected)
Vendor states this is fixed in 6.1.134 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.87 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/11e24802e73362aa2948ee16b8fb4e32635d5b2a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/17c99ab3db2ba74096d36c69daa6e784e98fc0b8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3d012ba4404a0bb517658699ba85e6abda386dc3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/49d2a2ea9d30991bae82107f9523915b91637683
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/538ed8b049ef801a86c543433e5061a91cc106e3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a406aff8c05115119127c962cbbbbd202e1973ef
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b942f88fe7d2d789e51c5c30a675fa1c126f5a6d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card