CVE-2026-64354

Source
https://cve.org/CVERecord?id=CVE-2026-64354
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64354.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64354
Downstream
BELL (1)
DEBIAN (1)
openSUSE (2)
ROOT (1)
SUSE (4)
UBUNTU (1)
Related
Published
2026-07-25T08:50:12Z
Modified
2026-10-08T02:51:29Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
bpf: Validate BTF repeated field counts before expansion
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64354.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
797d73ee232dd1833dec4824bc53a22032e97c1c
Fixed
c5ff816d5f13900c3f1f3298cfcc61339e056e56
Fixed
cd407de2ef5dc70f1970b343ffaa16186340fdfd
Fixed
ff77d013b737c0f77d925e2f2c59f0cf3d76bd35
Fixed
b9452b594fd3aecbfd4aa0a6a1f741330a37dab7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.11.6
Fixed
6.12
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6f957d972feee9b385ea3ae6530310a84e55ba71

Affected versions

v6.*
v6.11.10
v6.11.11
v6.11.6
v6.11.7
v6.11.8
v6.11.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64354.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64354.json"