CVE-2024-44996 vsock: fix recursive ->recvmsg calls
A recursive call in the Linux kernel vsock module can cause a stack overflow, leading to a denial of service when BPF sockmaps are used.
- 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-44996?
CVE-2024-44996 is a medium-severity denial of service vulnerability in Linux kernel, published on 4 Sep 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:
vsock: fix recursive ->recvmsg calls
After a vsock socket has been added to a BPF sockmap, its prot->recvmsg has been replaced with vsock_bpf_recvmsg(). Thus the following recursiion could happen:
vsock_bpf_recvmsg() -> __vsock_recvmsg() -> vsock_connectible_recvmsg() -> prot->recvmsg() -> vsock_bpf_recvmsg() again
We need to fix it by calling the original ->recvmsg() without any BPF sockmap logic in __vsock_recvmsg().
Weakness: CWE-674
Which versions are affected by CVE-2024-44996?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-44996?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-44996 being exploited?
There is no known exploitation of CVE-2024-44996 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-49300, BELL-CVE-2024-44996, DEBIAN-CVE-2024-44996, GHSA-2gjh-m4gq-rxrh, UBUNTU-CVE-2024-44996.