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=1795099171; b=BiNhydH/a022B0kyOwK11O5YrxNsnwEn0ialmeknUzI/MGy0C0YpsPvFJbsfoq/C9O+c d/KYKMpvv4vUL33+4+oHv7V/S9Lw4lY5W/1RdEr8lN0x5vA8Bu9ZMSy5QGQpgHGySNcsF MbAiBmwWaDyNnLN1bOskdics9tjG8R1TTT3gMusGsAE7X0llReqD24FqufcZ6CjlPJIJd 0ajEldp6OsE4Gxe2eUDiuZfMCfx9h1KIaCSSbAyTYFXr71QZV1oO6ICYW9FxQL6+Xzbqs Fx0mPhYIy1GwlrLkkyDGty5Qy539C//UhVvFmhY3AMKXe3L4sTW5J/vVnzoT0fevRzA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099171; 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=R+V7OD7ile8K/l2bqEiOu/LjWSof2yqx0rvMVk2Ep5c=; b=IJRFgxAxJskYtBGAzu0nUb+tltG2Wc1VGax0iZoLi07jm+bxgvRmyckO+/ivDp12N7QR haAiLs44opfXa9um5g89FMFa1Oz7kQNuCWFY8RoySzJAQCRaAk1rppmki78c+URfmCkyv WoNpGE/eztf925pbQljHVDMrxlHV1ha10lKMJYCwKgd98aa//gQHkltlulc3oAX9sjS8B HyommezMPBxSDmT0B2+qv6ix8QxGzkmp7ObLOaxeCWpQRt5YaJPig7vDUNznzQINQxasc FJAELoLwUwo9WH/vciaDzH0uzi3WUu1Uao8oOcpowP4H3RDSjN66cXdknhOXhcifrKw== 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=C3nOO4Ml; 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 0B81A606A320 for ; Thu, 19 Nov 2026 14:39:31 +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=C3nOO4Ml Received: by smtp.kernel.org (Postfix) with ESMTPSA id E81C81F000C6; Thu, 19 Nov 2026 14:39:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099170; bh=R+V7OD7ile8K/l2bqEiOu/LjWSof2yqx0rvMVk2Ep5c=; h=From:To:Cc:Subject:Date:Reply-To; b=C3nOO4MlepvjOjfeL2ScqU3a6ICm+5LSCPRlU/PH+caEUp9UJkqUXbzqHJ5U4vmRu bQm6p36abpogetSFq+tVRA7cL2QXE4L1qQBgmGq3Bnq/6pT8oKVn8pvnZh9sP4MZe2 YBLWjM2a5cIccd0FVPSNwaH9jQtDM6rHReKQ/IzA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99380: smb: client: validate NT transaction response layout and offsets Date: Thu, 19 Nov 2026 15:24:38 +0100 Message-ID: <2026111953-CVE-2026-99380-438a@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=2868; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZeVvErCOmkA5FszkeBmk3BlIutpYQKQsDg20Yiau15Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2SpF0j+9ez/jafD+K2pfDio4XX7MEHo1Ira1fVHtP Ob4gLbAjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI9jmGeSq2Eqc2rOK4u3Tq pQZ/qXMffmbfEGKYZ71IY9nxF5e7TX0rlTtj9nT5quvWAgA= 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: client: validate NT transaction response layout and offsets validate_ntransact() assumes that the response uses the fixed 18-word NT transaction layout. A different WordCount makes get_bcc() locate the byte count at a different offset from pSMBr->ByteCount, allowing the subsequent bounds checks to use inconsistent response boundaries. The function also turns the 32-bit ParameterOffset and DataOffset fields into pointers before checking their bounds. On a 32-bit client, a large offset can wrap the pointer below end_of_smb and pass the one-sided pointer comparison. The caller then dereferences the parameter pointer or copies from the data pointer. Require the expected WordCount before reading the byte count. Check each offset and count against the received SMB length as integers before forming either pointer. Use subtraction after validating the offset so that the range checks cannot overflow. The Linux kernel CVE team has assigned CVE-2026-99380 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.16 with commit 0a4b92c05ed02ad7abdd165823eaf4bbcb33ae5c and fixed in 6.18.61 with commit 520b48753e3c54172a078e7e4b82aec83ae2e08d Issue introduced in 2.6.16 with commit 0a4b92c05ed02ad7abdd165823eaf4bbcb33ae5c and fixed in 7.3.2 with commit d55c0c19b0d1f5c0101f9aa3b60534b6d6e11052 Issue introduced in 2.6.16 with commit 0a4b92c05ed02ad7abdd165823eaf4bbcb33ae5c and fixed in 7.4-rc1 with commit 83d0d5e0ca22233c75daf139ec0063b9d2ff1ac7 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-99380 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/client/cifssmb.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/520b48753e3c54172a078e7e4b82aec83ae2e08d https://git.kernel.org/stable/c/d55c0c19b0d1f5c0101f9aa3b60534b6d6e11052 https://git.kernel.org/stable/c/83d0d5e0ca22233c75daf139ec0063b9d2ff1ac7