Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 542BC489FC1 for ; Fri, 25 Sep 2026 10:40:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332813; cv=none; b=bLZoId15L5Y7/HRrG5ltpQoZtsm7UZ/KU+O823a3jODjTqSXDAUKI/NEI7trNK3fxBnKdBbOEvqwsWN1IPRzCzk0LzE8px6BXyomjek1EPoCFi17BT9T9yFwVdmUwfFR3BE4ZnjJU58GtM3pzL7tPojM0jssG2jLBBKnOSkauqQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332813; c=relaxed/simple; bh=b3g3vcMcpqkto+x26Ys+E6mJfnU9yRZ3fo2fraPfI60=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jluIjLXe4PdUcf1NmP5O/DDs4EFf7Dz8lzstLFlNvO2o5QEsA9v1skiWiZwrLJAZgaTeYq4XpZoRDIX5XdfND3KrTfljdjforNhSaGekmAhxGAg5wuZrdMY//MLd5ZjD1TbPu9AWyx5MjEVZfcnVyOg4I60KUxsXY2n/0ZfnPZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ko2teL/G; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ko2teL/G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 496821F000FF; Fri, 25 Sep 2026 10:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332811; bh=KTRFeyFW7DBfAtdcivkBy0jHtYRVP6jDhK8tZ7eHXhE=; h=From:To:Cc:Subject:Date:Reply-To; b=ko2teL/G8Y7NOfCKZemj2BiZ33ks5voQCRMN6U7qBbtIHvJuw8sx2IbH8Ob2OdQRG +ut3epnPGA2NEmn61Dm8Wm2taIIqHERXKRbTmVkJQeIe0yDNLzjOY12dbHRW4qhKKH eeqVrUOkx6GjUKribwU/YHz+AnCDXvxP9LzhSAoQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98115: ksmbd: safely drain sessions during logoff Date: Fri, 25 Sep 2026 12:39:22 +0200 Message-ID: <2026092512-CVE-2026-98115-4d94@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2813; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t6uJhr/2AELqb8pZuNQi0nw9H6rMUDvr/yKkhCCxZdo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/ANSVCKmXPH4qX/Qfe+seXtzzAQXnrnwNOPQyxN70 3jsM/4kdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHtkzzI/7eSplpgDr38dM p4otco8dCD9nVsSwYNavwB1PVz/cNjHu7761P+deOfFx8XwA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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