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=1795154580; b=N+AtRVXd+gV8xhO6zUzDCsB9K9Uw2pI2NPSMHm8Xwizo12KIJ8ZTA6izuxnQZj/6RQ/O 93H50S80TKCBLn2ip4MhiEGutQqbReJ3h4Z0mKojv24Z1R1OwnBGmA2jMXDrAmxBlQ6Z3 bhej/+1Urv9RxFAU5TOcTamnRRAppjySCveec8qempK4daxz7N6Zp35NIE1AshVV/+BV4 8AoTzVCx5+pHj9hw9++iIGQRkKafgO4oXiWUef3msPi0odfG6ho8zRpCZYFGBg+ds41jQ p1jWKzJ3PjVkgOw0s5aMfgR2hX2srBJOy5AW7adQa7rpSJ8WB5pD54bdkHgSRx2y+bw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154580; 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=Nt0xfYi+cS/Nsx4Lu+Nf2O8So2E/fhYGXOkFnDkgo3U=; b=mCXN0mBLgwGWD2eX5UUmhEuQKfEEc4AoV+nbOwlHRriZy2ibJ9Ph8G8xrConnsGp++0f NyY4cmbCmu9wra9QxJ7tSqjrZ0o7MkjpGCooekmqXjZ1uEtVwlNkX2w/d7c2b29x1ZwhJ C7XT1eadS5CyjVcLYj+7tZZ1vXftzeBj/5QMOdZ0SRrdCYSX5WPyICtP2op2FYqT0pI05 wDla+cgadA1cF2Hj4vOkbq6MjJxaVC6+bqJubxVIvDg97OUYW/f/qlCJTscRep9CSO5cJ c1AHK2oDe23vw2XC+RKntCVq2ZUzbIZU9FXjO624kOYMWAvJNQFrAFuw9x5IDmRP9+w== 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=j2Pwdw4l; 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 98305606A337 for ; Fri, 20 Nov 2026 06:03:00 +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=j2Pwdw4l Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA0C71F000C6; Fri, 20 Nov 2026 06:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154580; bh=Nt0xfYi+cS/Nsx4Lu+Nf2O8So2E/fhYGXOkFnDkgo3U=; h=From:To:Cc:Subject:Date:Reply-To; b=j2Pwdw4lpxC1o6KgZAOj8kbPAHpYvXkz1MbL2jYz0qVe5NqtEgEB2A5TlhwpSPLCz 5Pn1BdLr0pE4GDhp1G1+R1P48Fr3P2kjorRMj0zqkW9S4o8dwM/Wxy9WZ/Q9WDw+am SMSQRDHvAcqpw6VvRy4nfu+VEP6/NDP0dvrpEz5A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99792: smb/server: prevent file publication after tree disconnect Date: Fri, 20 Nov 2026 06:52:58 +0100 Message-ID: <2026112036-CVE-2026-99792-f7e1@gregkh> X-Mailer: git-send-email 2.56.1 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=3676; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d+SGVaMSQTIVXm9vSVA9gWDtJZDLyH4lj5uMjQLq6xs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/769h+8XrK6+rHyfl8NpgVm5FyszoF3+uXuNPXXwtx oebKbq9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSdI5hrshDsdNJHS6n/DkP i9rePjjxRvr9WwwL1gccULg2h88iOvyWn9/8F3ksJpe3AQA= 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: smb/server: prevent file publication after tree disconnect TREE_DISCONNECT closes the tree's published file handles before marking and removing the tree connection. A concurrent CREATE that already holds a tree reference can therefore publish its file after the close pass. When CREATE drops its reference, the tree can be freed while the published file still points to it. Mark and remove the tree connection before closing its files, and serialize both new-open and durable-reconnect volatile ID publication with that state transition. An opener is then either published in time for the close pass or rejected after disconnect with STATUS_NETWORK_NAME_DELETED. Keep a tree reference while a file carries its tree pointer. This protects asynchronous users that can defer the file's final destruction past tree disconnect. The close pass can race the successful FP_NEW to FP_INITED transition. Take the opening request's file reference atomically with that transition. This keeps the file alive until request completion even if teardown removes the ID immediately. BUG: KASAN: slab-use-after-free in proc_show_files (fs/smb/server/vfs_cache.c:126) Read of size 4 at addr ff11000101540f80 by task poc/153 Call Trace: proc_show_files (fs/smb/server/vfs_cache.c:126) seq_read_iter (fs/seq_file.c:231) proc_reg_read_iter (fs/proc/inode.c:299) vfs_read (fs/read_write.c:574) ksys_read (fs/read_write.c:716) do_syscall_64 (arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Allocated by: ksmbd_tree_conn_connect (fs/smb/server/mgmt/tree_connect.c:35) smb2_tree_connect (fs/smb/server/smb2pdu.c:2819) handle_ksmbd_work (fs/smb/server/server.c:368) Freed by: kfree (mm/slub.c:6801) handle_ksmbd_work (fs/smb/server/server.c:332) The Linux kernel CVE team has assigned CVE-2026-99792 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit f44158485826c076335d6860d35872271a83791d and fixed in 7.3.5 with commit fc5ac6813830eaf5b850e89d57403da1e1c50432 Issue introduced in 5.15 with commit f44158485826c076335d6860d35872271a83791d and fixed in 7.4-rc1 with commit 2ff3730998b015b5b0a3f28330bee16c648dd114 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-99792 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/tree_connect.c fs/smb/server/mgmt/tree_connect.h fs/smb/server/smb2pdu.c fs/smb/server/vfs_cache.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/fc5ac6813830eaf5b850e89d57403da1e1c50432 https://git.kernel.org/stable/c/2ff3730998b015b5b0a3f28330bee16c648dd114