bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem() (Linux Linux)

CVE-2025-38202
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 8 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem() bpf_map_lookup_percpu_elem() helper is also available for sleepable bpf program. When BPF JIT is disabled or under 32-bit host, bpf_map_lookup_percpu_elem() will not be inlined. Using it in a sleepable bpf program will trigger the warning in bpf_map_lookup_percpu_elem(), because the bpf program only holds rcu_read_lock_trace lock. Therefore, add the missed check.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 07343110b293456d30393e89b86c4dee1ac051c8 < 2f8c69a72e8ad87b36b8052f789da3cc2b2e186c ; affected 07343110b293456d30393e89b86c4dee1ac051c8 < 7bf4461f1c97207fda757014690d55a447ce859f ; affected 07343110b293456d30393e89b86c4dee1ac051c8 < 2d834477bbc1e8b8a59ff8b0c081529d6bed7b22 ; affected 07343110b293456d30393e89b86c4dee1ac051c8 < b522d4d334f206284b1a44b0b0b2f99fd443b39b ; affected 07343110b293456d30393e89b86c4dee1ac051c8 < d4965578267e2e81f67c86e2608481e77e9c8569
Linux · Linuxaffected 5.19 ; unaffected 0 < 5.19 ; unaffected 6.1.142 ≤ 6.1.* ; unaffected 6.6.95 ≤ 6.6.* ; unaffected 6.12.35 ≤ 6.12.* ; unaffected 6.15.4 ≤ 6.15.*

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