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=1795100893; b=uz0IQN453p+mwI75ibMAlNoaHbPzOmS/o6fS8fG3E5E2Sjj+93/NdtFCBs8u2G7+AAP0 1Igh2WA+EwAWlcvWLQqiiDvRDvfcsxQRDRkt8GWrUKZqut98wxSQbebIGvWinhQmvqZqg vrFJaGnOhJXtD5c1Lq7e5HOKyy4gEDq3RqIJ6CklKVYB7jyyOxYLMXHps8EeVfvLFcs/B G+IFPVYzZGvvW8FdcvzZsCpa7iCph8f8n6Oh4mv49ApMqDFWU1t+7b4fhllx7qLnYEFEK D5Ky7kAeRddFwPhjE4EwmglE4mPc/wr38sKzHcmoZtg12IxoHZwtCid23Y3WwFHGY2A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100893; 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=SDyXLB6aDlE65cVFqj/xFgZZogs17GpLXTu3VAUZ0Z8=; b=XXG9otM3usywWbNs7o/v4DrLkDt6Yga05/SDr623rZtYJ9af/+dRomueA5vLAVAw+EFL 4jG635rq08H0S78CiG3IppU2/Urr+gZy8aNw1jK79WJF2uEN2ib36Ltp2BEDNaIjcxYqi 6IY/zjGVLiIpHbR7P8hMfdLU9g9UhPYdsNgJX2ST5pQoOJXo3Ut3NJTuU/QUt4HbPyIza GH0iq7e/WMydgM/6wCsRxP3RRKNttc/uY0gzqhOy/+NnArvuLjGoxc2b1Ogzc/BK4uVSr WAdHwH5ImeD95peqfGO7/1YS8IForFqeZfdj93lqDqHb6Ua7indK9J9t/CHnVCQ6RgA== 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="KWf6/pp1"; 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 27DFC606A339 for ; Thu, 19 Nov 2026 15:08:13 +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=KWf6/pp1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ECE21F000C5; Thu, 19 Nov 2026 15:08:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100893; bh=SDyXLB6aDlE65cVFqj/xFgZZogs17GpLXTu3VAUZ0Z8=; h=From:To:Cc:Subject:Date:Reply-To; b=KWf6/pp1TUnt/dWf19y1bU+soohSL3OZhwebivBCyL3Ae7YIzqFKdep3Ag3XxWHbY PqcnTyFDC9vFGBRjk9wB1iytZx3psmh7qIvgz0trjq5yWOT9LcVOilaTOaZG0pagMs QDN7ok5qxfAnpImpyP3BWZv6bOLYtd2YUCfIkBjk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99533: ksmbd: validate AppInstanceId takeover target Date: Thu, 19 Nov 2026 15:27:11 +0100 Message-ID: <2026111922-CVE-2026-99533-28b2@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=3801; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5fGzAN8mpREXUTdftDo06W8pZscv3eDETfsEgcHdFC0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2abNTC35Hrz96vKl2Y3Bv14f2xcR7JdxMHTHS+6bt /4+dd5woyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm0qLEMD+xfslhFdUvxwKb dT6YsHk+r+/VPcIwP8Z6u8GGraGs9/v+nfbOD3e1cjp3AQA= 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: validate AppInstanceId takeover target AppInstanceId lookup currently selects the first open with the matching identifier. CREATE for an unrelated share or path can therefore force-close another session's open before authorization of the new target. Matching only the base path also conflates alternate data streams with the unnamed stream. MS-SMB2 requires the old open to match the share and path, belong to a different ClientGuid, and be closed only when the requester has GENERIC_READ access. Search all opens with the ID and match share, resolved path, stream, and the current connection's client GUID. Retain a share configuration reference in ksmbd_file and reuse its name instead of allocating a name for every open. This keeps matching safe during tree connection teardown and preserves name-based matching across configuration updates. Refresh the share reference on durable reconnect and restore the old reference if reopening fails. Serialize connection and share comparisons with durable disconnect/reconnect, and recheck the target before closing it. Keep the original ClientGuid for durable replay and lease checks. Check AppInstanceVersion before querying access, even when GENERIC_READ is absent, and before disconnected delete-on-close cleanup. Rejected CREATE must leave other durable opens untouched. Calculate maximal access on the matched open's referenced path so a rename cannot substitute another file's authorization. Require read access with the effective VFS credentials as well as the NT DACL before takeover. Access denial only skips takeover and leaves CREATE to its normal access checks. Restore filesystem credentials before returning a takeover error. Handle takeover before checking FILE_CREATE collisions, and re-resolve the path after closing the old open. This lets delete-on-close remove the old file before a new one is created. Include SYNCHRONIZE in the baseline maximal-access mask so read-only files report GENERIC_READ correctly. The Linux kernel CVE team has assigned CVE-2026-99533 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit 16c30649709d949b439273e61769028b1e706327 and fixed in 7.3.2 with commit 896ecf714703f6801af43b6d3db4b824d8a12286 Issue introduced in 7.2 with commit 16c30649709d949b439273e61769028b1e706327 and fixed in 7.4-rc1 with commit e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1 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-99533 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/smb2pdu.c fs/smb/server/vfs.c fs/smb/server/vfs_cache.c fs/smb/server/vfs_cache.h 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/896ecf714703f6801af43b6d3db4b824d8a12286 https://git.kernel.org/stable/c/e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1