{"api_version":"1","generated_at":"2026-12-03T06:44:47+00:00","cve":"CVE-2026-142893","urls":{"html":"https://cve.report/CVE-2026-142893","api":"https://cve.report/api/cve/CVE-2026-142893.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142893","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142893"},"summary":{"title":"bpf: Fix out-of-bounds btf->types write for split BTF","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix out-of-bounds btf->types write for split BTF\n\nbtf_add_type() stores the types of a BTF in btf->types[], which can hold at\nmost BTF_MAX_TYPE entries.  The types of a split BTF get IDs start_id ..\nstart_id + nr_types - 1, so only BTF_MAX_TYPE - start_id of them fit, but\nneither the limit check nor the size used to grow the array accounts for\nstart_id: the check is an equality test against BTF_MAX_TYPE\n('start_id + btf->types_size == BTF_MAX_TYPE') and the new size is clamped\nto BTF_MAX_TYPE.\n\nThe check therefore only fires if the array happens to grow to exactly\nBTF_MAX_TYPE - start_id entries.  Otherwise, if the module has more than\nBTF_MAX_TYPE types, the array is filled up to BTF_MAX_TYPE entries.  The\nnext type that needs to be added reallocates the array to the same size,\nafter which btf->types_size no longer equals btf->nr_types and the growth\npath is not taken anymore, so every following type is written past the end\nof the array:\n\n  BUG: unable to handle page fault for address: ffffc90006200000\n  RIP: 0010:btf_add_type+0x74/0x270\n  Call Trace:\n   btf_check_all_metas\n   btf_parse_module\n\nBound both the array size and the limit check by BTF_MAX_TYPE - start_id.\nBase BTF (start_id == 0) is unaffected.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:28","updated_at":"2026-12-03 04:18:28"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6","name":"https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff","name":"https://git.kernel.org/stable/c/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4","name":"https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c","name":"https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171","name":"https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59","name":"https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f","name":"https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142893","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142893","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 951bb64621b8139c0cd99dcadc13e6510c08aa73 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 951bb64621b8139c0cd99dcadc13e6510c08aa73 a2f2f3b32dca430bffc033ac06cc97cba551c171 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 951bb64621b8139c0cd99dcadc13e6510c08aa73 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 951bb64621b8139c0cd99dcadc13e6510c08aa73 e6583935e3bf07e2a75af622d675afc20e3ddb59 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 951bb64621b8139c0cd99dcadc13e6510c08aa73 2752532f5f9a292457a31090a62334f5ef40e0b4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 951bb64621b8139c0cd99dcadc13e6510c08aa73 edf4ae4ba4e7fabc1003c66aacaad2529769573f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 951bb64621b8139c0cd99dcadc13e6510c08aa73 6c476d2b73056ed151c3f8b884c627c75999ed7c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.11 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":"0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff","status":"affected","version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","versionType":"git"},{"lessThan":"a2f2f3b32dca430bffc033ac06cc97cba551c171","status":"affected","version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","versionType":"git"},{"lessThan":"5dd99faf54c2b874b72f6c452c4da8e462b4f9f6","status":"affected","version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","versionType":"git"},{"lessThan":"e6583935e3bf07e2a75af622d675afc20e3ddb59","status":"affected","version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","versionType":"git"},{"lessThan":"2752532f5f9a292457a31090a62334f5ef40e0b4","status":"affected","version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","versionType":"git"},{"lessThan":"edf4ae4ba4e7fabc1003c66aacaad2529769573f","status":"affected","version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","versionType":"git"},{"lessThan":"6c476d2b73056ed151c3f8b884c627c75999ed7c","status":"affected","version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","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":"5.11"},{"lessThan":"5.11","status":"unaffected","version":"0","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.15.226","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix out-of-bounds btf->types write for split BTF\n\nbtf_add_type() stores the types of a BTF in btf->types[], which can hold at\nmost BTF_MAX_TYPE entries.  The types of a split BTF get IDs start_id ..\nstart_id + nr_types - 1, so only BTF_MAX_TYPE - start_id of them fit, but\nneither the limit check nor the size used to grow the array accounts for\nstart_id: the check is an equality test against BTF_MAX_TYPE\n('start_id + btf->types_size == BTF_MAX_TYPE') and the new size is clamped\nto BTF_MAX_TYPE.\n\nThe check therefore only fires if the array happens to grow to exactly\nBTF_MAX_TYPE - start_id entries.  Otherwise, if the module has more than\nBTF_MAX_TYPE types, the array is filled up to BTF_MAX_TYPE entries.  The\nnext type that needs to be added reallocates the array to the same size,\nafter which btf->types_size no longer equals btf->nr_types and the growth\npath is not taken anymore, so every following type is written past the end\nof the array:\n\n  BUG: unable to handle page fault for address: ffffc90006200000\n  RIP: 0010:btf_add_type+0x74/0x270\n  Call Trace:\n   btf_check_all_metas\n   btf_parse_module\n\nBound both the array size and the limit check by BTF_MAX_TYPE - start_id.\nBase BTF (start_id == 0) is unaffected."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:25:44.711Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff"},{"url":"https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171"},{"url":"https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6"},{"url":"https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59"},{"url":"https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4"},{"url":"https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f"},{"url":"https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c"}],"title":"bpf: Fix out-of-bounds btf->types write for split BTF","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142893","datePublished":"2026-12-03T03:25:44.711Z","dateReserved":"2026-12-03T03:10:28.335Z","dateUpdated":"2026-12-03T03:25:44.711Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:28","lastModifiedDate":"2026-12-03 04:18:28","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142893","Ordinal":"1","Title":"bpf: Fix out-of-bounds btf->types write for split BTF","CVE":"CVE-2026-142893","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142893","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix out-of-bounds btf->types write for split BTF\n\nbtf_add_type() stores the types of a BTF in btf->types[], which can hold at\nmost BTF_MAX_TYPE entries.  The types of a split BTF get IDs start_id ..\nstart_id + nr_types - 1, so only BTF_MAX_TYPE - start_id of them fit, but\nneither the limit check nor the size used to grow the array accounts for\nstart_id: the check is an equality test against BTF_MAX_TYPE\n('start_id + btf->types_size == BTF_MAX_TYPE') and the new size is clamped\nto BTF_MAX_TYPE.\n\nThe check therefore only fires if the array happens to grow to exactly\nBTF_MAX_TYPE - start_id entries.  Otherwise, if the module has more than\nBTF_MAX_TYPE types, the array is filled up to BTF_MAX_TYPE entries.  The\nnext type that needs to be added reallocates the array to the same size,\nafter which btf->types_size no longer equals btf->nr_types and the growth\npath is not taken anymore, so every following type is written past the end\nof the array:\n\n  BUG: unable to handle page fault for address: ffffc90006200000\n  RIP: 0010:btf_add_type+0x74/0x270\n  Call Trace:\n   btf_check_all_metas\n   btf_parse_module\n\nBound both the array size and the limit check by BTF_MAX_TYPE - start_id.\nBase BTF (start_id == 0) is unaffected.","Type":"Description","Title":"bpf: Fix out-of-bounds btf->types write for split BTF"}]}}}