CVE-2025-38202

bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem()

State
Published
Severity
Not scored
Published
Jul 4, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 07343110b293456d30393e89b86c4dee1ac051c8 to before 2f8c69a72e8ad87b36b8052f789da3cc2b2e186cAffected
  • 07343110b293456d30393e89b86c4dee1ac051c8 to before 7bf4461f1c97207fda757014690d55a447ce859fAffected
  • 07343110b293456d30393e89b86c4dee1ac051c8 to before 2d834477bbc1e8b8a59ff8b0c081529d6bed7b22Affected
  • 07343110b293456d30393e89b86c4dee1ac051c8 to before b522d4d334f206284b1a44b0b0b2f99fd443b39bAffected
  • 07343110b293456d30393e89b86c4dee1ac051c8 to before d4965578267e2e81f67c86e2608481e77e9c8569Affected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 6.1.142 through 6.1.*Not affected
  • 6.6.95 through 6.6.*Not affected
  • 6.12.35 through 6.12.*Not affected
  • 6.15.4 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.