Linux Kernel Deadlock Vulnerability in BPF Event Mutex
CVE-2025-37884
Summary
A critical deadlock vulnerability has been identified in the Linux kernel's BPF subsystem, where the improper handling of event mutex can lead to system hangs. Specifically, the _free_event() function can simultaneously acquire the event_mutex while invoking synchronize_rcu_tasks_trace, creating a potential deadlock scenario. This vulnerability manifests when multiple CPU threads interact with tracing events, particularly during the execution of performance-related operations. A fix has been implemented to delegate trace_set_clr_event() to a workqueue, effectively avoiding lock dependencies and ensuring smoother operation of performance tracing functionalities.
Affected Version(s)
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 255cbc9db7067a83713fd2f4b31034ddd266549a
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
References
Timeline
Vulnerability published
Vulnerability Reserved