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=1795099179; b=LG+CI9siuqzsWA++GQQTyEnbxj4yA505rlgeo4njyy01Pn81St/QqHcwvaDrfUlw438b GnnHaFDkenxujGFFSL3cwreYT8a9m+smYNih3sVVh43R9AJPAEJtBLe+AppEZmIvEoH6F CdOWMw6XIk2RNOEGs9+9I/HfPWU7ADsKPk+KXdvXqXwOTN6NPlW0B+27mbd4VhBknRr0Y nZF9vBS6qVMMZ/TFQXUGl7xfFm/fzrT63FqkKHycvLp4YSWW9uo/mLNrEdmdPjWVe7sMB wK9RaU2dAM3i7WFJFJTCi0Yg4RIAiWlDKMHTobn8NjawMVpYswFErYHz499eiC3zPPA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099179; 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=uAo1Cp0Xco0ekvz9Xym4t6ltSLROvR3N8IN9BS/c5s0=; b=i7JK+iaNtlDbVfP0QFCtDr7t95RRqHuScElHKQrGTeFskcGLQJzUlDtkfXpVTYhS5gzF Dtmnw5jdicGcIhZSyANkGhLMb0sZcOLCbeTJ4qMzE5zHAeS8qyIebBpD7AJH7J4quqVJM ju4ArA9W5Zzy9Njqj6V+4bY/mzNwYtuIXSKUXkhwbQoG390eVBtePy6NeFV0TFHPiGtQb N/dDAhYaUbDeIvbELFFWm25C9FkuabSjGuEjaLA2IkE0B8ZAMEOJQ6daJIT4n64Rd8PgP UmwCUnYawt2OT6VidQ33qh3BKOvEf/ro6m+GV2mxaiWUe/l61Q2pVfetsk2sLuM4eMQ== 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=Fosj778B; 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 E5AB5606A320 for ; Thu, 19 Nov 2026 14:39:38 +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=Fosj778B Received: by smtp.kernel.org (Postfix) with ESMTPSA id 869E41F000C4; Thu, 19 Nov 2026 14:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099178; bh=uAo1Cp0Xco0ekvz9Xym4t6ltSLROvR3N8IN9BS/c5s0=; h=From:To:Cc:Subject:Date:Reply-To; b=Fosj778BpCY+qQtzbPx7d77+hBG3XD6Tn/OmJdU4RBLCmVPVP/04PcJ7hXrC5q8V0 +keC1WDGICfCJoRKQofBFIGe8ABU/akps1UYQrrfCEuGxWUTw4cS1lCzhZRl2F2MZs MnHNdtAC/yop3D9mWQD7EjFB9x5C/J6AjkgvPa24= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99381: smb: client: reject short or out-of-range FIND response parameters Date: Thu, 19 Nov 2026 15:24:39 +0100 Message-ID: <2026111953-CVE-2026-99381-58ba@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=3925; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7xEdNednsCEoOgdqJo1nTNOoP7vaKZNpsZlLOh7gbSM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2SpnWdtJvFEo3XTzLofhdDeDVM/v578+XbGjxE3nm /qM8kW9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRb3YMczg0ns/pWTdzhgrL rHuelY9t9vW6sjPMZquVzrn23aRks5v51zsSfd89uxo3AgA= 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 short or out-of-range FIND response parameters CIFSFindFirst() and CIFSFindNext() read the SearchHandle, SearchCount, EndofSearch and LastNameOffset of a TRANS2_FIND_FIRST2 or TRANS2_FIND_NEXT2 response at ParameterOffset. validate_t2() bounds the offset at 1024 and ParameterCount below 512, and nothing compares them with the number of bytes SendReceive() copied into the buffer or with the size of the response parameters. 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 with a ParameterOffset past its end has the search handle, the entry count, the end-of-search flag and the last-entry offset read out of the request that was just sent, or out of whatever the allocation held before, and a ParameterCount smaller than the parameters has them read past the end of the parameter block. The reads stay inside the allocation, but what they return is not part of the response, and CIFSFindFirst() then hands back a search handle the server never sent. That handle is sent back to the server in the next FIND_NEXT2 or FIND_CLOSE2, so two bytes of the buffer leak at an offset the server picks. SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Reject a response whose parameter area is smaller than the response parameters or extends past the received length, returning smb_EIO2() with a new smb_eio_traces value for each of the two responses, like the other response checks this file gained since v6.19. Backports to trees before v6.19 need smb_EIO2() replaced with -EINVAL and the trace.h hunk dropped. A conforming server is not affected. The parameter block of a transaction response is part of the SMB, so ParameterOffset + ParameterCount cannot exceed the smbCalcSize() bytes that SendReceive() copies, and the response parameters are 10 bytes for FIND_FIRST2 and 8 bytes for FIND_NEXT2, which is what T2_FFIRST_RSP_PARMS and T2_FNEXT_RSP_PARMS hold. This patch depends on "smb: client: reject FIND data areas that run past the received response", whose declarations it extends. The Linux kernel CVE team has assigned CVE-2026-99381 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3.2 with commit 1374082f0897c95610190dfacce463904ec11ea2 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.4-rc1 with commit 531aa4239b0d80d7146b102b98f7aa7da989ccdd 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-99381 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 fs/smb/client/trace.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/1374082f0897c95610190dfacce463904ec11ea2 https://git.kernel.org/stable/c/531aa4239b0d80d7146b102b98f7aa7da989ccdd