Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794065631; b=Rarvz+CCpXIJV+rPEuZ9LJblwigNTbNiltkwFIjhxj7HK4a6WbbX6NFRPg+suz/8XYth OjbTYbo7bP2AwuDtB/pAn5lSGWXRoA50nQkDSjNg87nJjgC6tfljZYuTnKJ02ZYnc005r YpHV1ZaPfaNqhiZB75W0U9m74Vggfp4HHfQ3mGIEapolAF7woDWqHhWWOeuaHavbcgfC1 uTqgaQTusq5DpcC1tOo3atN+4A0NvHbmF4c8Nf3dZLAS7azOUQFy/4JOLLIH3Sl4cgfWI g3AaSgrHBUUvrtZc049uVGU7bpBoIeXYujSluUO7eNJd9VhVuBwQc5o4pcgTy8y3ZZA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794065631; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=+loVszp51OBs7npsQ4N54h7PoG2Af6V/KVnqjrCG6zI=; b=OMgFPyuQl4sR8YLjgX6rFZXM/fwSQsepOmgebPaPxaO/WMQDMpyDnfMQ2W83Szp18Tmo FHMUTt/8zgpECnpOBtyAgJy/GQGvBYLoIEcDcGY1xld2NpO+PG34qbwuoD84KvLqCvJpO Ii2mcrLDfV52j4IdrEHKUJUqEsXM7nVWq5HyIRz1EhJm3gVzMopUb3ay71QmsWde4IH66 z6zu9U/QvUEEb6+pxW63jQYXrAxLezL/9d0YsH7g3IPW9N//3L4asKkdIFTSKHoBkcgN4 DMzbknGKIeQwkJgVauH2eaPOhxvTEJZ/3hGOV/bgu5tye7LeX5cg5te2hJFCZ16xYNA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=MHt3BYyy; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46DB8606D80D for ; Sat, 7 Nov 2026 15:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=MHt3BYyy Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6B321F008A1; Sat, 7 Nov 2026 15:33:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794065631; bh=+loVszp51OBs7npsQ4N54h7PoG2Af6V/KVnqjrCG6zI=; h=From:To:Cc:Subject:Date:Reply-To; b=MHt3BYyyhelooxX/Om3Wu7p9LdLvdgUpDC3OvHSuQjYS6miiKu/dI1avO9PAadDjq ELwyGpFDfnqpQZ76GchJJwLjpuUDAz2f7F7zKwgqedkOvotjvLZuunIVeSDyETFh8w 37uVgfERBFmKn3MS31kJXJYqFcgKN9uM/tmbseUg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99279: ksmbd: reclaim ended sessions on logoff and expiration Date: Sat, 7 Nov 2026 09:08:59 -0500 Message-ID: <2026110755-CVE-2026-99279-81d3@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3473; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ukJphfgU5aeFm0mlOz541JSwnzL0PPQJ6k10aFCwRCg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnvDb5fCTnh/Nc97tXZEz0/d/0vN35yfc3784xZLv+m9 V5KWrEgryOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmYt3PsODCIi6je2XXTzyd 5jFLSqe76p/C7SSGWUwXRIJXcq5r/Gbveelxu+Wv3/uirAE= 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: reclaim ended sessions on logoff and expiration LOGOFF and previous-session replacement leave sessions Expired with a zero credential expiry. Ended sessions can retain their memory and connection slots when no further setup arrives on the owning connection. Unpublish a logged-off session while the request reference keeps its response signing and encryption keys alive. Remove its procfs entry before dropping the table reference so a reader cannot remove its own entry on the last put. Clear proc_entry after removal to avoid removing it twice. Reclaim ended sessions from the global table in the existing expiration worker before it acquires conn_list_lock. Only select Expired sessions with zero credential expiry and no references beyond the table reference. Keep sessions whose Kerberos credentials expired available for reauthentication. Unlink the session from its setup connection and all channel connections, so SMB2 sessions and sessions with only secondary SMB3 channels are covered. The session already holds connection references, and sessions_table_lock prevents concurrent channel removal. Queue sessions on a separate disposal list, leaving their hash nodes unhashed, and remove procfs entries and drop table references outside the locks. Keep the pending setup check before allocating a new session so abandoned InProgress sessions can release their slots even at the connection limit. Retain the timeout and reference checks and dispose of those sessions outside the locks. Leave ended Expired sessions to the expiration worker. The Linux kernel CVE team has assigned CVE-2026-99279 to this issue. Affected and fixed versions =========================== Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.3.2 with commit 1767a5e45dbf6a3b12105196dda4fb0ef80b9698 Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.4-rc1 with commit 26534ef335e92b028eb58e44d98d46a0e26af0ec Issue introduced in 7.2.8 with commit c99ea7855124ca1428a1e59c2b4590aaef34eacf 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-99279 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 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/1767a5e45dbf6a3b12105196dda4fb0ef80b9698 https://git.kernel.org/stable/c/26534ef335e92b028eb58e44d98d46a0e26af0ec