CVE-2026-64354: bpf: Validate BTF repeated field counts before expansion

Published Jul 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

bpf: Validate BTF repeated field counts before expansion

btfparsestructmetas() walks user-supplied BTF during BPFBTFLOAD, and btfrepeatfields() expands repeatable fields from array elements into the fixed BTFFIELDSMAX scratch array used by btfparsefields().

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 Software

10 affected components
Linux Kernel
Linux Linux kernel>=6.11.6<6.12
Linux Linux kernel>=6.12.1<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.4
Linux Linux kernel=6.12
Linux Linux kernel=6.12-rc4
Linux Linux kernel=6.12-rc5
Linux Linux kernel=6.12-rc6
Linux Linux kernel=6.12-rc7

Event History

Jul 25, 2026
CVE Published
via MITRE·08:50 AM
Data Sourced
via MITRE·08:50 AM
DescriptionSeverity
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

The CVSS vector indicates local access and low privileges are required. Exploitation involves supplying malformed BTF through the BPF_BTF_LOAD path; no user interaction is required.

2

What security impact could successful exploitation have?

The issue can cause a memcpy operation to write past a fixed scratch-array boundary in the kernel. The assigned CVSS vector rates confidentiality, integrity, and availability impact as high.

3

What does the available fix change?

The fix uses checked addition and multiplication when calculating expanded repeated-field counts, and rejects counts that cannot fit safely before copying fields.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203