CVE-2026-90169: ksmbd: free preauth sessions on connection teardown
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-90169 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 6.6.157 with commit effcf48d79d8aa53113d8289e140746f25ceb62c Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 6.12.110 with commit b62b1ebb25f0a19067ed5b1a86036b2dc98be44f Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 6.18.52 with commit a41a98ee16ae038751b6639decadaa3ce15ca18a Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 7.2.6 with commit 8e2ebc77678832e981adc008d25cd8f67d08ebc4 Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 7.3-rc1 with commit 06c7b1d731bc105a8644f1b70165ba8b9416cbab
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-90169
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/mgmt/user_session.c
fs/smb/server/mgmt/user_session.h
fs/smb/server/smb2ops.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/effcf48d79d8aa53113d8289e140746f25ceb62c https://git.kernel.org/stable/c/b62b1ebb25f0a19067ed5b1a86036b2dc98be44f https://git.kernel.org/stable/c/a41a98ee16ae038751b6639decadaa3ce15ca18a https://git.kernel.org/stable/c/8e2ebc77678832e981adc008d25cd8f67d08ebc4 https://git.kernel.org/stable/c/06c7b1d731bc105a8644f1b70165ba8b9416cbab