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=1794065628; b=E1CLh2HvtuuSM3Ph5tKKpEofITBNGPyV76XPh/WP48gzDg6EX3jr/67KJ0cONRRm8fjy WJ2s956DhHm2cRepvNiesxl0hQaHZJbKnQEKOaIIU25BWAxmcpr1X8DyXXYTBNPjOLN0i JNEYDMLToW4b+9DVP0SZfeZ7cFJU1V0qfSiHIUxZXQoH3dRBbYjUYW6XQgmrEobwoD6so aiy5nvKzXUTgyPFWm7cqWR6rRGWaWFsI2XLRjgm4+8SQu70gFucZxP5TF9fhjASwUlUhz ewZhbGTRxsO/hI9xSdDAMAQ7KuWBOPsK4NT7jwr7yrzJeqgl6xo2pbpL/H2jA4QzP0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794065628; 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=JjhJMEca1C/UfryLyhEqbdHl2NPVBrngs/Fw7J1YlYA=; b=i5kxKFLgNFEDPidx82awHGMem0Fgd/1Hk835X8v9SqJRBaXmv+xycUqPCs85A9XNdtFp 6GaiNJdOou/rFjArtxRUgGFapNz65k2MLS8BHjwFvxk/jiyuBJFwLBuLB0JQA+l2UaqHM eSR3fa8uZTAsihfWpOUU9l+k/rqHUiK9OGIPo59t9CrGSbqGXwXHc3btMJ2DFn+7+tCFG flk5I1H8JYIbdaIIi8vnx62G3D03epfjprsg15zejjywPp7MaciWkEfgw2pPcaZTLbcuM wg3A1dx08uDu/2c6FGH11A4dfXW536jwST4xUMTJkszUQqtn3iWMPte24lTCoa3H/Xg== 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=0B1FLRvX; 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 AA963606A339 for ; Sat, 7 Nov 2026 15:33:47 +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=0B1FLRvX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D10D1F0089F; Sat, 7 Nov 2026 15:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794065627; bh=JjhJMEca1C/UfryLyhEqbdHl2NPVBrngs/Fw7J1YlYA=; h=From:To:Cc:Subject:Date:Reply-To; b=0B1FLRvX2aWHHrxB9VuUmW7MeWGE7rOW+Bpxv9zJnKAtpX0q7ZXGxTKxhzJEyaiiN oEz4ckBWnC6xoNKM2Zn4py2b7olXSPghcP3hKm5hEL5bJY9jlsr/JYly+Jlnr1cy+J nRkQp4x8AaH+P6ZJrWFudyI6hhB9A6dKfJL18o8w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99276: ksmbd: defer connection scavenging while session locks are busy Date: Sat, 7 Nov 2026 09:08:56 -0500 Message-ID: <2026110754-CVE-2026-99276-1b8e@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=2750; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qn/Fsak+3XhnCaJfEUwYIek/S+dyiVjLXnAQEbhgDZ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnvDb5dyiyTXi17f7Z85uzYFK2/azq63/6Jqr2cJHkxp aX3zfXqjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIuzCGBd1MJ6Zyy3+VWVRV sqpUeY02xz8VCYY5fH3ntBy5ujk2fYjVY0x7/ySr614YAA== 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: defer connection scavenging while session locks are busy The expiration worker holds conn_list_lock for reading while checking for authenticated sessions. Without this change, the check can wait for conn->session_lock or sessions_table_lock. In destroy_previous_session(), the status updates after ksmbd_conn_wait_idle_sess() run with both session locks held for writing. Both the KSMBD_SESS_GOOD error path and the KSMBD_SESS_NEED_SETUP success path call ksmbd_all_conn_set_status(), which takes conn_list_lock for reading. A writer queued on conn_list_lock can block these new read acquisitions. The worker then waits for a session lock held by destroy_previous_session(), which waits behind the writer. The writer cannot proceed until the worker releases conn_list_lock. Try both session locks instead of waiting in the scavenging check. Keep the connection when either lock is busy and let the periodic worker retry later. The Linux kernel CVE team has assigned CVE-2026-99276 to this issue. Affected and fixed versions =========================== Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.3.2 with commit 4e4e8b38994a0b0fc23f00ca6698b469a41abe70 Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.4-rc1 with commit b4bae7af1154089be87c7475218264fcbfd16d10 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-99276 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/mgmt/user_session.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/4e4e8b38994a0b0fc23f00ca6698b469a41abe70 https://git.kernel.org/stable/c/b4bae7af1154089be87c7475218264fcbfd16d10