ksmbd: scope session state changes to bound connections
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: scope session state changes to bound connections
ksmbd_all_conn_set_status() treats every connection whose transient binding flag is set as belonging to the target SessionId. A logoff or session replacement can consequently move an unrelated connection to NEED_RECONNECT or NEED_SETUP.
Pass the target session itself and select connections using either the connection-local session xarray or the session's permanent channel list. Use the same association test while waiting for requests to drain.
Serialize session-wide status changes under request_lock and do not overwrite EXITING or RELEASING. Protect the shutdown transition with the same lock so a concurrent session update cannot revive a closing connection.
From the CVE record · Linux
The Linux kernel’s ksmbd component can mistake an unrelated connection for one bound to a session. During a logoff or session replacement, that connection can be moved to NEED_RECONNECT or NEED_SETUP. The input does not specify authentication requirements or other attacker prerequisites.
Engineers running Linux systems with ksmbd should check their kernel; affected versions are not specified.