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=1795100878; b=kGfq+iGTYmP8PWgj/Z8cat+tJkMQJxKEn2C5LoJGFskndVynt7cnQv1oec2YxK3RX8z4 7x8FJzlYiNmRYStmDpQCdzhit8Nx8FhXipmwVAS/v8anqdVBo2N9N3kQMGhYlEZh3VHLc liHJVYLtPR+Bqsu/ZnCxbW0VGgXerI7oMc9jZgttO+VCQCwepWq4ybo/E5xBRR14S0ADT eRJidfVSzsOmTasdjYTVAH5EOIyJhka/nN9Bnkz/Oak0ajQI8VEvn26T91dBGR/DloZMZ M65i4L29qlOHJ57ibbO4IVfcbiw6sXOqb2y1lmePaqwCeanZA8t8wO7NuqLjByXxxXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100878; 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=T3Cizf2dxwQjZQ7Ulz2rMCxoJ/pySn/l+8Q3OIE8OP4=; b=BsBF8sA7SXj0Zzm+miH/6pxuC8FVxafm73z0xu6WKiIb5F3Zqkt+LHHFp0n9RUbNfnyu ucmDhktkRsxm0Kv4XbyIyLThGxye7jbnN8IY7x1NgrdpfsAd3Jsuk7opLP247iUq2YDq5 FZ4WyHfzBdSbxUW6ZKv/FmfIH+aa3Zc9yRKaULQF/PcNwTesTEp49AxoomNiqb4iBdrBX 6HTs1N5sTPxTgMQWCaNwXQbHPhPQKb45SiIv0oNJg2z6cAJaGMZqfjfVefu1H6S22eg/d HylEVxS9+5ctJ46feC5IdksAr8n979pPRhNMZNj9hvwYWwwCJXhO/GGh0piIHO0UWAA== 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=QYhbVeME; 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 85A1E606A7CA for ; Thu, 19 Nov 2026 15:07:58 +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=QYhbVeME Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAC4D1F000C8; Thu, 19 Nov 2026 15:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100878; bh=T3Cizf2dxwQjZQ7Ulz2rMCxoJ/pySn/l+8Q3OIE8OP4=; h=From:To:Cc:Subject:Date:Reply-To; b=QYhbVeMEU72HWBnDlWl0ZNqNSQsVTv7vUAJX4Od2CoNEt3C25BZ26bZlD+SpnOx40 Y0nW9C9s+5AW07gfiBJZqd3/oBoAdKShgSwgVPb44OLPFUFDX9EMpjBByGs7udxlOd c3B5vk8pXyCnf+ktY/bUBcZtYfAdbn54zJffjH4k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99531: ksmbd: verify transform SessionId matches the decrypted header Date: Thu, 19 Nov 2026 15:27:09 +0100 Message-ID: <2026111922-CVE-2026-99531-263c@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=3659; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0d2yTguxHdzs6ICMH8R6fUEUVmYoB/GxH5mW80G7GdI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aaxH2Br2Gts+VjNVo7rmHTUzJfiKbNW+pY5TrZc8 2Fh/KmTHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARn5UM8xMnnWO98eTOFGnN 82vmbq9xWN618gvD/BrW7zyccnH7rjNKusgFRxWaBjDVAQA= 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: verify transform SessionId matches the decrypted header When an encrypted request comes in, the decryption key is picked by the SessionId in the transform header, but the request is then authorized under whatever session the decrypted inner header names. Nothing ever compares the two, so on a connection with more than one session a client can get a request decrypted with one session's key and run it as another session. Encrypted requests are exempt from signing too, so a valid AEAD tag is the only proof of session identity, and it is checked against the wrong session. MS-SMB2 says the server must check that the transform SessionId matches the one in the decrypted SMB2 header and treat a mismatch as a protocol error. Add that check in __handle_ksmbd_work() after decryption, before dispatching: the message has to be at least one fixed SMB2 header, the first operation must not set SMB2_FLAGS_RELATED_OPERATIONS and its SessionId must match the transform SessionId, and every following non-related operation in a compound chain must carry the same SessionId. NextCommand offsets must be 8-byte aligned and stay inside the message; the bounds check is done by subtraction so it cannot wrap. When the decrypted payload is a compression transform, the existing decompression step runs first and the decompressed SMB2 message is checked instead, since a compression transform header carries no SessionId. The Linux kernel CVE team has assigned CVE-2026-99531 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.117 with commit b150049dffd0865fb6e60ce843299216687f02ad Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.61 with commit 7f30b886c5a1a2b3d9342ea82d0699eff812a472 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.3.2 with commit 8c5f62dd9a0b61e0082d419796e0743e820bd002 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.4-rc1 with commit 798214e6fafcdcc29f5ba2661a473232b5e70cfb 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-99531 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/server.c fs/smb/server/smb2pdu.c fs/smb/server/smb2pdu.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/b150049dffd0865fb6e60ce843299216687f02ad https://git.kernel.org/stable/c/7f30b886c5a1a2b3d9342ea82d0699eff812a472 https://git.kernel.org/stable/c/8c5f62dd9a0b61e0082d419796e0743e820bd002 https://git.kernel.org/stable/c/798214e6fafcdcc29f5ba2661a473232b5e70cfb