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=1794823189; b=QdlkJkvxBqoMCPvuJNjlMcimOPi02anTbi5ZG5pH6748uqlPOvJ/aiwKCZPpNpZN08oO eID1CObhRvjV6Iv7lrf+TKf2DwXsHkxEs/ZN5tp8FRoqmRiYxF2q87ppJSCxFF44x35Q2 m+upIZgxj9lGpW+uIxonQEAlSdNXuSoSLhAREdfWoJj/bBU6yJ7sXvClA7VhjQYcVy873 WdSRlBtnNc8c9FiyM1rRL/MUtnpzWX5Wv7vu5CX6WV/Sd69iAyLV3rji6ytuhj2EsAbnb RWJhkPl7OpqGHLugJB7aGJCMmrZPTQQqjL8tAuKGHei076t+ruqbFp37pYvOxH7/pVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794823189; 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=vk9RCXy/n/X6jS97UxpSXQziZSuPkVGkJiTaevz0Df0=; b=wTCxFbQA8L3nXlc1eEZ63yABwJ7lYV0MrKy9KLJum6ZIKuogqIkm7SKCbdRB5/SGt1k2 vTVSRhaatmqJPCuwHHkcfjPXR/5AAKFEqSo+eCi906F7mLDS57/WFEt+pSAYxLPRkQvek DLkWoGTDj50TN8yTFSAgeSNSxNRsv8vlNoY6hxSa+7rcWkeRqkL3wcZ6krthzbxOYwe7I 7kxk0w5CMNGTqvyFi0yqdUMlmykzZIRz494TggLG/pBnWv8qVXjuqTEqSv7aQlwQTHX5/ ortqtjrwhqAEJXp/wwA8VZUnG0a2YeoHnzsd/Mrxx9RvSqqPQgRUgZqpmD+EiJczu/Q== 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=H5QoGiI6; 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 67973606A329 for ; Mon, 16 Nov 2026 09:59:49 +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=H5QoGiI6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 736981F000C4; Mon, 16 Nov 2026 09:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794823189; bh=vk9RCXy/n/X6jS97UxpSXQziZSuPkVGkJiTaevz0Df0=; h=From:To:Cc:Subject:Date:Reply-To; b=H5QoGiI6ggOyyaOC0ZdGgUj4ABKyU5gMKdOlHqNy378xk9UB9XylvInX6vcioVsUf bpkJ3KE5kwAFZbpbtwDIrkfFk32xh7uIGJV2yEekX8Yd0tLaY88wPyh2XqrmLNfreh dLNyDR1ftz0ymn8ZpC3s2UhfBE6jiBQEXJyY/i/Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99289: ksmbd: fix app-instance non-durable supersede session UAF Date: Mon, 16 Nov 2026 10:59:38 +0100 Message-ID: <2026111637-CVE-2026-99289-b859@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=2934; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wa80muf1a1/Xr1af0A4n6RVRpnCQv9Rl+um4TTjpa10=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm/rnD6X+GeXLDvy1kTl6Mvdn86uqg/4daCiMr42Nwnb bc8YpxCO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi+bcZ5inNef1H6YnkdQ61 v0wMK2fGsrgYvWGY73vd2vDR9vmri1Z/LVq20ND/+1+1PgA= 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: fix app-instance non-durable supersede session UAF ksmbd_close_fd_app_instance_id() supersedes a prior open that has the same AppInstanceId. It reaches that open's session through opinfo->sess. This pointer is not refcounted. Session teardown detaches durable handles before it frees the session. It does not detach a non-durable open. That open still points at the session through opinfo->sess after the session is freed. Another session can supersede the open at the same time. The supersede then takes a write lock through the stale pointer, in the freed session's file table. BUG: KASAN: slab-use-after-free in _raw_write_lock+0x71/0xd0 Call Trace: _raw_write_lock+0x71/0xd0 ksmbd_close_fd_app_instance_id+0xd9/0x670 [ksmbd] smb2_open+0x3e10/0xd910 [ksmbd] Freed by task 212: ksmbd_session_destroy+0x38d/0x480 [ksmbd] Fix this by looking the session up by opinfo->session_id. The lookup returns a reference, as smb2_break_collect_channels() does. Recheck that opinfo->sess still points at it before using it. Do the lookup without m_lock held. destroy_previous_session() takes m_lock under the session table lock, and taking them in the other order here would deadlock. The Linux kernel CVE team has assigned CVE-2026-99289 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit 16c30649709d949b439273e61769028b1e706327 and fixed in 7.3.2 with commit a5b190b352b0ba85f4debe436f42950ced10fadb Issue introduced in 7.2 with commit 16c30649709d949b439273e61769028b1e706327 and fixed in 7.4-rc1 with commit f728cfee6929057087c303d07d7a6a7c61196b48 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-99289 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/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/a5b190b352b0ba85f4debe436f42950ced10fadb https://git.kernel.org/stable/c/f728cfee6929057087c303d07d7a6a7c61196b48