{"id":"CVE-2026-142893","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T04:18:28.373","lastModified":"2026-12-03T04:18:28.373","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["kernel/bpf/btf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff","versionType":"git","status":"affected"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"a2f2f3b32dca430bffc033ac06cc97cba551c171","versionType":"git","status":"affected"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"5dd99faf54c2b874b72f6c452c4da8e462b4f9f6","versionType":"git","status":"affected"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"e6583935e3bf07e2a75af622d675afc20e3ddb59","versionType":"git","status":"affected"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"2752532f5f9a292457a31090a62334f5ef40e0b4","versionType":"git","status":"affected"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"edf4ae4ba4e7fabc1003c66aacaad2529769573f","versionType":"git","status":"affected"},{"version":"951bb64621b8139c0cd99dcadc13e6510c08aa73","lessThan":"6c476d2b73056ed151c3f8b884c627c75999ed7c","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["kernel/bpf/btf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}