{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139309",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.926Z",
        "datePublished": "2026-11-30T13:33:33.765Z",
        "dateUpdated": "2026-11-30T13:33:33.765Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:33:33.765Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Bound the nesting that the BTF show code follows\n\nbtf_struct_show() and btf_array_show() recurse for every nested struct\nand array.  MAX_RESOLVE_DEPTH bounds one resolve walk when BTF is loaded,\nnot the nesting: a member whose type is resolved already is not walked\nagain, so BTF that defines its types from the inside out can nest them as\ndeep as it has types.\n\nWhoever may load BTF, with CAP_BPF or a BPF token, can give such a type\nto the value of a map.  Reading the file of that map in bpffs then\noverruns the kernel stack: with a few hundred levels the stack guard page\nis hit and the kernel panics.\n\nStop at 32 levels.  That is MAX_RESOLVE_DEPTH, and __btf_show_indent()\nhas as many columns.  Nothing is shown for a member that lies deeper, and\nthe status becomes -E2BIG, which bpf_snprintf_btf() and\nbpf_seq_printf_btf() return.  The types of an x86_64 defconfig kernel nest\n14 deep."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/bpf/btf.c"
                    ],
                    "versions": [
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "3a59b5615c75bd737e1e5c93653c18522e773bfd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "be380aa90cabe89a93f8308017d8d9329e7bee74",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "223bd268d8a86711dd98610899486eb6e0889c67",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "4b6487fc895e70889f58db1291618e7cd390458b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "1e1df9e7ae908e576cd32227b554fbfedfb51653",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "696b05fe5397637dee8c69deec988030b59e688d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "72ea9edd9eae351ba1b32ab98be5cedc0fe6cb75",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b00b8daec828dd59af7d1f7a42acd6e5867f80c6",
                            "lessThan": "13ac7c05bc45d3445b580da186548dd3487fae4e",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/bpf/btf.c"
                    ],
                    "versions": [
                        {
                            "version": "4.18",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.18",
                            "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.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "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": "4.18",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.18",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/3a59b5615c75bd737e1e5c93653c18522e773bfd"
                },
                {
                    "url": "https://git.kernel.org/stable/c/be380aa90cabe89a93f8308017d8d9329e7bee74"
                },
                {
                    "url": "https://git.kernel.org/stable/c/223bd268d8a86711dd98610899486eb6e0889c67"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4b6487fc895e70889f58db1291618e7cd390458b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1e1df9e7ae908e576cd32227b554fbfedfb51653"
                },
                {
                    "url": "https://git.kernel.org/stable/c/696b05fe5397637dee8c69deec988030b59e688d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/72ea9edd9eae351ba1b32ab98be5cedc0fe6cb75"
                },
                {
                    "url": "https://git.kernel.org/stable/c/13ac7c05bc45d3445b580da186548dd3487fae4e"
                }
            ],
            "title": "bpf: Bound the nesting that the BTF show code follows",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}