Skip to contentSkip to conversation

CVE-2026-90154: ksmbd: scope session state changes to bound connections

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-90154 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 7.2.6 with commit 0875872718b98e8530fbc634e5aa7dbd3253b80d
	Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 7.3-rc1 with commit c50e628122aed077695669e25b842e778511a43d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90154

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/smb/server/connection.c
fs/smb/server/connection.h
fs/smb/server/mgmt/user_session.c
fs/smb/server/smb2pdu.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/0875872718b98e8530fbc634e5aa7dbd3253b80d
	https://git.kernel.org/stable/c/c50e628122aed077695669e25b842e778511a43d