Skip to content
statance
MenuClose
high · CVSS 7.8

CVE-2026-99820

ocfs2: fix array out of bound access in __ocfs2_find_path()

Published 30 Nov 2026 · Source updated 1 Dec 2026 · Retrieved 2026-12-04 22:12 UTC

Monitor this CVE ↗Full CVE monitoring on Pro and Business

What happened?

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.

Description supplied by CVE Program. Formatting is simplified; follow the original advisory for full details.

Affected software and versions

Source-provided software and version information
SoftwareVersion informationFixed version
LinuxLinuxaffected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 825e31b1dd0711d3e611b0e53c43d905471b15b5; affected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 3f777a202b58927d2b9b79c500ae1c8b89b8d436; affected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 3d608a953dc4bdd39516a79b6ffb8924736bb000; affected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < cf8e485c3e76c8caad3bb91539b08bc11252676a; affected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 7c07e14de49ec2e0080e2d6bfc5709502f88ed34; affected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < f254281e111578ec90f4434f34a7264521173359; affected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < bf8a21fb049f55804d9a5ad7cf864e71697df0cc; affected: dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 6193ce7896afb52a321a0063c8b6a45e477a84e2See vendor advisory
LinuxLinuxaffected: 2.6.22; unaffected: 0 to < 2.6.22; unaffected: 5.10.275 to ≤ 5.10.*; unaffected: 5.15.226 to ≤ 5.15.*; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.4 to ≤ 7.3.*; unaffected: 7.4-rc1 to ≤ *See vendor advisory

Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.

Is it being exploited?

This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.

CISA data retrieved 2026-12-05 02:05 UTC. Check CISA ↗

How to respond

  1. Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
  2. Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
  3. Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.

Sources and remediation references

This public advisory does not determine whether a particular server is affected. Records are refreshed as sources change; verify urgent decisions against the original advisory.

← Browse the public CVE feed