ksmbd: free preauth sessions on connection teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f5a544e3bab78142207e0242d22442db85ba1eff · < 06c7b1d731bc105a8644f1b70165ba8b9416cbab| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: free preauth sessions on connection teardown
SMB3.1.1 multichannel binding preserves the preauthentication hash in a preauth_session between the NTLM negotiate and authenticate requests. The binding NTLM negotiate allocates this object and returns STATUS_MORE_PROCESSING_REQUIRED. If the client disconnects before it sends the authenticate request, neither the authenticate nor error cleanup paths free the object.
Release any remaining preauthentication sessions when tearing down the connection. Initialize the list when allocating the connection so that this cleanup is safe regardless of the negotiated dialect.
From the CVE record · Linux
The Linux kernel’s ksmbd can leave a preauthentication session allocated during SMB3.1.1 multichannel binding. A remote client can trigger the leak by disconnecting after the NTLM negotiate request but before the authenticate request; authentication is not required, and no user interaction is described.
Operators running Linux kernels with ksmbd should check whether their kernel includes the fix; affected versions are not specified.