{"id":"CVE-2026-99820","aliases":["CVE-2026-99820"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: fix array out of bound access in __ocfs2_find_path()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T07:52:21.143Z","modified":"2026-12-01T06:17:52.207Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"825e31b1dd0711d3e611b0e53c43d905471b15b5","status":"affected"},{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"3f777a202b58927d2b9b79c500ae1c8b89b8d436","status":"affected"},{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"3d608a953dc4bdd39516a79b6ffb8924736bb000","status":"affected"},{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"cf8e485c3e76c8caad3bb91539b08bc11252676a","status":"affected"},{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"7c07e14de49ec2e0080e2d6bfc5709502f88ed34","status":"affected"},{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"f254281e111578ec90f4434f34a7264521173359","status":"affected"},{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"bf8a21fb049f55804d9a5ad7cf864e71697df0cc","status":"affected"},{"type":"git","introduced":"dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8","fixed":"6193ce7896afb52a321a0063c8b6a45e477a84e2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.22","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.22","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/825e31b1dd0711d3e611b0e53c43d905471b15b5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f777a202b58927d2b9b79c500ae1c8b89b8d436","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d608a953dc4bdd39516a79b6ffb8924736bb000","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf8e485c3e76c8caad3bb91539b08bc11252676a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c07e14de49ec2e0080e2d6bfc5709502f88ed34","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f254281e111578ec90f4434f34a7264521173359","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf8a21fb049f55804d9a5ad7cf864e71697df0cc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6193ce7896afb52a321a0063c8b6a45e477a84e2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99820","url":"https://www.cve.org/CVERecord?id=CVE-2026-99820","licence":"CVE Terms of Use","modified":"2026-12-01T05:43:35.872Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99820","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99820","licence":"Public domain","modified":"2026-12-01T06:17:52.207Z"}],"updatedAt":"2026-12-01T06:32:13.940Z","epss":{"score":0.00288,"percentile":0.22919,"date":"2026-12-01T12:00:22.000Z"}}