CVE-2023-52440 ksmbd: fix slub overflow in ksmbd_decode_ntlmssp_auth_blob()
A slub overflow in the Linux kernel ksmbd module allows attackers to trigger memory corruption, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52440?
CVE-2023-52440 is a critical memory corruption vulnerability in Linux kernel, published on 21 Feb 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 slub overflow in ksmbd_decode_ntlmssp_auth_blob()
If authblob->SessionKey.Length is bigger than session key size(CIFS_KEY_SIZE), slub overflow can happen in key exchange codes. cifs_arc4_crypt copy to session key array from SessionKey from client.
Weakness: CWE-119
Which versions are affected by CVE-2023-52440?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52440?
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-2023-52440 being exploited?
There is no known exploitation of CVE-2023-52440 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52440, CVE-2023-4533, DEBIAN-CVE-2023-52440, GHSA-gr5c-gf9x-ww6q, UBUNTU-CVE-2023-52440.