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 57A935293E7 for ; Wed, 14 Oct 2026 13:30:28 +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=1791984638; cv=none; b=eTKH06dnkMpJu7FSjzq6s7pSmrnsAvUqOtF/UFqCRkj+A575hA3X8w5lp3sdjPAf5ZiZ7dIHU4ZC+rUThFDUh7xOAKi0Br+ndkWpYNx8qsjHoBojB3TRhXjJORzqdPwGb7wD7UW4Na8mtKegNRUb2ZGOyiVgCpkBQRUr/ytKuZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791984638; c=relaxed/simple; bh=j47jwc9ZVWCcP9f7zvN/YnzvXKXNzWXNFBdMN7nLKAI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BtdzSyQrjpzUon+KZ5uM1Fjijkowt5zxZYOZikjieppRKToQ2A28VvtcxkUY/6qkbXgYAEzaP4NYZQXPtYlHYSSOx/AWSzUqvuFYQa56wQBuZJ/XWzIASv6PEjDLYZ5I2/evm/IE3mHw5UvhwZyvkkwALdfxZFZCbQHEjKsIVKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=leEnUwxl; 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="leEnUwxl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E57001F00893; Wed, 14 Oct 2026 13:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791984628; bh=MfkDWbbIqje5x1wXWidyfHlG6JlMIc+BWMU/5olXfYQ=; h=From:To:Cc:Subject:Date:Reply-To; b=leEnUwxlRm13C8sOuXH3HDD4D8lqO/WVdfiAYkf0aFtqOwWkhFBea1VNgn6Lx0TnK oTfCnXaW9gCqovaSph+l+txY0U/N2YUFGkIigKmc9Ip+NF2V5dci97ArrYV0cQG2bx C8dd/Mh95wj4d3JrT7rOZP1Tb/v6ZcP1oRnRCCr8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98420: ksmbd: follow SMB2 session expiration semantics Date: Wed, 14 Oct 2026 15:30:18 +0200 Message-ID: <2026101406-CVE-2026-98420-13db@gregkh> X-Mailer: git-send-email 2.56.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=3894; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ujN5ZdLu2rRz1zi8vgCymdnhx+GpLUqKaV2B7ug2NUI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnnm+/J8d7c+ufrmbLrrLsDQ49qv1GpeMHa+pWdW3lfm cEZf4vlHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCROBmGeda6IjkT/J2l0tW3 lk4KtKq6E30ngmGewsItOuKX7JOPr/65d2fDV89p31zUAA== 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: follow SMB2 session expiration semantics ksmbd_session_register() destroys valid sessions after ten seconds of inactivity whenever a client starts another SessionSetup exchange. This confuses Session.IdleTime with Session.ExpirationTime. Windows can create additional authenticated sessions on an existing connection, so deleting the older session invalidates its tree connects and makes mapped drives fail with STATUS_NETWORK_NAME_DELETED. The session expiration rules require the server to change a valid session to expired only after its credential expiration time passes. A valid or expired session otherwise keeps its connection from being scavenged. Connections that have not negotiated a dialect, have no sessions, or have only InProgress sessions are disconnected after an implementation-specific timeout. Use the Windows-compatible 45 second value and run the expiration check periodically for both TCP and SMB Direct. Keep zero as an infinite credential expiration time, and count each Valid-to-Expired transition. Set expired sessions to InProgress when they reauthenticate. If authentication fails, remove the session from the global and per-connection tables immediately, including SMB3 multichannel connections. Retain protection against abandoned SessionId-zero exchanges by allowing only one InProgress authentication per connection. Additional exchanges fail with STATUS_INSUFFICIENT_RESOURCES, and stale InProgress sessions are reaped after the same 45 second setup timeout. This bounds the original unauthenticated memory-exhaustion path without evicting established sessions. The Linux kernel CVE team has assigned CVE-2026-98420 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit ea174a91893956450510945a0c5d1a10b5323656 and fixed in 7.2.8 with commit c99ea7855124ca1428a1e59c2b4590aaef34eacf Issue introduced in 6.4 with commit ea174a91893956450510945a0c5d1a10b5323656 and fixed in 7.3-rc4 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 Issue introduced in 5.15.145 with commit a6a9601ba995d0fec635324cb9fd8d14f9bea14e Issue introduced in 6.1.29 with commit 1fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d Issue introduced in 6.2.16 with commit 750a2d772e9d9ff377fd32e3b6797bf2cd847a7a Issue introduced in 6.3.2 with commit 6775ee7ef4b37c521aa4cf3730f54554c4875542 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-98420 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/mgmt/user_session.h fs/smb/server/proc.c fs/smb/server/server.c fs/smb/server/smb2pdu.c fs/smb/server/smb2pdu.h fs/smb/server/stats.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/c99ea7855124ca1428a1e59c2b4590aaef34eacf https://git.kernel.org/stable/c/d7fd1f98607f2cd358e583f9548bdf0173090a86