{
    "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-11-30T07:52:21.143Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T07:52:21.143Z"
            },
            "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": [
                {
                    "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"
            }
        }
    }
}