{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99820","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.436Z","datePublished":"2026-11-30T07:52:21.143Z","dateUpdated":"2026-12-01T05:43:35.872Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:35.872Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix array out of bound access in __ocfs2_find_path()\n\n__ocfs2_find_path() walks down the extent tree and records path by calling\nfind_path_ins(), which appends entry to path->p_node[].  It only has 5\nspots.\n\nA corrupted ocfs2 image whose extent block is pointing to itself causes\n__ocfs2_find_path() descent endlessly, writing past the end of\npath->p_node[] array.\n\n UBSAN: array-index-out-of-bounds in fs/ocfs2/alloc.c:677:14\n index 5 is out of range for type 'ocfs2_path_item [5]'\n Call Trace:\n  <TASK>\n  find_path_ins (fs/ocfs2/alloc.c:677 fs/ocfs2/alloc.c:1914)\n  __ocfs2_find_path.constprop.0 (fs/ocfs2/alloc.c:1882)\n  ocfs2_commit_truncate (fs/ocfs2/alloc.c:1924 fs/ocfs2/alloc.c:7286)\n  ocfs2_truncate_file (fs/ocfs2/file.c:515)\n  ocfs2_setattr (fs/ocfs2/file.c:1224)\n  notify_change (fs/attr.c:556)\n  do_truncate (fs/open.c:68)\n  do_ftruncate (fs/open.c:194 (discriminator 1))\n  ksys_ftruncate (fs/open.c:206)\n  __x64_sys_ftruncate (fs/open.c:211 fs/open.c:209 fs/open.c:209)\n\nCommit a406aff8c051 (\"ocfs2: validate l_tree_depth to avoid out-of-bounds\naccess\") already restricts el->l_tree_depth to be less than\nOCFS2_MAX_PATH_DEPTH, which is equal to 5.  However, does not handle the\ninfinite descent case.\n\nCheck if the el->l_tree_depth decreases on each descent.  Maximum descents\nare restricted to 4 and the path->p_node[] array does not overflow."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS:U - The overflow corrupts kmalloc slab memory in the same kernel that parses the image. No VM, IOMMU or sandbox boundary is crossed.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/alloc.c"],"versions":[{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"825e31b1dd0711d3e611b0e53c43d905471b15b5","status":"affected","versionType":"git"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"3f777a202b58927d2b9b79c500ae1c8b89b8d436","status":"affected","versionType":"git"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"3d608a953dc4bdd39516a79b6ffb8924736bb000","status":"affected","versionType":"git"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"cf8e485c3e76c8caad3bb91539b08bc11252676a","status":"affected","versionType":"git"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"7c07e14de49ec2e0080e2d6bfc5709502f88ed34","status":"affected","versionType":"git"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"f254281e111578ec90f4434f34a7264521173359","status":"affected","versionType":"git"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"bf8a21fb049f55804d9a5ad7cf864e71697df0cc","status":"affected","versionType":"git"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"6193ce7896afb52a321a0063c8b6a45e477a84e2","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/alloc.c"],"versions":[{"version":"2.6.22","status":"affected"},{"version":"0","lessThan":"2.6.22","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.22","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/825e31b1dd0711d3e611b0e53c43d905471b15b5"},{"url":"https://git.kernel.org/stable/c/3f777a202b58927d2b9b79c500ae1c8b89b8d436"},{"url":"https://git.kernel.org/stable/c/3d608a953dc4bdd39516a79b6ffb8924736bb000"},{"url":"https://git.kernel.org/stable/c/cf8e485c3e76c8caad3bb91539b08bc11252676a"},{"url":"https://git.kernel.org/stable/c/7c07e14de49ec2e0080e2d6bfc5709502f88ed34"},{"url":"https://git.kernel.org/stable/c/f254281e111578ec90f4434f34a7264521173359"},{"url":"https://git.kernel.org/stable/c/bf8a21fb049f55804d9a5ad7cf864e71697df0cc"},{"url":"https://git.kernel.org/stable/c/6193ce7896afb52a321a0063c8b6a45e477a84e2"}],"title":"ocfs2: fix array out of bound access in __ocfs2_find_path()","x_generator":{"engine":"bippy-1.2.0"}}}}