CVE-2026-98115: ksmbd: safely drain sessions during logoff
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: safely drain sessions during logoff
SMB3 multichannel allows requests for one session to run on multiple connections. Wait for all channels bound to a session before freeing shared session objects.
A deferred byte-range lock remains counted as a running request and only wakes when its file closes. Wake blocked locks during the drain without unpublishing or modifying their file objects. Synchronous CANCEL requests must invoke their cancellation callback to wake pending operations, while CHANGE_NOTIFY completion remains specific to the asynchronous path.
Serialize session teardown with channel registration and previous-session cleanup, and use atomic work-state transitions so LOGOFF, CANCEL, and connection teardown invoke cancellation callbacks only once.
The Linux kernel CVE team has assigned CVE-2026-98115 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 76e98a158b207771a6c9a0de0a60522a446a3447 and fixed in 7.2.7 with commit a7e6df0bb92642bee4431b2b85c69ada1e463b21 Issue introduced in 6.11 with commit 76e98a158b207771a6c9a0de0a60522a446a3447 and fixed in 7.3-rc2 with commit d12168084c8c1b6d883c8eca5853929ac5136a9e Issue introduced in 6.6.48 with commit 118fd997612d1efc94a86c307c6c6d659ebe29fc Issue introduced in 6.10.7 with commit c1e55020534c4aafbc38d8f5c4583ff30755ac18
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-98115
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/smb2pdu.c
fs/smb/server/vfs_cache.c
fs/smb/server/vfs_cache.h
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/a7e6df0bb92642bee4431b2b85c69ada1e463b21 https://git.kernel.org/stable/c/d12168084c8c1b6d883c8eca5853929ac5136a9e