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=1795099187; b=zZrD8457t0DYxpH56DWHD3xkwl3ZJ3GPWPCZBi/goTVAdflZUUQZrtlQv6g87GaPW3dk V2v+rsO5VUc4GY4L49BFYWlLLPPSsQ56JjzQmBAgeAcK4c0glJfP1L0SwlAiQ3IzU6g1M 12UjGPbUXyXTqAHxPd9+47CnGd96gwXRsdYQeIYEsNYRodsJXnadHKhpZ+oCQ8JnSNZ7N 4By2l8yo/ToXc03EqGip1YAP1OisySYQQY92mnjPLpFvwrPKiYPWOAnCAM0I6pgcuRUPi KwjncbQ6Qs22c3YV4Uv/+8aBGMneNLNvYm+cP4r340LkrUg5LE66dOT43MyOdM1csKw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099187; 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=F8+0kmpXhyntfu8oDEF5AvJf2AjMXVxHvZCFF30K22E=; b=hxAwNaoe7A60Dkv0uaQi8/PdYdANUZ3y2Rhw2qdXQgWq9i5REdIZ4lvDsEyiP0OyLLdI xtmO7u7vvgXpk7iMYvOOiwG7pb4lbA4VuLpEhnbfsCmWEMN3afth0lq/VZ0+CbRHgqFBG 28aAPEslkVYNeQI9U1stxi97iBmxXBdwr5keQIOW2iXTnl9TbueYnvL/GxsdZZGePYxDP hoGbYOhlG1/IUtDRLvSehbeiJ4OgRa7KvcDqSxy2bd7t2Egp4ydH+vdvWKd94qSwJCDlF 4h5Abuy5NC6ivoxhBraAeLXuwFYh6AZDLVGDpXcA/hEHNz5CtKCx/5Ocp6ne2tGQSYw== 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=TFOb9r7V; 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 AE6C2606A320 for ; Thu, 19 Nov 2026 14:39:47 +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=TFOb9r7V Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7D531F000C5; Thu, 19 Nov 2026 14:39:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099187; bh=F8+0kmpXhyntfu8oDEF5AvJf2AjMXVxHvZCFF30K22E=; h=From:To:Cc:Subject:Date:Reply-To; b=TFOb9r7VnRq8qTN0zG7xNzmaIuK/FoRMpR4dn73myg4cTwkXVI6ELhTWseTYtH1yL DRKkGHJ1Kf2EfbfFnlhjLih91rAGLGY9nFiQYpfmixiShpcMDjX3hiqaQE3q8SIf9C uTCxcUhLsxQqwKvfRRIFeDtCX/xBQXqcsde36pJs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99382: smb: client: reject FIND data areas that run past the received response Date: Thu, 19 Nov 2026 15:24:40 +0100 Message-ID: <2026111953-CVE-2026-99382-929a@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=4330; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jtYiYuxxVdWqCfXBIWsPDjA+cAiB4e6/ayAZjRjnsNE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aq0zmpsn3dmPcv+V8VqMwp4TcWumD16qhu+NlFUd E9PgDtDRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE04thnuVEhbU3LkfPOBD/ 90Tlft5Ko07xWoZ52tzn3avsWJnmH425WZJdHa5gf0YDAA== 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: reject FIND data areas that run past the received response CIFSFindFirst() and CIFSFindNext() take the directory entries of a TRANS2_FIND_FIRST2 or TRANS2_FIND_NEXT2 response from DataOffset for DataCount bytes. validate_t2() bounds DataOffset at 1024 and ParameterCount + DataCount by the byte count, and nothing compares DataOffset + DataCount with the number of bytes SendReceive() copied into the buffer. smb_init() places the request and the response in the same cifs_request allocation and cifs_buf_get() clears only the start of it, so a short response whose data area extends past its end has srch_entries_start point at bytes of the request that was just sent, or at whatever the allocation held before, and those bytes are parsed as directory entries. cifs_readdir() and find_cifs_entry() walk the entries with nxt_dir_entry(), which checks every entry but the first of a response against the end of the SMB; cifs_query_path_info() and cifs_backup_query_path_info() read the first entry with no check at all. Those reads stay inside the allocation, but what they return is not part of the response. The last entry, which LastNameOffset locates relative to the data area, is bounded against the received response by an earlier patch of this series, as is every entry that cifs_fill_dirent() parses; the walk itself and the two query functions are not. SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Reject a response whose data area extends past the received length, with the -EINVAL that validate_t2() returns for the other malformed transaction responses. cifs_query_path_info() and cifs_backup_query_path_info() still read a whole entry from a data area that may be smaller than one; that is not changed here. A conforming server is not affected. The data block of a transaction response is part of the SMB, so DataOffset + DataCount cannot exceed the smbCalcSize() bytes that SendReceive() copies; coalesce_t2() appends each secondary response to the data area and adds its length to both DataCount and the byte count, which keeps that relation. The Linux kernel CVE team has assigned CVE-2026-99382 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.118 with commit dbc8b87b91b1838beb3e7135a592bbbbd7741404 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.64 with commit 9763e65a0a4588217cee2c05a00f1023820519b9 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3.2 with commit 4dfc78e53f419834d99e626fc27083799e2ea4c1 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.4-rc1 with commit 29bd6773187cb5c1bbbdf90d677c6add7d58af26 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-99382 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/dbc8b87b91b1838beb3e7135a592bbbbd7741404 https://git.kernel.org/stable/c/9763e65a0a4588217cee2c05a00f1023820519b9 https://git.kernel.org/stable/c/4dfc78e53f419834d99e626fc27083799e2ea4c1 https://git.kernel.org/stable/c/29bd6773187cb5c1bbbdf90d677c6add7d58af26