# CVE-2023-52440: ksmbd: fix slub overflow in ksmbd\_decode\_ntlmssp\_auth\_blob()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.81% (percentile 54, 2026-11-26)
- **CWE:** CWE-119
- **Published:** 2024-02-21T07:21:00.438Z
- **Modified:** 2026-08-15T13:17:40.787Z

## Who should check

- Anyone running Linux \>= c5049d2d73b2dc8e6bb64be633250bad1ae3d9ef, \< bd554ed4fdc3d38404a1c43d428432577573e809; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< ecd7e1c562cb08e41957fcd4b0e404de5ab38e20; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 4b081ce0d830b684fdf967abc3696d1261387254
- Anyone running Linux 5.17

## 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.

## Affected and fixed versions

- Linux: \>= c5049d2d73b2dc8e6bb64be633250bad1ae3d9ef, \< bd554ed4fdc3d38404a1c43d428432577573e809; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< ecd7e1c562cb08e41957fcd4b0e404de5ab38e20; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 4b081ce0d830b684fdf967abc3696d1261387254 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 4b081ce0d830b684fdf967abc3696d1261387254 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52440. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52440.md
Affected: Linux >= c5049d2d73b2dc8e6bb64be633250bad1ae3d9ef, < bd554ed4fdc3d38404a1c43d428432577573e809; >= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, < 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba; >= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, < 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4; >= f9929ef6a2a55f03aac6124…
Fixed in: Linux 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba, Linux 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4, Linux 4b081ce0d830b684fdf967abc3696d1261387254

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52440 being exploited?

There is no confirmed exploitation: CVE-2023-52440 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52440?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-52440?

Linux \>= c5049d2d73b2dc8e6bb64be633250bad1ae3d9ef, \< bd554ed4fdc3d38404a1c43d428432577573e809; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< ecd7e1c562cb08e41957fcd4b0e404de5ab38e20; \>= f9929ef6a2a55f03aac61248c6a3a987b8546f2a, \< 4b081ce0d830b684fdf967abc3696d1261387254; Linux 5.17.

### Is there a fix for CVE-2023-52440?

Yes. Fixed in Linux 30fd6521b2fbd9b767e438e31945e5ea3e3a2fba, Linux 7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4, Linux 4b081ce0d830b684fdf967abc3696d1261387254. Upgrade Linux to 4b081ce0d830b684fdf967abc3696d1261387254 or later.

### How do I check if I'm affected by CVE-2023-52440?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/bd554ed4fdc3d38404a1c43d428432577573e809>
- patch: <https://git.kernel.org/stable/c/30fd6521b2fbd9b767e438e31945e5ea3e3a2fba>
- patch: <https://git.kernel.org/stable/c/7f1d6cb0eb6af3a8088dc24b7ddee9a9711538c4>
- patch: <https://git.kernel.org/stable/c/ecd7e1c562cb08e41957fcd4b0e404de5ab38e20>
- patch: <https://git.kernel.org/stable/c/4b081ce0d830b684fdf967abc3696d1261387254>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52440>

HTML: <https://flawdb.com/CVE-2023-52440> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52440>
