VDB

CVE-2026-64354

CVE-2026-64354 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel6.12-headersAmazon Linux1:6.12.100-125.179.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.39-79.141.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.39-79.141.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.39-79.141.amzn2023
bpftool6.18Amazon Linux1:6.18.39-79.141.amzn2023
kernel6.18Amazon Linux1:6.18.39-79.141.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.100-125.179.amzn2023
kernel-livepatch-6.18.39-79.141Amazon Linux1:1.0-0.amzn2023
bpftool6.12Amazon Linux1:6.12.100-125.179.amzn2023
perf6.18Amazon Linux1:6.18.39-79.141.amzn2023
perf6.12Amazon Linux1:6.12.100-125.179.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.100-125.179.amzn2023

6 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux797d73ee232dd1833dec4824bc53a22032e97c1c, 797d73ee232dd1833dec4824bc53a22032e97c1c, 797d73ee232dd1833dec4824bc53a22032e97c1c
LinuxLinux6.12, 0, 6.12.96
amazon:2023kernel6.12-headers0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-modules-extra0
amazon:2023bpftool6.180
amazon:2023kernel6.180
amazon:2023kernel6.12-tools0
amazon:2023kernel-livepatch-6.18.39-79.1410
amazon:2023bpftool6.120
amazon:2023perf6.180
amazon:2023perf6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-modules-extra0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-devel0
LinuxLinux7.2, 797d73ee232dd1833dec4824bc53a22032e97c1c, 797d73ee232dd1833dec4824bc53a22032e97c1c
amazon:2023kernel6.18-tools-devel0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›