CVE-2024-26980 ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
A slab-out-of-bounds read in the Linux kernel ksmbd module allows attackers to cause denial of service or read sensitive memory.
- 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-26980?
CVE-2024-26980 is a high-severity memory corruption vulnerability in Linux kernel, published on 1 May 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:
ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size validation could be skipped. if request size is smaller than sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in smb2_allocate_rsp_buf(). This patch allocate response buffer after decrypting transform request. smb3_decrypt_req() will validate transform request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().
Weakness: CWE-125
Which versions are affected by CVE-2024-26980?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-26980?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-26980 being exploited?
There is no known exploitation of CVE-2024-26980 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-26980, DEBIAN-CVE-2024-26980, GHSA-rmx7-cw76-79w4, UBUNTU-CVE-2024-26980.