{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8"
            },
            {
              "fixed": "825e31b1dd0711d3e611b0e53c43d905471b15b5"
            },
            {
              "fixed": "3f777a202b58927d2b9b79c500ae1c8b89b8d436"
            },
            {
              "fixed": "3d608a953dc4bdd39516a79b6ffb8924736bb000"
            },
            {
              "fixed": "cf8e485c3e76c8caad3bb91539b08bc11252676a"
            },
            {
              "fixed": "7c07e14de49ec2e0080e2d6bfc5709502f88ed34"
            },
            {
              "fixed": "f254281e111578ec90f4434f34a7264521173359"
            },
            {
              "fixed": "bf8a21fb049f55804d9a5ad7cf864e71697df0cc"
            },
            {
              "fixed": "6193ce7896afb52a321a0063c8b6a45e477a84e2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.22"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99820.json"
  },
  "details": "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-\u003ep_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-\u003ep_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  \u003cTASK\u003e\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-\u003el_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-\u003el_tree_depth decreases on each descent.  Maximum descents\nare restricted to 4 and the path-\u003ep_node[] array does not overflow.",
  "id": "CVE-2026-99820",
  "modified": "2026-11-30T08:45:37.662454976Z",
  "published": "2026-11-30T07:52:21.143Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3d608a953dc4bdd39516a79b6ffb8924736bb000"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3f777a202b58927d2b9b79c500ae1c8b89b8d436"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6193ce7896afb52a321a0063c8b6a45e477a84e2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7c07e14de49ec2e0080e2d6bfc5709502f88ed34"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/825e31b1dd0711d3e611b0e53c43d905471b15b5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bf8a21fb049f55804d9a5ad7cf864e71697df0cc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cf8e485c3e76c8caad3bb91539b08bc11252676a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f254281e111578ec90f4434f34a7264521173359"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99820.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99820"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ocfs2: fix array out of bound access in __ocfs2_find_path()"
}