# CVE-2026-142893: bpf: Fix out-of-bounds btf-\>types write for split BTF

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:44.711Z
- **Modified:** 2026-12-03T04:18:28.373Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can cause an out-of-bounds write in the Linux kernel's BPF split BTF handling, when a module has more types than allowed, leading to memory corruption and page faults.

## Who should check

- Anyone running Linux \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< a2f2f3b32dca430bffc033ac06cc97cba551c171; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< e6583935e3bf07e2a75af622d675afc20e3ddb59; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 2752532f5f9a292457a31090a62334f5ef40e0b4; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< edf4ae4ba4e7fabc1003c66aacaad2529769573f; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 6c476d2b73056ed151c3f8b884c627c75999ed7c
- Anyone running Linux 5.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix out-of-bounds btf-\>types write for split BTF

btf\_add\_type() stores the types of a BTF in btf-\>types\[\], which can hold at
most BTF\_MAX\_TYPE entries.  The types of a split BTF get IDs start\_id ..
start\_id + nr\_types - 1, so only BTF\_MAX\_TYPE - start\_id of them fit, but
neither the limit check nor the size used to grow the array accounts for
start\_id: the check is an equality test against BTF\_MAX\_TYPE
('start\_id + btf-\>types\_size == BTF\_MAX\_TYPE') and the new size is clamped
to BTF\_MAX\_TYPE.

The check therefore only fires if the array happens to grow to exactly
BTF\_MAX\_TYPE - start\_id entries.  Otherwise, if the module has more than
BTF\_MAX\_TYPE types, the array is filled up to BTF\_MAX\_TYPE entries.  The
next type that needs to be added reallocates the array to the same size,
after which btf-\>types\_size no longer equals btf-\>nr\_types and the growth
path is not taken anymore, so every following type is written past the end
of the array:

  BUG: unable to handle page fault for address: ffffc90006200000
  RIP: 0010:btf\_add\_type+0x74/0x270
  Call Trace:
   btf\_check\_all\_metas
   btf\_parse\_module

Bound both the array size and the limit check by BTF\_MAX\_TYPE - start\_id.
Base BTF (start\_id == 0) is unaffected.

## Affected and fixed versions

- Linux: \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< a2f2f3b32dca430bffc033ac06cc97cba551c171; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< e6583935e3bf07e2a75af622d675afc20e3ddb59; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 2752532f5f9a292457a31090a62334f5ef40e0b4; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< edf4ae4ba4e7fabc1003c66aacaad2529769573f; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 6c476d2b73056ed151c3f8b884c627c75999ed7c (cvelist)
- Linux: 5.11 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 6c476d2b73056ed151c3f8b884c627c75999ed7c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142893. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142893.md
Affected: Linux >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < a2f2f3b32dca430bffc033ac06cc97cba551c171; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6; >= 951bb64621b8139c0cd99dc…
Fixed in: Linux 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff, Linux 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6, Linux 2752532f5f9a292457a31090a62334f5ef40e0b4, Linux 6c476d2b73056ed151c3f8b884c627c75999ed7c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142893 being exploited?

There is no confirmed exploitation: CVE-2026-142893 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142893?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142893?

Linux \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< a2f2f3b32dca430bffc033ac06cc97cba551c171; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< e6583935e3bf07e2a75af622d675afc20e3ddb59; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 2752532f5f9a292457a31090a62334f5ef40e0b4; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< edf4ae4ba4e7fabc1003c66aacaad2529769573f; \>= 951bb64621b8139c0cd99dcadc13e6510c08aa73, \< 6c476d2b73056ed151c3f8b884c627c75999ed7c; Linux 5.11.

### Is there a fix for CVE-2026-142893?

Yes. Fixed in Linux 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff, Linux 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6, Linux 2752532f5f9a292457a31090a62334f5ef40e0b4, Linux 6c476d2b73056ed151c3f8b884c627c75999ed7c. Upgrade Linux to 6c476d2b73056ed151c3f8b884c627c75999ed7c or later.

### How do I check if I'm affected by CVE-2026-142893?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff>
- other: <https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171>
- other: <https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6>
- other: <https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59>
- other: <https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4>
- other: <https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f>
- other: <https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142893>

HTML: <https://flawdb.com/CVE-2026-142893> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142893>
