CVE-2024-38566 bpf: Fix verifier assumptions about socket->sk
A null pointer dereference in the Linux kernel BPF verifier can cause a system crash when handling newly created sockets.
- 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-38566?
CVE-2024-38566 is a medium-severity vulnerability in Linux kernel, published on 19 Jun 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:
bpf: Fix verifier assumptions about socket->sk
The verifier assumes that 'sk' field in 'struct socket' is valid and non-NULL when 'socket' pointer itself is trusted and non-NULL. That may not be the case when socket was just created and passed to LSM socket_accept hook. Fix this verifier assumption and adjust tests.
Which versions are affected by CVE-2024-38566?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-38566?
Apply the vendor's patch.
Is CVE-2024-38566 being exploited?
There is no known exploitation of CVE-2024-38566 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-38566, DEBIAN-CVE-2024-38566, GHSA-95cm-jx47-9cpv, UBUNTU-CVE-2024-38566.