{"api_version":"1","generated_at":"2026-11-30T19:45:59+00:00","cve":"CVE-2026-139309","urls":{"html":"https://cve.report/CVE-2026-139309","api":"https://cve.report/api/cve/CVE-2026-139309.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139309","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139309"},"summary":{"title":"bpf: Bound the nesting that the BTF show code follows","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:55","updated_at":"2026-11-30 14:18:55"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/13ac7c05bc45d3445b580da186548dd3487fae4e","name":"https://git.kernel.org/stable/c/13ac7c05bc45d3445b580da186548dd3487fae4e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/be380aa90cabe89a93f8308017d8d9329e7bee74","name":"https://git.kernel.org/stable/c/be380aa90cabe89a93f8308017d8d9329e7bee74","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3a59b5615c75bd737e1e5c93653c18522e773bfd","name":"https://git.kernel.org/stable/c/3a59b5615c75bd737e1e5c93653c18522e773bfd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1e1df9e7ae908e576cd32227b554fbfedfb51653","name":"https://git.kernel.org/stable/c/1e1df9e7ae908e576cd32227b554fbfedfb51653","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/223bd268d8a86711dd98610899486eb6e0889c67","name":"https://git.kernel.org/stable/c/223bd268d8a86711dd98610899486eb6e0889c67","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/696b05fe5397637dee8c69deec988030b59e688d","name":"https://git.kernel.org/stable/c/696b05fe5397637dee8c69deec988030b59e688d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4b6487fc895e70889f58db1291618e7cd390458b","name":"https://git.kernel.org/stable/c/4b6487fc895e70889f58db1291618e7cd390458b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/72ea9edd9eae351ba1b32ab98be5cedc0fe6cb75","name":"https://git.kernel.org/stable/c/72ea9edd9eae351ba1b32ab98be5cedc0fe6cb75","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139309","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139309","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 3a59b5615c75bd737e1e5c93653c18522e773bfd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 be380aa90cabe89a93f8308017d8d9329e7bee74 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 223bd268d8a86711dd98610899486eb6e0889c67 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 4b6487fc895e70889f58db1291618e7cd390458b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 1e1df9e7ae908e576cd32227b554fbfedfb51653 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 696b05fe5397637dee8c69deec988030b59e688d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 72ea9edd9eae351ba1b32ab98be5cedc0fe6cb75 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b00b8daec828dd59af7d1f7a42acd6e5867f80c6 13ac7c05bc45d3445b580da186548dd3487fae4e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/btf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3a59b5615c75bd737e1e5c93653c18522e773bfd","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"},{"lessThan":"be380aa90cabe89a93f8308017d8d9329e7bee74","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"},{"lessThan":"223bd268d8a86711dd98610899486eb6e0889c67","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"},{"lessThan":"4b6487fc895e70889f58db1291618e7cd390458b","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"},{"lessThan":"1e1df9e7ae908e576cd32227b554fbfedfb51653","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"},{"lessThan":"696b05fe5397637dee8c69deec988030b59e688d","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"},{"lessThan":"72ea9edd9eae351ba1b32ab98be5cedc0fe6cb75","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"},{"lessThan":"13ac7c05bc45d3445b580da186548dd3487fae4e","status":"affected","version":"b00b8daec828dd59af7d1f7a42acd6e5867f80c6","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/btf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.18"},{"lessThan":"4.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:33.765Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139309","datePublished":"2026-11-30T13:33:33.765Z","dateReserved":"2026-11-30T13:22:15.926Z","dateUpdated":"2026-11-30T13:33:33.765Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:55","lastModifiedDate":"2026-11-30 14:18:55","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139309","Ordinal":"1","Title":"bpf: Bound the nesting that the BTF show code follows","CVE":"CVE-2026-139309","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139309","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"bpf: Bound the nesting that the BTF show code follows"}]}}}