CVE-2023-52440
published critical CVSS 3.1 · 9.8ksmbd: fix slub overflow in ksmbd_decode_ntlmssp_auth_blob()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc5049d2d73b2dc8e6bb64be633250bad1ae3d9ef to < bd554ed4fdc3d38404a1c43d428432577573e809 · f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba · f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4 · f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < ecd7e1c562cb08e41957fcd4b0e404de5ab38e20 · f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < 4b081ce0d830b684fdf967abc3696d1261387254 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 6.1.52 through 6.1.* (unaffected · semver) · 6.4.15 through 6.4.* (unaffected · semver) · 6.5.2 through 6.5.* (unaffected · semver) · 6.6 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The bug is in ksmbd's NTLMSSP SESSION_SETUP handling (fs/smb/server/), reached over TCP/445 via the in-kernel SMB server from a remote peer with no local access required. AC:L - An attacker who sets NTLMSSP_NEGOTIATE_KEY_XCH and supplies SessionKey.Length > CIFS_KEY_SIZE (40) reliably triggers cifs_arc4_crypt()'s unbounded write into sess->sess_key; no race or attacker-uncontrollable condition is required. PR:N - The overflow runs in the KEY_XCH path after ksmbd_auth_ntlmv2() regardless of whether authentication succeeds, so valid credentials are not required—only a configured username during the pre-auth handshake, which ZDI also assessed as unauthenticated. UI:N - Exploitation requires only attacker-sent SMB SESSION_SETUP messages; no victim user action is needed. S:U - This is standard in-kernel heap corruption leading to privilege escalation within the host kernel's security authority, not a VM/IOMMU/sandbox boundary cross. C:H - The heap OOB write corrupts ksmbd_session fields and adjacent SLUB objects, which can be leveraged for arbitrary kernel memory disclosure under standard heap-exploitation techniques. I:H - Attacker-controlled-length write past the 40-byte sess_key into session pointers/keys and adjacent slab objects is an out-of-bounds write enabling control-flow hijacking and RCE, as assessed by ZDI (ZDI-24-229). A:H - The SLUB overflow corrupts kernel heap metadata and session structures, causing reliable kernel oops/panic and denial of service of the host.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c5049d2d73b2dc8e6bb64be633250bad1ae3d9ef to < bd554ed4fdc3d38404a1c43d428432577573e809 (affected · git)f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba (affected · git)f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4 (affected · git)f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < ecd7e1c562cb08e41957fcd4b0e404de5ab38e20 (affected · git)f9929ef6a2a55f03aac61248c6a3a987b8546f2a to < 4b081ce0d830b684fdf967abc3696d1261387254 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.17 (affected)0 to < 5.17 (unaffected · semver)6.1.52 through 6.1.* (unaffected · semver)6.4.15 through 6.4.* (unaffected · semver)6.5.2 through 6.5.* (unaffected · semver)6.6 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/30fd6521b2fbd9b767e438e31945e5ea3e3a2fba
- https://git.kernel.org/stable/c/4b081ce0d830b684fdf967abc3696d1261387254
- https://git.kernel.org/stable/c/7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4
- https://git.kernel.org/stable/c/bd554ed4fdc3d38404a1c43d428432577573e809
- https://git.kernel.org/stable/c/ecd7e1c562cb08e41957fcd4b0e404de5ab38e20
Provider assertions
3Linux · cna
ksmbd: fix slub overflow in ksmbd_decode_ntlmssp_auth_blob()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 920da2afb20a52fc69b9ccfd092a54a8330001089cad9dd6668d5b709d0729ae
- Ingested
- 23 Sep 2026, 08:14:33 UTC
- Source record
- Official CVE record