CVE-2023-52440: SLUB overflow in Linux kernel ksmbd NTLMSSP auth blob decoding
- Vendor
- Linux
CVE-2023-52440 is a Linux kernel ksmbd vulnerability in ksmbd_decode_ntlmssp_auth_blob(). According to the provided content, if authblob->SessionKey.Length is larger than the fixed session key size (CIFS_KEY_SIZE), the key exchange code can copy attacker-controlled SessionKey data into the session key array without proper bounds enforcement, causing a SLUB-based heap overflow. The issue occurs during NTLMSSP authentication blob processing in the in-kernel SMB server (ksmbd).
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can corrupt kernel heap memory during ksmbd authentication processing. Because the flaw is in kernel-space SMB server code, impact can include kernel crash/denial of service and potentially more severe consequences such as arbitrary code execution in kernel context, depending on exploitability and surrounding conditions. The provided content specifically confirms heap overflow in the session key handling path.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by disabling or unloading ksmbd where it is not required, and prevent untrusted network access to the SMB service. Restrict SMB access to trusted hosts and networks only. More generally, avoid exposing the in-kernel SMB server to hostile clients until patched. The provided content does not establish any complete mitigation short of applying the fix.
Remediation
Patch, then assume compromise.
Apply a Linux kernel update containing the ksmbd fix for CVE-2023-52440. The vulnerable code should enforce that authblob->SessionKey.Length does not exceed the destination session key buffer size (CIFS_KEY_SIZE) before copying data in the key exchange path. Use vendor-supplied patched kernels from the relevant distribution or upstream stable releases that include the fix.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-52440 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2023-52440 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-52440?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2023-52440, the earliest disclosed Sep 12, 2025.
- Is there a patch for CVE-2023-52440?
- Apply a Linux kernel update containing the ksmbd fix for CVE-2023-52440. The vulnerable code should enforce that authblob->SessionKey.Length does not exceed the destination session key buffer size (CIFS_KEY_SIZE) before copying data in the key exchange path.
- What products are affected by CVE-2023-52440?
- Linux Kernel.
- How severe is CVE-2023-52440?
- CVE-2023-52440 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 22.3% (98th percentile) as of Oct 16, 2026.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.