CVEvulnerability

CVE-2026-64354

7.8 HIGH Published 2026-07-25 Modified 2026-10-19 Official page ↗
Status
Modified
Published
2026-07-25
Last modified
2026-10-19
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-190

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 configurations

• 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

Related

Weakness · CWE (1)

  • CWE-190 Integer Overflow or Wraparound weakness

References