CVE-2026-142893 bpf: Fix out-of-bounds btf->types write for split BTF
linux linux: no CVSS score yet. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
On this page
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.
- EPSS
- 0.3% estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-12-03. A forecast for this CVE across the internet, not for your own systems.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Fix and patched versions
- Linux Linux: fixed in 5.15.226
- Linux Linux: fixed in 6.1.193
- Linux Linux: fixed in 6.6.163
- Linux Linux: fixed in 6.12.119
- Linux Linux: fixed in 6.18.65
- Linux Linux: fixed in 7.3.6
- Linux Linux: fixed in 7.4-rc1
- Debian: fixed package versions per release
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-142893 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-142893?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-142893?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-142893 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | 5.11 and later |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 5.15 | 5.15.226 |
| Linux | 6.1 | 6.1.193 |
| Linux | 6.6 | 6.6.163 |
| Linux | 6.12 | 6.12.119 |
| Linux | 6.18 | 6.18.65 |
| Linux | 7.3 | 7.3.6 |
| Linux | later releases | 7.4-rc1 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | linux | no fix listed | DEBIAN-CVE-2026-142893 |
| Debian | 14 | linux | 7.3.6-1 | DEBIAN-CVE-2026-142893 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
References
- https://git.kernel.org/stable/c/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff
- https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4
- https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6
- https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c
- https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171
- https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59
- https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f