Skip to content
Heist/ feed
Back to feed
UnratedFix available

bpf: Fix deadlock between rcu_tasks_trace and event_mutex.

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.14.5
CVEs
CVE-2025-37884
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 14:35 UTC · Revision 1

Source evidence

bpf: Fix deadlock between rcu_tasks_trace and event_mutex.

core-osv · Original source

Published 9 May 2025, 06:45 UTC

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.

osv:CVE-2025-37884

Kernel

Fixed versions: 6.14.5

Complete source record
{
  "id": "d12f4acaff835885474bf7535ca2cd56efefd76750bba8f4278969151be0e853",
  "url": "https://osv.dev/vulnerability/CVE-2025-37884",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "bpf: Fix deadlock between rcu_tasks_trace and event_mutex.",
    "summary": "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.",
    "evidence": "osv:CVE-2025-37884",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.14.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-37884",
      "aliases": [
        "CVE-2025-37884"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a363d27cdbc2bc2d1899b5a1520b64e3590fcd9a"
                },
                {
                  "fixed": "45286680b385f2592db3003554872388dee66d68"
                },
                {
                  "fixed": "4580f4e0ebdf8dc8d506ae926b88510395a0c1d1"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37884.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.14.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37884.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.260199552Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/45286680b385f2592db3003554872388dee66d68",
        "https://git.kernel.org/stable/c/4580f4e0ebdf8dc8d506ae926b88510395a0c1d1",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37884.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-37884",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37884.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-37884",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 519649,
  "published_at": "2025-05-09T06:45:47.462+00:00"
}