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=1794065629; b=pcJoZfD+jD1OFAbd81yECKLzfxkW1v+JdsdUO3U6C+YP6zk7PlZH35/AkPaWwvuWRo34 LYRk2tNde+sZzqv85O8sHgp1EgilUS+vIj8h0RTm2dBHe/QE+QiQ2dcdSeUdbe/DgH4Uz LriI04UUZ1fgg/a+T4jo2pgEunmd/cFQ4LSPvwvD9+uKDroyG3IlFElMXDoN5gd0UAVoL zlUTH8rOTQ09l+vh/u94sOM/vosNhuLWDwraYEG3bHOaLUvWv5jNm8gklfeDAMNFqrZPq BZJcg/1zSgUffvi/PA09mqpIjFsCW1IIBl37S4BQUXZ2ZhcxbZ9tEoNWPlaEIlu1cUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794065629; 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=DtHYcvtX9QZKqO8dxyYcXZxG8qkxoPgiP5pt1+Zvyvc=; b=W/WQBMuSddayAG45WTki5E6UWqS2nvZgB5YuRs4mJ5nHvT4esb0kbdCnziWXwT4Xy224 1Fb2WHX+16aCbUkcq9vKJfhPoOxHIv7MXN9WeYK19QhNPao3MqkEY/pv9B2LdvHhV3PPh ONuEfjdBY1kEtaQczAAZ6W2SMDg1m0r+sRMWoG6rQVpjoRhJBAejblFnL0MJn4GDMw1AQ sicP9DiuN0TEHH7Y2MHC8HqRWr43PCQFR6ulABCZg7nOQg1CsZC6DZvO+TynwUpn0IolH NzjXdRhJOECX5z8J1jopTA1809+3RZm8I3xr9TxZOtyHCGhiItX17A260EOYnWoKzpg== 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="IYlF/xBQ"; 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 D6957606A337 for ; Sat, 7 Nov 2026 15:33:48 +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=IYlF/xBQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83C421F008A1; Sat, 7 Nov 2026 15:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794065628; bh=DtHYcvtX9QZKqO8dxyYcXZxG8qkxoPgiP5pt1+Zvyvc=; h=From:To:Cc:Subject:Date:Reply-To; b=IYlF/xBQY8b/pmqP9CyS3ecThzEs9UQ9Cn/Ne48JUncuHfG8QQD/zZSnAYTBMBDFe UIhxY4bHLWxxIFa3JJItbOjae5ORv83YvrFFRL3+kpDXAjB1z/uIq4olmzyry+5Auu Pqz+6zal0KMN1+dwDyPt3X0QMI9z8gfPMsa1lTu8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99277: ksmbd: hold a connection reference for each session channel Date: Sat, 7 Nov 2026 09:08:57 -0500 Message-ID: <2026110755-CVE-2026-99277-d299@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=2680; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZKbi0ctj1GK0A2zIoeqI/2IcYcPOaK/lqQUyKvkrTIs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnvDb7fl6tmT1LYsPEI7/7zixUjfisf3vBY407lAyf+m fEr2Zu3dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEznIwLLgeNfFUx7OPV6Ky Fk6e9PMk573XXpsY5ldLHgy66nfZmDNQ6UODXXW4UkHBIwA= 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: hold a connection reference for each session channel ksmbd_session_unregister() removes a session from the global and per- connection tables before dropping the table reference. A concurrent reference holder can keep the session and its channel list alive after those removals. Connection cleanup can no longer find the unpublished session to remove its channels. Since a channel only stores a raw conn pointer, the connection can be freed while another session reference holder is still accessing it, for example during SMB3.1.1 binding or a procfs read. Take a connection reference when registering a channel and release it on insertion failure, channel removal, or final session destruction. Keep the channels and signing keys until the session is destroyed so a response can still be signed after the session has been unregistered. The Linux kernel CVE team has assigned CVE-2026-99277 to this issue. Affected and fixed versions =========================== Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.3.2 with commit 4b333aed69cfc2c8687b86b6a4364a0dffc16dd8 Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.4-rc1 with commit add8d7fb04efe564193df73581889c62fc0016f1 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-99277 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 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/4b333aed69cfc2c8687b86b6a4364a0dffc16dd8 https://git.kernel.org/stable/c/add8d7fb04efe564193df73581889c62fc0016f1