VDB

CVE-2025-38202

CVE-2025-38202 PUBLISHED

bpf: Check rcu_read_lock_trace_held() in bpf_map_lookup_percpu_elem()

Reported by linux · Published July 4, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpfAmazon Linux6.12.35-55.103.amzn2023
kernelAmazon Linux1:6.1.144-170.251.amzn2023
python3-perfAmazon Linux1:6.1.144-170.251.amzn2023
kernel-livepatch-6.1.144-170.251Amazon Linux1:1.0-0.amzn2023
kernel-livepatch-6.12.35-55.103Amazon Linux1.0-0.amzn2023
kernel6.12-modules-extraAmazon Linux6.12.35-55.103.amzn2023
perf6.12Amazon Linux6.12.35-55.103.amzn2023
kernel6.12Amazon Linux6.12.35-55.103.amzn2023
kernel-libbpf-develAmazon Linux6.12.35-55.103.amzn2023
kernel-toolsAmazon Linux6.12.35-55.103.amzn2023
kernel-libbpf-staticAmazon Linux6.12.35-55.103.amzn2023
kernel-tools-develAmazon Linux6.12.35-55.103.amzn2023

8 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux07343110b293456d30393e89b86c4dee1ac051c8, 07343110b293456d30393e89b86c4dee1ac051c8, 07343110b293456d30393e89b86c4dee1ac051c8
LinuxLinux5.19, 0, 6.1.142
amazon:2023kernel-libbpf0
amazon:2023kernel0
amazon:2023python3-perf0
amazon:2023kernel-livepatch-6.1.144-170.2510
amazon:2023kernel-livepatch-6.12.35-55.1030
amazon:2023kernel6.12-modules-extra0
amazon:2023perf6.120
amazon:2023kernel6.120
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-tools-devel0
amazon:2023kernel-modules-extra0
amazon:2023perf0
amazon:2023kernel-modules-extra-common0
amazon:2023bpftool0
amazon:2023kernel-devel0
amazon:2023python3-perf6.120

…and 3 more

Timeline

  • Jul 4, 2025 CVE Published
  • Jul 5, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (8 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (223 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (273 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38202
vulnetix vdb fixes CVE-2025-38202

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38202/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›