CVE-2026-64354
bpf: Validate BTF repeated field counts before expansion
Reported by linux · Published July 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-headers | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| microvm-kernel6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| kernel-livepatch-6.18.39-79.141 | Amazon Linux | 1:1.0-0.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 797d73ee232dd1833dec4824bc53a22032e97c1c, 797d73ee232dd1833dec4824bc53a22032e97c1c, 797d73ee232dd1833dec4824bc53a22032e97c1c |
| Linux | Linux | 6.12, 0, 6.12.96 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel-livepatch-6.18.39-79.141 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| Linux | Linux | 7.2, 797d73ee232dd1833dec4824bc53a22032e97c1c, 797d73ee232dd1833dec4824bc53a22032e97c1c |
| amazon:2023 | kernel6.18-tools-devel | 0 |
…and 7 more
Timeline
- Jul 25, 2026 EPSS Score (9 in total, the first dated here)
- Jul 25, 2026 Coalition ESS Score
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (20 in total, the first dated here)
- Aug 9, 2026 CVE Updated
- Aug 12, 2026 Distribution Patch (21 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64354
vulnetix vdb fixes CVE-2026-64354
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64354/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart