Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99820

published high CVSS 3.1 · 7.8

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

Published
30 Nov 2026, 07:52:21 UTC
Updated
01 Dec 2026, 05:43:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxdcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 825e31b1dd0711d3e611b0e53c43d905471b15b5 · dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 3f777a202b58927d2b9b79c500ae1c8b89b8d436 · dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 3d608a953dc4bdd39516a79b6ffb8924736bb000 · dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < cf8e485c3e76c8caad3bb91539b08bc11252676a · dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 7c07e14de49ec2e0080e2d6bfc5709502f88ed34 · dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < f254281e111578ec90f4434f34a7264521173359 · dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < bf8a21fb049f55804d9a5ad7cf864e71697df0cc · dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 6193ce7896afb52a321a0063c8b6a45e477a84e2 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.22 (affected) · 0 to < 2.6.22 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The malformed data is a cycle or over-long chain of on-disk ocfs2 extent blocks whose l_tree_depth never decreases. It must come from a crafted image or block device attached to the host, and is then reached by the local ftruncate() syscall. No network protocol carries the extent-block contents. AC:L - The image author controls every l_tree_depth and e_blkno and can compute the optional metaecc. A finite chain of depth-1 blocks ending in a leaf fixes exactly how many {bh, el} pairs find_path_ins() writes past p_node[4]. Truncating a file in that tree triggers it every time, with no race involved. PR:N - The bad tree is planted on the image and needs no account on the target. Once mounted, the crafted file's owner and mode are whatever the image says, so the ftruncate() trigger needs no privilege. ocfs2_fs_type is FS_REQUIRES_DEV only, so the mount cannot be done from a user namespace and is counted under UI instead. UI:R - Someone must mount the attacker-supplied ocfs2 image or device (local mode needs no cluster stack). That mount is the required victim action, and nothing the attacker does alone can create a corrupted extent tree on a filesystem built by the kernel. S:U - The overflow corrupts kmalloc slab memory in the same kernel that parses the image. No VM, IOMMU or sandbox boundary is crossed. C:H - p_node[5] begins exactly at the next kmalloc-96 object, since struct ocfs2_path is 96 bytes. That neighbour's fields at offsets 8, 24, 40 and so on are overwritten with `el` pointers to extent-block data the attacker wrote, which can stand in for a fake object and be used for arbitrary kernel reads. I:H - find_path_ins() writes past the end of path->p_node[] for as long as the descent continues, so the length is set by the chain length and is unbounded for a self-loop. It overwrites neighbouring slab objects with buffer_head and extent-list pointers, which is a classic route to control-flow hijack and privilege escalation. A:H - A self-referencing extent block makes __ocfs2_find_path() loop forever, writing through slab memory until it faults. Shorter chains leave corrupted neighbouring objects and leaked bh references that end in an oops.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 825e31b1dd0711d3e611b0e53c43d905471b15b5 (affected · git)dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 3f777a202b58927d2b9b79c500ae1c8b89b8d436 (affected · git)dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 3d608a953dc4bdd39516a79b6ffb8924736bb000 (affected · git)dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < cf8e485c3e76c8caad3bb91539b08bc11252676a (affected · git)dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 7c07e14de49ec2e0080e2d6bfc5709502f88ed34 (affected · git)dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < f254281e111578ec90f4434f34a7264521173359 (affected · git)dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < bf8a21fb049f55804d9a5ad7cf864e71697df0cc (affected · git)dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 to < 6193ce7896afb52a321a0063c8b6a45e477a84e2 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.22 (affected)0 to < 2.6.22 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
937a6e62092dbdb566fdca9cf052792dd28d203b93bb4e58773c545f92ff6f8c
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected