CVE-2026-64354

bpf: Validate BTF repeated field counts before expansion

HIGH
7.8
CVSS Score
Published: July 25, 2026 at 08:50 AM UTC
Updated: October 19, 2026 at 09:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.11.6 ≤ v < 6.126.12.1 ≤ v < 6.12.966.13 ≤ v < 6.18.396.19 ≤ v < 7.1.46.11.66.126.12 rc46.12 rc56.12 rc66.12 rc76f957d972feee9b385ea3ae6530310a84e55ba71797d73ee232dd1833dec4824bc53a22032e97c1c
Vendor states this is fixed in b9452b594fd3aecbfd4aa0a6a1f741330a37dab7 (fixed)
Vendor states this is fixed in c5ff816d5f13900c3f1f3298cfcc61339e056e56 (fixed)
Vendor states this is fixed in cd407de2ef5dc70f1970b343ffaa16186340fdfd (fixed)
Vendor states this is fixed in ff77d013b737c0f77d925e2f2c59f0cf3d76bd35 (fixed)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.12.96 (unaffected)
Vendor states this is fixed in 6.18.39 (unaffected)
Vendor states this is fixed in 7.1.4 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfoCWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card