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

bpf: Keep dynamic inner array lookups nullable

An ARRAY_OF_MAPS can use an array created with BPF_F_INNER_MAP as its
inner map template. A concrete inner array with a different max_entries
value can then replace the template.

After a successful outer map lookup, the verifier represents the
resulting map pointer using the inner map template. Const-key lookup
nullness elision consequently uses the template max_entries even though
the runtime helper uses the concrete inner map max_entries.

Do not elide lookup result nullness for maps marked with BPF_F_INNER_MAP,
because the template max_entries does not prove that the key is in bounds
for the concrete runtime map.
Published: 2026-07-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability arises from a bounds‑checking failure in the Linux kernel BPF subsystem. When an ARRAY_OF_MAPS uses a BPF_F_INNER_MAP template, the verifier mistakenly records the inner map pointer as the template, causing nullness check to rely on the template’s max_entries. If a lookup key lies outside the template bounds but inside the runtime inner map’s bounds, the verifier can erroneously eliminate necessary bounds validation, potentially allowing out‑of‑bounds memory access within kernel space. This error can trigger a kernel crash, leading to a denial of service, or corrupt memory in a way that might expose sensitive data. Because the vulnerability requires a crafted BPF program that performs an inner map lookup, its exploitation would normally be confined to environments where a user can load BPF code with sufficient privileges. An attacker would need to generate or inject a malicious BPF program that targets the kernel’s BPF verifier, leveraging the mismatch between template and runtime map bounds. The flaw does not directly enable arbitrary code execution, but the resultant corruption or crash can provide a foothold for further compromise. In the field, exploitation is expected to be limited due to the specialized nature of the attack and the need for privileged map operations. Any system that allows untrusted or compromised users to load BPF programs is at risk, especially if the kernel is still running a version that has not incorporated the fix.

Affected Systems

All Linux kernels that ship unpatched versions are potentially affected. The CNA list does not specify particular kernel releases, so any distribution whose kernel incorporates the vulnerable BPF code without the corresponding patch is susceptible.

Risk and Exploitability

The EPSS score is below 1 %, indicating a very low likelihood of observed exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers would need local or privileged access to load BPF programs that exploit the bounds‑checking failure; remote exploitation would require an additional vector to inject malicious BPF code. Given the specialized prerequisites, the immediate risk is limited, but the impact of a successful exploitation would be severe, resulting in a kernel crash or memory corruption that could lead to data leakage or denial of service.

Generated by OpenCVE AI on August 3, 2026 at 19:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest release containing the fix for bpf: keep dynamic inner array lookups nullable
  • If a kernel upgrade is not immediately possible, rewrite or restrict BPF programs to avoid using ARRAY_OF_MAPS with BPF_F_INNER_MAP templates that have mismatched max_entries values
  • Reconfigure security settings to limit which users can load BPF programs, reducing the attack surface for potential exploitation

Generated by OpenCVE AI on August 3, 2026 at 19:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-200

Mon, 03 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sun, 02 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-787
CWE-788

Mon, 27 Jul 2026 06:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-787
CWE-788

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Keep dynamic inner array lookups nullable An ARRAY_OF_MAPS can use an array created with BPF_F_INNER_MAP as its inner map template. A concrete inner array with a different max_entries value can then replace the template. After a successful outer map lookup, the verifier represents the resulting map pointer using the inner map template. Const-key lookup nullness elision consequently uses the template max_entries even though the runtime helper uses the concrete inner map max_entries. Do not elide lookup result nullness for maps marked with BPF_F_INNER_MAP, because the template max_entries does not prove that the key is in bounds for the concrete runtime map.
Title bpf: Keep dynamic inner array lookups nullable
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:50:12.120Z

Reserved: 2026-07-19T15:36:31.782Z

Link: CVE-2026-64353

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:17.700

Modified: 2026-08-11T15:00:57.447

Link: CVE-2026-64353

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64353 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:15:04Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-787

    Out-of-bounds Write