CVE-2024-41005: netpoll: Fix race condition in netpoll_owner_active
In the Linux kernel, the following vulnerability has been resolved:
netpoll: Fix race condition in netpollowneractive
KCSAN detected a race condition in netpoll:
BUG: KCSAN: data-race in netrxaction / netpollsendskb write (marked) to 0xffff8881164168b0 of 4 bytes by interrupt on cpu 10: netrxaction (./include/linux/netpoll.h:90 net/core/dev.c:6712 net/core/dev.c:6822) <snip> read to 0xffff8881164168b0 of 4 bytes by task 1 on cpu 2: netpollsendskb (net/core/netpoll.c:319 net/core/netpoll.c:345 net/core/netpoll.c:393) netpollsendudp (net/core/netpoll.c:?) <snip> value changed: 0x0000000a -> 0xffffffff
This happens because netpollowneractive() needs to check if the current CPU is the owner of the lock, touching napi->pollowner non atomically. The ->pollowner field contains the current CPU holding the lock.
Use an atomic read to check if the poll owner is the current CPU.
Other sources
Linux Kernel is vulnerable to a denial of service, caused by a race condition in netpollowneractive. By sending a specially crafted request, a local authenticated attacker could exploit this vulnerability to cause a denial of service condition.
— IBM
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-41005?
CVE-2024-41005 has been classified as a moderate severity vulnerability affecting the Linux kernel.
How do I fix CVE-2024-41005?
To fix CVE-2024-41005, upgrade the Linux kernel to the recommended versions based on your distribution, such as 5.10.221 or higher for Red Hat.
What systems are affected by CVE-2024-41005?
CVE-2024-41005 affects Linux kernel versions prior to 5.10.221, 5.15.162, 6.1.96, 6.6.36, and additional versions listed for Debian.
What kind of vulnerability is CVE-2024-41005?
CVE-2024-41005 is a race condition vulnerability in the netpoll subsystem of the Linux kernel.
Is CVE-2024-41005 exploitable remotely?
CVE-2024-41005's exploitation potential may depend on network configurations and specific conditions within the affected systems.