Skip to main content
VulnerabilityPublished Updated

CVE-2024-50138: Linux kernel · bpf: Use raw_spinlock_t in ringbuf

Source GCVE Database

0
Compare

Not known to be exploited · CVSS 5.5 Medium.

Data as of 29 Oct 2026, 23:30 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Nov 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

AI-suggested

A fix is available that replaces spinlock_t with raw_spinlock_t in the affected ring buffer code. Users should apply the official Linux kernel patch that addresses this issue. Since no vendor advisory or patch links are provided, check the Linux kernel mailing lists or official repositories for the patch corresponding to CVE-2024-50138.

Description

CVE-2024-50138 is a medium severity vulnerability in the Linux kernel involving the use of spinlock_t in the BPF ring buffer code. The function __bpf_ringbuf_reserve is called from a tracepoint context where preemption is disabled, and using spinlock_t here can cause a "sleep in atomic" warning in the real-time (RT) kernel variant. The issue is resolved by switching to raw_spinlock_t to avoid this error.

References

Community reviews

Loading reviews…