CVE-2025-37884 bpf: Fix deadlock between rcu_tasks_trace and event_mutex.
A deadlock in the Linux kernel BPF subsystem can cause a denial of service by blocking system operations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-37884?
CVE-2025-37884 is a medium-severity vulnerability in Debian Debian Linux, published on 9 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-667
Which versions are affected by CVE-2025-37884?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-37884?
Apply the vendor's patch.
Is CVE-2025-37884 being exploited?
There is no known exploitation of CVE-2025-37884 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-70162, BELL-CVE-2025-37884, GHSA-9x8p-g64x-m5j5, ROOT-OS-DEBIAN-11-CVE-2025-37884, ROOT-OS-DEBIAN-12-CVE-2025-37884, ROOT-OS-UBUNTU-2204-CVE-2025-37884 and 2 more.