Skip to main content
Menu
CVEs

Linux kernel out-of-bounds write in ocfs2 path search

CVE-2026-99820EUVD-2026-138053GHSA-RFF9-G5HX-PV5PPublished November 30, 2026, updated

7.8HighCNA
Exploited
No known exploitation
Fix
No fix listed
Who is exposed
Specific setups only

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

Original 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.

Who should check

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

“Someone must mount the attacker-supplied ocfs2 image or device”

cve.org

What to do

  1. Check whether your setup matches what the bug needs.

    Corrupted ocfs2 image whose extent block points to itself Attacker-supplied ocfs2 image or device must be mounted on the host A local ftruncate() on a file in the corrupted tree triggers the bug
  2. Workaround: 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.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

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"}.

Affected versions

cve.now Index

38Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity7.8/10CVSS 7.8
  • No patch5/5No patch listed yet

What would change the score

  • Would score about 88 if added to CISA KEV
  • Would score about 83 if CISA's SSVC rates exploitation active
  • Would score about 48 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated
  4. Posted on X by cve.now

Evidence 10

Questions about CVE-2026-99820

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: cve.now feed data

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: git.kernel.org, cve.org

Which versions are affected by CVE-2026-99820?

Linux: version 2.6.22.

Source: cve.now feed data

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: git.kernel.org, cve.org

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: git.kernel.org, cve.org

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: git.kernel.org, cve.org

No corrections so far. Something wrong on this page? Report an error.