CVE-2024-49864 rxrpc: Fix a race between socket set up and I/O thread creation
A race condition in the Linux kernel's rxrpc module can cause a system crash when a packet arrives before the I/O thread is created.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-49864?
CVE-2024-49864 is a high-severity vulnerability in Linux kernel, published on 21 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Fix a race between socket set up and I/O thread creation
In rxrpc_open_socket(), it sets up the socket and then sets up the I/O thread that will handle it. This is a problem, however, as there's a gap between the two phases in which a packet may come into rxrpc_encap_rcv() from the UDP packet but we oops when trying to wake the not-yet created I/O thread.
As a quick fix, just make rxrpc_encap_rcv() discard the packet if there's no I/O thread yet.
A better, but more intrusive fix would perhaps be to rearrange things such that the socket creation is done by the I/O thread.
Weakness: CWE-362
Which versions are affected by CVE-2024-49864?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-49864?
Apply the vendor's patch.
Is CVE-2024-49864 being exploited?
There is no known exploitation of CVE-2024-49864 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-49864, DEBIAN-CVE-2024-49864, GHSA-cx67-p8xc-qwg4, UBUNTU-CVE-2024-49864.