# CVE-2025-22079: ocfs2: validate l_tree_depth to avoid out-of-bounds access

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:29.215Z
- Modified: 2026-08-05T11:56:34.590Z
- Weaknesses: CWE-125
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before ef34840bda333fe99bafbd2d73b70ceaaf9eba66; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before 538ed8b049ef801a86c543433e5061a91cc106e3; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before 17c99ab3db2ba74096d36c69daa6e784e98fc0b8; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before 11e24802e73362aa2948ee16b8fb4e32635d5b2a; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before 3d012ba4404a0bb517658699ba85e6abda386dc3; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before 49d2a2ea9d30991bae82107f9523915b91637683; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before b942f88fe7d2d789e51c5c30a675fa1c126f5a6d; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c; from ccd979bdbce9fba8412beb3f1de68a9d0171b12c before a406aff8c05115119127c962cbbbbd202e1973ef; 2.6.16 (not affected: before 2.6.16; from 5.4.292 up to 5.4.*; from 5.10.236 up to 5.10.*; from 5.15.180 up to 5.15.*; from 6.1.134 up to 6.1.*; from 6.6.87 up to 6.6.*; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 2.6.16 before 5.4.292; from 5.5 before 5.10.236; from 5.11 before 5.15.180; from 5.16 before 6.1.134; from 6.2 before 6.6.87; from 6.7 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/ef34840bda333fe99bafbd2d73b70ceaaf9eba66> (patch)
- <https://git.kernel.org/stable/c/538ed8b049ef801a86c543433e5061a91cc106e3> (patch)
- <https://git.kernel.org/stable/c/17c99ab3db2ba74096d36c69daa6e784e98fc0b8> (patch)
- <https://git.kernel.org/stable/c/11e24802e73362aa2948ee16b8fb4e32635d5b2a> (patch)
- <https://git.kernel.org/stable/c/3d012ba4404a0bb517658699ba85e6abda386dc3> (patch)
- <https://git.kernel.org/stable/c/49d2a2ea9d30991bae82107f9523915b91637683> (patch)
- <https://git.kernel.org/stable/c/b942f88fe7d2d789e51c5c30a675fa1c126f5a6d> (patch)
- <https://git.kernel.org/stable/c/e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c> (patch)
- <https://git.kernel.org/stable/c/a406aff8c05115119127c962cbbbbd202e1973ef> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

- CVE List: [CVE-2025-22079](https://www.cve.org/CVERecord?id=CVE-2025-22079), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-22079](https://nvd.nist.gov/vuln/detail/CVE-2025-22079), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-22079 · Whole record: https://cve.day/CVE-2025-22079.json · Rebuilt by cve.day 2026-11-25T22:58:56.599Z
