PT-2026-166630
CVE-2026-142893
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the 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.
Found an issue in the description? Have something to add? Feel free to write us 👾