ksmbd: fix null pointer dereference in alloc_preauth_hash()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0626e6641f6b467447c81dd7678a69c66f7746cf · < c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
Linux kernel ksmbd can dereference a null pointer when a client sends a malformed SMB2 negotiate request followed by an SMB2 session setup request. A network client can trigger this before session setup completes; no user interaction is described.
Engineers running Linux kernels with ksmbd enabled should check their installations; affected versions are not specified.