CVE-2026-142893
Last modified
CVE-2026-142893 is a vulnerability of currently unknown severity. 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.
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 Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < 0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < a2f2f3b32dca430bffc033ac06cc97cba551c171; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < 5dd99faf54c2b874b72f6c452c4da8e462b4f9f6; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < e6583935e3bf07e2a75af622d675afc20e3ddb59; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < 2752532f5f9a292457a31090a62334f5ef40e0b4; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < edf4ae4ba4e7fabc1003c66aacaad2529769573f; >= 951bb64621b8139c0cd99dcadc13e6510c08aa73, < 6c476d2b73056ed151c3f8b884c627c75999ed7c |
| Linux | Linux | 5.11 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142893?
How severe is CVE-2026-142893?
How do I fix CVE-2026-142893?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142888In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142889In the Linux kernel, the following vulnerability has been re…
- CVE-2026-14289The FacturaONE para WooCommerce con VeriFactu WordPress plug…9
- CVE-2026-142890In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142891In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142892In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142894In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142895In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142896In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142897In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142898In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142899In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-142893?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
