CVE-2026-142893

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142894In the Linux kernel, the following vulnerability has been resolved: net/rds: do not fail init when CONFIG_SYSCTL=n With CONFIG_SYSCTL=n, rCVE-2026-142895In the Linux kernel, the following vulnerability has been resolved: maple_tree: fix maple_range_64 crashes in RCU mode Patch series "mapleCVE-2026-142896In the Linux kernel, the following vulnerability has been resolved: tls: avoid field-spanning write when copying crypto info do_tls_setsocCVE-2026-142897In the Linux kernel, the following vulnerability has been resolved: net: pse-pd: si3474: fix use-after-free in ancillary client error path CVE-2026-142898In the Linux kernel, the following vulnerability has been resolved: ibmveth: step past bad RX correlators instead of spinning or oopsing iCVE-2026-142899In the Linux kernel, the following vulnerability has been resolved: fuse: validate folio state before pipe_buf_try_steal() in fuse_try_moveCVE-2026-14295.4Single Sign-On Portal System developed by WellChoose has a Reflected Cross-site Scripting vulnerability, allowing authenticated remote attacCVE-2026-142906.8The Embed Google Photos album WordPress plugin through 2.2.1 does not escape a shortcode attribute value before outputting it inside an HTMLCVE-2026-142900In the Linux kernel, the following vulnerability has been resolved: HID: wacom: fix wacom_intuos_irq NULL pen_input deref Currently, wacomCVE-2026-142901In the Linux kernel, the following vulnerability has been resolved: HID: logitech-hidpp: cancel reset_hi_res_work on probe failure The proCVE-2026-142902In the Linux kernel, the following vulnerability has been resolved: HID: asus: document and harden the worker teardown asus_work() executeCVE-2026-142903In the Linux kernel, the following vulnerability has been resolved: ALSA: vmaster: Protect follower lookup and setup A control selected by
CVE-2026-142893: Unscored | Vulnix