Technical impact
In the Linux kernel, the BPF subsystem contains a flaw where the function btf_check_all_metas() ignores errors returned by btf_add_type(). When a type cannot be registered, the error is silently dropped, yet the loop continues to traverse the type section. This leads to a constructed BTF object whose number of reported types does not match the actual data. Two failure modes are possible: –E2BIG when the type array reaches its capacity, causing subsequent calls to fail but still reporting success, and –ENOMEM where the type count is not incremented and a subsequent type overwrites a previously dropped slot. In both cases the internal type mapping becomes corrupted, which can propagate incorrect type information to any kernel component that consumes BTF data, potentially causing memory corruption or other integrity violations.
Affected Systems
All Linux kernel installations running a version prior to the commit adding error propagation in btf_check_all_metas() and btf_add_type() are impacted. The code is part of the core BPF framework, so any system that loads a BPF program embedding a BTF object exercises the vulnerable path. This includes regular system services that make use of BPF, as well as third‑party tools that interact with the kernel via BPF.
Risk and Exploitability
While the vulnerability is not listed in the CISA KEV catalog and no EPSS score is available, indicating no publicly documented exploitation, the potential consequences are significant. Based on the description, the likely attack vector requires the ability to load a crafted BPF program containing malformed BTF data, which means an attacker needs local or elevated privileges. Successful exploitation could corrupt kernel data structures or trigger a denial of service. The absence of known exploitation does not reduce remediation urgency given the critical nature of kernel integrity.