# CVE-2025-22037: ksmbd: fix null pointer dereference in alloc_preauth_hash()

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 69.4%, higher than 99% of CVEs (2026-12-01)
- Published: 2025-04-16T14:11:55.670Z
- Modified: 2026-10-30T13:17:55.693Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix null pointer dereference in alloc_preauth_hash()

The Client send malformed smb2 negotiate request. ksmbd return error
response. Subsequently, the client can send smb2 session setup even
thought conn->preauth_info is not allocated.
This patch add KSMBD_SESS_NEED_SETUP status of connection to ignore
session setup request if smb2 negotiate phase is not complete.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 2d3461d6ae74ebdcd4d65128c855198649bcadcd; from 0626e6641f6b467447c81dd7678a69c66f7746cf before cce57cd8c5dead24127cf2308fdd60fcad2d6ba6; from 0626e6641f6b467447c81dd7678a69c66f7746cf before ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d; from 0626e6641f6b467447c81dd7678a69c66f7746cf before b8eb243e670ecf30e91524dd12f7260dac07d335; from 0626e6641f6b467447c81dd7678a69c66f7746cf before c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780; 5.15 (not affected: before 5.15; from 6.1.191 up to 6.1.*; from 6.6.107 up to 6.6.*; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.6 before 6.6.107; from 6.12 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## References

- <https://git.kernel.org/stable/c/2d3461d6ae74ebdcd4d65128c855198649bcadcd>
- <https://git.kernel.org/stable/c/cce57cd8c5dead24127cf2308fdd60fcad2d6ba6> (patch)
- <https://git.kernel.org/stable/c/ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad> (patch)
- <https://git.kernel.org/stable/c/8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d> (patch)
- <https://git.kernel.org/stable/c/b8eb243e670ecf30e91524dd12f7260dac07d335> (patch)
- <https://git.kernel.org/stable/c/c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780> (patch)
- <https://www.zerodayinitiative.com/advisories/ZDI-25-310/> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-22037](https://www.cve.org/CVERecord?id=CVE-2025-22037), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-22037](https://nvd.nist.gov/vuln/detail/CVE-2025-22037), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-22037 · Whole record: https://cve.day/CVE-2025-22037.json · Rebuilt by cve.day 2026-11-25T22:58:56.577Z
