CVE-2024-50260 sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()
A race condition in the Linux kernel's sock_map component can cause a NULL pointer dereference, leading to a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50260?
CVE-2024-50260 is a medium-severity vulnerability in Linux kernel, published on 9 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()
The following race condition could trigger a NULL pointer dereference:
sock_map_link_detach(): sock_map_link_update_prog(): mutex_lock(&sockmap_mutex); ... sockmap_link->map = NULL; mutex_unlock(&sockmap_mutex); mutex_lock(&sockmap_mutex); ... sock_map_prog_link_lookup(sockmap_link->map); mutex_unlock(&sockmap_mutex); <continue>
Fix it by adding a NULL pointer check. In this specific case, it makes no sense to update a link which is being released.
Weakness: CWE-476
Which versions are affected by CVE-2024-50260?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50260?
Apply the vendor's patch.
Is CVE-2024-50260 being exploited?
There is no known exploitation of CVE-2024-50260 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-50260, DEBIAN-CVE-2024-50260, GHSA-rhhp-94ch-9rf5, UBUNTU-CVE-2024-50260.