ksmbd: unset conn->binding on failed binding request
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f5a544e3bab78142207e0242d22442db85ba1eff · < 6260fc85ed1298a71d24a75d01f8b2e56d489a60| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: unset conn->binding on failed binding request
When a multichannel SMB2_SESSION_SETUP request with SMB2_SESSION_REQ_FLAG_BINDING fails ksmbd sets conn->binding = true but never clears it on the error path. This leaves the connection in a binding state where all subsequent ksmbd_session_lookup_all() calls fall back to the global sessions table. This fix it by clearing conn->binding = false in the error path.
From the CVE record · Linux
The Linux kernel's ksmbd leaves a connection in a binding state when a multichannel SMB2_SESSION_SETUP binding request fails. Subsequent session lookups on that connection fall back to the global sessions table. The issue is triggered by a failed SMB request; the input does not specify an authentication requirement or user interaction.
Engineers running Linux kernels with ksmbd should check their versions against the vendor advisory; affected versions were not provided.