{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142893","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.335Z","datePublished":"2026-12-03T03:25:44.711Z","dateUpdated":"2026-12-03T03:25:44.711Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-03T03:25:44.711Z"},"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."}],"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":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff","status":"affected","versionType":"git"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"a2f2f3b32dca430bffc033ac06cc97cba551c171","status":"affected","versionType":"git"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"5dd99faf54c2b874b72f6c452c4da8e462b4f9f6","status":"affected","versionType":"git"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"e6583935e3bf07e2a75af622d675afc20e3ddb59","status":"affected","versionType":"git"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"2752532f5f9a292457a31090a62334f5ef40e0b4","status":"affected","versionType":"git"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"edf4ae4ba4e7fabc1003c66aacaad2529769573f","status":"affected","versionType":"git"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"6c476d2b73056ed151c3f8b884c627c75999ed7c","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":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","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":"5.11","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.4-rc1"}]}]}],"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"}}}}