Linux · Linux Kernel · CVE-2024-50138
Name of the Vulnerable Software and Affected Versions:
Linux kernel (affected versions not specified)
Description:
The issue arises from the function ` bpf ringbuf reserve` being invoked from a tracepoint, which disables preemption. Using `spinlock t` in this context can lead to a "sleep in atomic" warning in the RT variant. This is illustrated by an example where a "sleeping function called from invalid context" error occurs. The error is caused by the use of `spinlock t` instead of `raw spinlock t` in the ` bpf ringbuf reserve` function.
Recommendations:
At the moment, there is no information about a newer version that contains a fix for this vulnerability.