CVE-2026-74360

bpf: Reject exclusive maps for bpf_map_elem iterators

Published Aug 15, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Reject exclusive maps for bpf_map_elem iterators

Exclusive maps (aka excl_prog_hash) are meant to be reachable only
from the single program whose hash matches. This is enforced by
check_map_prog_compatibility() when the map is referenced from a
program such as signed BPF loaders.

A bpf_map_elem iterator, however, binds its target map at attach
time in bpf_iter_attach_map() instead of referencing it from the
program, so the exclusivity check is never reached. On top of that,
the iterator exposes the map value as a writable buffer.

Analysis

AI-generated

Technical impact

The vulnerability occurs when a BPF program uses a bpf_map_elem iterator to bind to an exclusive map. The kernel performs an exclusivity check only when a map is referenced directly from a BPF program, but the iterator binds the map at attachment time and never triggers this check. Consequently, the exclusive map remains accessible and its values are exposed as a writable buffer, allowing an attacker to overwrite kernel memory and potentially gain higher privileges.

Affected Systems

All Linux kernel builds that implement the bpf_map_elem iterator without enforcing the exclusivity check are affected. Specific version information is not provided, so any current kernel version running the default BPF subsystem may be vulnerable.

Risk and Exploitability

The flaw provides a path to modify kernel memory from user‑space via a BPF program, which can lead to privilege escalation. Exploitation requires the attacker to load a BPF program that attaches a bpf_map_elem iterator to an exclusive map. The CVSS score is 5.5, the EPSS score is <1%, and the vulnerability is not listed in the CISA KEV catalog; the moderate severity indicates a moderate level of risk. The attack vector is inferred to be local user space to kernel interaction through the BPF subsystem.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a patched release that enforces exclusivity checks for bpf_iter_attach_map.
  • If an immediate kernel upgrade is unavailable, disable or restrict the use of bpf_map_elem iterators by configuring the kernel or applying sysctl knobs to deny BPF map iterator creation.
  • Enable host‑based intrusion detection or log monitoring to detect unusual BPF activity and enforce SELinux or AppArmor policies limiting BPF program capabilities.

Generated by OpenCVE AI on August 22, 2026 at 02:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-284
CWE-665
Type Values Removed Values Added
Weaknesses CWE-551
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

Type Values Removed Values Added
Weaknesses CWE-284
CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Reject exclusive maps for bpf_map_elem iterators Exclusive maps (aka excl_prog_hash) are meant to be reachable only from the single program whose hash matches. This is enforced by check_map_prog_compatibility() when the map is referenced from a program such as signed BPF loaders. A bpf_map_elem iterator, however, binds its target map at attach time in bpf_iter_attach_map() instead of referencing it from the program, so the exclusivity check is never reached. On top of that, the iterator exposes the map value as a writable buffer.
Title bpf: Reject exclusive maps for bpf_map_elem iterators
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-551

    Incorrect Behavior Order: Authorization Before Parsing and Canonicalization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:17 AM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Aug 17, 2026, 6:19 AM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM