What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.6.107, 6.12.23, 6.13.11, 6.14.2; Linux 6.15. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-22037 or the next vulnerability affects your stack