CVE-2025-37884
bpf: Fix deadlock between rcu_tasks_trace and event_mutex.
Reported by linux · Published May 9, 2025
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix deadlock between rcu_tasks_trace and event_mutex. Fix the following deadlock: CPU A _free_event() perf_kprobe_destroy() mutex_lock(&event_mutex) perf_trace_event_unreg() synchronize_rcu_tasks_trace() There are several paths where _free_event() grabs event_mutex and calls sync_rcu_tasks_trace. Above is one such case. CPU B bpf_prog_test_run_syscall() rcu_read_lock_trace() bpf_prog_run_pin_on_cpu() bpf_prog_load() bpf_tracing_func_proto() trace_set_clr_event() mutex_lock(&event_mutex) Delegate trace_set_clr_event() to workqueue to avoid such lock dependency.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.140-154.222.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.29-33.102.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.140-154.222.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a363d27cdbc2bc2d1899b5a1520b64e3590fcd9a, a363d27cdbc2bc2d1899b5a1520b64e3590fcd9a |
| Linux | Linux | 6.13, 0, 6.14.5 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| linux | linux_kernel | 6.13, 6.13 |
| amazon:2023 | kernel-modules-extra | 0 |
| Linux | Linux | 0, *, 6.14.5 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-livepatch-6.1.140-154.222 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.29-33.102 | 0 |
| amazon:2023 | python3-perf | 0 |
…and 3 more
Timeline
- May 8, 2025 CVE Published
- May 9, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (24 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (103 in total, the first dated here)
- Mar 29, 2026 Security Advisory (106 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-37884
vulnetix vdb fixes CVE-2025-37884
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-37884/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart