# CVE-2026-89492: ocfs2: validate directory-index entry counts when reading metadata

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **Published:** 2026-09-11T19:43:44.137Z
- **Modified:** 2026-10-30T13:20:18.043Z

## Who should check

- Anyone running Linux \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 3f28574dd59672ac47f3110c9a8ead703ec021c0; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 3497aa757788de5d904f41814f1df0b292a8be09; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 47b8152ed7709f7ef30b398fb0bfe4b452dd0495; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< aad3129b8e915d0ff492bb7517d825d8490cfdd9; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 5e661f55ca8568471fce558effe81cca112f5cb2; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< fcfcba8fe17dbf2c8805690b8cc25e32d81249a4; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< b8a5c0c32df2c5b685ceef76ac77e37c7e1dc3ed; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< bc70726ddad53c7e9a9a85915bf2415b0d4f42f9
- Anyone running Linux 2.6.30

## Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: validate directory-index entry counts when reading metadata

ocfs2\_validate\_dx\_leaf() and ocfs2\_validate\_dx\_root() check the ECC and
signature of an indexed-directory block before it reaches higher-level
callers, but neither validator bounds the ocfs2\_dx\_entry\_list counts
against the capacity of the block that holds them.

ocfs2\_dx\_dir\_search() then walks

	for (i = 0; i \< le16\_to\_cpu(entry\_list-\>de\_num\_used); i++)
		dx\_entry = &entry\_list-\>de\_entries\[i\];

over de\_num\_used entries with no bounds check.  entry\_list is either
dx\_leaf-\>dl\_list (from ocfs2\_read\_dx\_leaf) or, for an inline root,
dx\_root-\>dr\_entries.  A crafted on-disk image can set de\_num\_used (and
de\_count, which is the \_\_counted\_by\_le() bound of de\_entries) to 0xffff
and make the walk read far past the end of the 4KB metadata block, giving
a slab out-of-bounds read reachable from any path lookup, stat() or open()
on an indexed directory once the image is mounted.

Commit 775c17386a6f ("ocfs2: validate dx\_root extent list fields during
block read") already bounds dr\_list for the non-inline dx\_root, but left
the inline dr\_entries path and the dx\_leaf dl\_list unchecked.  Add the
same read-time validation for both entry lists: de\_count must equal the
capacity of the block (ocfs2\_dx\_entries\_per\_leaf()/per\_root()) and
de\_num\_used must not exceed de\_count, rejecting corrupted metadata with
-EFSCORRUPTED before ocfs2\_dx\_dir\_search() can walk an out-of-range entry
array.

de\_count is always written as exactly the block capacity when a leaf or
inline root is formatted, so the equality check does not reject any valid
image.

Found by 0sec automated security-research tooling (https://0sec.ai).

## Affected and fixed versions

- Linux: \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 3f28574dd59672ac47f3110c9a8ead703ec021c0; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 3497aa757788de5d904f41814f1df0b292a8be09; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 47b8152ed7709f7ef30b398fb0bfe4b452dd0495; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< aad3129b8e915d0ff492bb7517d825d8490cfdd9; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 5e661f55ca8568471fce558effe81cca112f5cb2; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< fcfcba8fe17dbf2c8805690b8cc25e32d81249a4; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< b8a5c0c32df2c5b685ceef76ac77e37c7e1dc3ed; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< bc70726ddad53c7e9a9a85915bf2415b0d4f42f9 (cvelist)
- Linux: 2.6.30 (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-2026-89492. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89492.md
Affected: Linux >= 9b7895efac906d66d19856194e1ba61f37e231a4, < 3f28574dd59672ac47f3110c9a8ead703ec021c0; >= 9b7895efac906d66d19856194e1ba61f37e231a4, < 3497aa757788de5d904f41814f1df0b292a8be09; >= 9b7895efac906d66d19856194e1ba61f37e231a4, < 47b8152ed7709f7ef30b398fb0bfe4b452dd0495; >= 9b7895efac906d66d198561…
Fixed in: Linux 3f28574dd59672ac47f3110c9a8ead703ec021c0, Linux 3497aa757788de5d904f41814f1df0b292a8be09, Linux 47b8152ed7709f7ef30b398fb0bfe4b452dd0495, Linux 5e661f55ca8568471fce558effe81cca112f5cb2

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-2026-89492 being exploited?

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

### How serious is CVE-2026-89492?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-89492?

Linux \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 3f28574dd59672ac47f3110c9a8ead703ec021c0; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 3497aa757788de5d904f41814f1df0b292a8be09; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 47b8152ed7709f7ef30b398fb0bfe4b452dd0495; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< aad3129b8e915d0ff492bb7517d825d8490cfdd9; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< 5e661f55ca8568471fce558effe81cca112f5cb2; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< fcfcba8fe17dbf2c8805690b8cc25e32d81249a4; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< b8a5c0c32df2c5b685ceef76ac77e37c7e1dc3ed; \>= 9b7895efac906d66d19856194e1ba61f37e231a4, \< bc70726ddad53c7e9a9a85915bf2415b0d4f42f9; Linux 2.6.30.

### Is there a fix for CVE-2026-89492?

Yes. Fixed in Linux 3f28574dd59672ac47f3110c9a8ead703ec021c0, Linux 3497aa757788de5d904f41814f1df0b292a8be09, Linux 47b8152ed7709f7ef30b398fb0bfe4b452dd0495, Linux 5e661f55ca8568471fce558effe81cca112f5cb2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-89492?

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

- other: <https://git.kernel.org/stable/c/3f28574dd59672ac47f3110c9a8ead703ec021c0>
- other: <https://git.kernel.org/stable/c/3497aa757788de5d904f41814f1df0b292a8be09>
- other: <https://git.kernel.org/stable/c/47b8152ed7709f7ef30b398fb0bfe4b452dd0495>
- other: <https://git.kernel.org/stable/c/aad3129b8e915d0ff492bb7517d825d8490cfdd9>
- other: <https://git.kernel.org/stable/c/5e661f55ca8568471fce558effe81cca112f5cb2>
- other: <https://git.kernel.org/stable/c/fcfcba8fe17dbf2c8805690b8cc25e32d81249a4>
- other: <https://git.kernel.org/stable/c/b8a5c0c32df2c5b685ceef76ac77e37c7e1dc3ed>
- other: <https://git.kernel.org/stable/c/bc70726ddad53c7e9a9a85915bf2415b0d4f42f9>

## 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-2026-89492>

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