bpf: Reject exclusive maps for bpf_map_elem iterators (Linux Linux)

CVE-2026-74360
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected baefdbdf6812e120c9fba9cfb101d3656f478026 < 5cf2c85b1231218a3e3e9f188afb4fe2e17903d5 ; affected baefdbdf6812e120c9fba9cfb101d3656f478026 < c3da741d5b2119c61c4498bc936f0fc1dbc3c79b ; affected baefdbdf6812e120c9fba9cfb101d3656f478026 < 3c56ee343f9412d81918635c3e25e22a5dd6d87e
Linux · Linuxaffected 6.18 ; unaffected 0 < 6.18 ; unaffected 6.18.40 ≤ 6.18.* ; unaffected 7.1.5 ≤ 7.1.* ; unaffected 7.2 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD