{"id":"CVE-2026-99820","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T08:18:02.913","lastModified":"2026-12-01T06:17:52.207","vulnStatus":"Received","cveTags":[],"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/ocfs2/alloc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"825e31b1dd0711d3e611b0e53c43d905471b15b5","versionType":"git","status":"affected"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"3f777a202b58927d2b9b79c500ae1c8b89b8d436","versionType":"git","status":"affected"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"3d608a953dc4bdd39516a79b6ffb8924736bb000","versionType":"git","status":"affected"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"cf8e485c3e76c8caad3bb91539b08bc11252676a","versionType":"git","status":"affected"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"7c07e14de49ec2e0080e2d6bfc5709502f88ed34","versionType":"git","status":"affected"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"f254281e111578ec90f4434f34a7264521173359","versionType":"git","status":"affected"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"bf8a21fb049f55804d9a5ad7cf864e71697df0cc","versionType":"git","status":"affected"},{"version":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","lessThan":"6193ce7896afb52a321a0063c8b6a45e477a84e2","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/ocfs2/alloc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.22","status":"affected"},{"version":"0","lessThan":"2.6.22","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/3d608a953dc4bdd39516a79b6ffb8924736bb000","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/3f777a202b58927d2b9b79c500ae1c8b89b8d436","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6193ce7896afb52a321a0063c8b6a45e477a84e2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7c07e14de49ec2e0080e2d6bfc5709502f88ed34","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/825e31b1dd0711d3e611b0e53c43d905471b15b5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/bf8a21fb049f55804d9a5ad7cf864e71697df0cc","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cf8e485c3e76c8caad3bb91539b08bc11252676a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f254281e111578ec90f4434f34a7264521173359","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}