# CVE-2025-22079: ocfs2: validate l\_tree\_depth to avoid out-of-bounds access

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-04-16T14:12:29.215Z
- **Modified:** 2026-08-05T11:56:34.590Z

## Who should check

- Anyone running Linux \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< ef34840bda333fe99bafbd2d73b70ceaaf9eba66; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 538ed8b049ef801a86c543433e5061a91cc106e3; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 17c99ab3db2ba74096d36c69daa6e784e98fc0b8; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 11e24802e73362aa2948ee16b8fb4e32635d5b2a; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 3d012ba4404a0bb517658699ba85e6abda386dc3; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 49d2a2ea9d30991bae82107f9523915b91637683; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< b942f88fe7d2d789e51c5c30a675fa1c126f5a6d; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< a406aff8c05115119127c962cbbbbd202e1973ef
- Anyone running Linux 2.6.16

## 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 and fixed versions

- Linux: \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< ef34840bda333fe99bafbd2d73b70ceaaf9eba66; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 538ed8b049ef801a86c543433e5061a91cc106e3; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 17c99ab3db2ba74096d36c69daa6e784e98fc0b8; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 11e24802e73362aa2948ee16b8fb4e32635d5b2a; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 3d012ba4404a0bb517658699ba85e6abda386dc3; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 49d2a2ea9d30991bae82107f9523915b91637683; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< b942f88fe7d2d789e51c5c30a675fa1c126f5a6d; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< a406aff8c05115119127c962cbbbbd202e1973ef (cvelist)
- Linux: 2.6.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22079. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22079.md
Affected: Linux >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < ef34840bda333fe99bafbd2d73b70ceaaf9eba66; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 538ed8b049ef801a86c543433e5061a91cc106e3; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 17c99ab3db2ba74096d36c69daa6e784e98fc0b8; >= ccd979bdbce9fba8412beb3…
Fixed in: Linux 538ed8b049ef801a86c543433e5061a91cc106e3, Linux 17c99ab3db2ba74096d36c69daa6e784e98fc0b8, Linux 11e24802e73362aa2948ee16b8fb4e32635d5b2a, Linux 3d012ba4404a0bb517658699ba85e6abda386dc3, Linux 49d2a2ea9d30991bae82107f9523915b91637683

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22079 being exploited?

There is no confirmed exploitation: CVE-2025-22079 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22079?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-22079?

Linux \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< ef34840bda333fe99bafbd2d73b70ceaaf9eba66; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 538ed8b049ef801a86c543433e5061a91cc106e3; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 17c99ab3db2ba74096d36c69daa6e784e98fc0b8; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 11e24802e73362aa2948ee16b8fb4e32635d5b2a; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 3d012ba4404a0bb517658699ba85e6abda386dc3; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< 49d2a2ea9d30991bae82107f9523915b91637683; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< b942f88fe7d2d789e51c5c30a675fa1c126f5a6d; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< e95d97c9c8cd0c239b7b59c79be0f6a9dcf7905c; \>= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, \< a406aff8c05115119127c962cbbbbd202e1973ef; Linux 2.6.16.

### Is there a fix for CVE-2025-22079?

Yes. Fixed in Linux 538ed8b049ef801a86c543433e5061a91cc106e3, Linux 17c99ab3db2ba74096d36c69daa6e784e98fc0b8, Linux 11e24802e73362aa2948ee16b8fb4e32635d5b2a, Linux 3d012ba4404a0bb517658699ba85e6abda386dc3, Linux 49d2a2ea9d30991bae82107f9523915b91637683. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-22079?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22079>

HTML: <https://flawdb.com/CVE-2025-22079> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22079>
