CVE-2026-64354 bpf: Validate BTF repeated field counts before expansion
A local attacker can exploit an integer overflow in the Linux kernel BPF subsystem to trigger a buffer overflow, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-64354?
CVE-2026-64354 is a high-severity vulnerability in Linux kernel, published on 25 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
bpf: Validate BTF repeated field counts before expansion
btf_parse_struct_metas() walks user-supplied BTF during BPF_BTF_LOAD, and btf_repeat_fields() expands repeatable fields from array elements into the fixed BTF_FIELDS_MAX scratch array used by btf_parse_fields().
The remaining-capacity check performs the expanded field count calculation in u32. A malformed BTF can wrap that calculation, causing the check to pass even when the expanded field count exceeds the scratch array capacity. The following memcpy() can then write past the end of the array.
Use checked addition and multiplication before copying repeated fields and reject impossible counts.
Weakness: CWE-190
Which versions are affected by CVE-2026-64354?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-64354?
Apply the vendor's patch.
Is CVE-2026-64354 being exploited?
There is no known exploitation of CVE-2026-64354 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2026-64354, DEBIAN-CVE-2026-64354, GHSA-pwg2-g943-8mr4, ROOT-OS-UBUNTU-2204-CVE-2026-64354, UBUNTU-CVE-2026-64354.