CVE-2023-52440: ksmbd: fix slub overflow in ksmbd_decode_ntlmssp_auth_blob()
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.
Security readout for executives and security teams
Plain-English summary
A remote, unauthenticated client can provide an oversized session-key length while authenticating to Linux’s ksmbd SMB server, causing memory corruption inside the kernel. The supplied CVSS rating indicates potential loss of confidentiality, integrity, and availability. Systems not using ksmbd are unlikely to expose the vulnerable code path.
Executive priority
Treat internet-facing or broadly reachable ksmbd servers as an urgent patching priority because kernel memory corruption occurs before authentication. Validate exposure immediately, then deploy vendor-supported fixed kernels through emergency change procedures. Systems without active ksmbd can receive lower priority after that condition is verified.
Technical view
CVE-2023-52440 is a SLUB overflow in ksmbd_decode_ntlmssp_auth_blob(). The code failed to ensure authblob->SessionKey.Length fit the CIFS_KEY_SIZE destination before cifs_arc4_crypt copied client-controlled session-key data. The network-accessible authentication path requires neither privileges nor user interaction according to CVSS 3.1.
Likely exposure
Prioritize Linux systems running ksmbd and accepting SMB connections from untrusted networks. The supplied affected-version data is irregular and includes release numbers plus commit identifiers, so version strings alone may misclassify distribution kernels with backported fixes. Confirm exposure through kernel vendor advisories and patch provenance.
Exploitation context
The source bundle reports CVSS 9.8 with network access, low complexity, no required privileges, and no user interaction. It does not provide evidence of public exploitation or a working exploit, and KEV is false. Active exploitation should therefore not be claimed.
Researcher notes
The documented defect is a missing upper-bound check on a client-supplied NTLMSSP SessionKey length before copying into a fixed CIFS_KEY_SIZE array. Multiple stable-branch commits are supplied. The bundle does not establish exploitability beyond the overflow and CVSS assessment, so specific outcomes such as reliable code execution should not be asserted.
Mitigation direction
Install a vendor-supported kernel containing the applicable referenced stable fix.
Confirm distribution backports using vendor advisories or kernel package changelogs.
Until patched, restrict untrusted network access to systems providing ksmbd SMB service.
If ksmbd is unnecessary, consult vendor guidance about safely disabling it.
Validation and detection
Inventory Linux hosts, running kernel versions, and distribution package revisions.
Determine whether ksmbd is active and reachable from untrusted network segments.
Verify the installed kernel contains the relevant stable fix or documented vendor backport.
After updating, confirm the new kernel is running and SMB functionality remains healthy.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2023-52440 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.