VDB

CVE-2025-37884

CVE-2025-37884 PUBLISHED

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.

PackageEcosystemFixed in
perfAmazon Linux6.1.140-154.222.amzn2023
kernel-headersAmazon Linux6.1.140-154.222.amzn2023
perf6.12Amazon Linux6.12.29-33.102.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.140-154.222.amzn2023
kernel-libbpf-staticAmazon Linux6.1.140-154.222.amzn2023

Affected products

VendorProductVersions
LinuxLinuxa363d27cdbc2bc2d1899b5a1520b64e3590fcd9a, a363d27cdbc2bc2d1899b5a1520b64e3590fcd9a
LinuxLinux6.13, 0, 6.14.5
amazon:2023perf0
amazon:2023kernel-headers0
amazon:2023perf6.120
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-libbpf-static0
linuxlinux_kernel6.13, 6.13
amazon:2023kernel-modules-extra0
LinuxLinux0, *, 6.14.5
amazon:2023bpftool0
amazon:2023kernel6.120
amazon:2023kernel-tools-devel0
amazon:2023kernel0
amazon:2023kernel-livepatch-6.1.140-154.2220
amazon:2023python3-perf6.120
amazon:2023kernel-tools0
amazon:2023kernel-devel0
amazon:2023kernel-livepatch-6.12.29-33.1020
amazon:2023python3-perf0

…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

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