CVE-2026-64354·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-64354 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to patch a memory buffer overflow vulnerability in BTF field expansion logic. This flaw allows local attackers with restricted privileges to corrupt kernel memory by supplying malformed BTF data during BPF program loading. Immediate patching is recommended for systems running kernel versions 6.19 through 7.1.3.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to display the currently running kernel version and verify it is 7.1.4 or later
- Check `/proc/sys/kernel/unprivileged_bpf_disabled` — if set to 0 or 2, unprivileged BPF is enabled and the attack surface is exposed
- Search system logs with `sudo grep -i 'bpf\|btf' /var/log/kern.log | grep -i 'error\|fault\|oops'` for kernel memory corruption indicators
- After patching, reboot the system and confirm new kernel version with `uname -r`, then verify no BPF-related errors appear in dmesg with `dmesg | tail -50`
FAQ
What is CVE-2026-64354?
This vulnerability is an integer overflow bug in the Linux kernel's BTF (BPF Type Format) field expansion logic that can cause a heap buffer overflow when processing specially crafted BTF data during BPF program loading.
Is CVE-2026-64354 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available.
What versions of Kernel are affected by CVE-2026-64354?
Linux kernel versions 6.19 through 7.1.3 are affected. Version 7.1.4 and later include the fix.
How do I check if my server is vulnerable to CVE-2026-64354?
Run `uname -r` and compare your kernel version to the affected range (6.19–7.1.3). If your version falls within this range, your system is vulnerable.
Does Defensia detect CVE-2026-64354?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-64354 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64354. Free for 1 server.
Get started free