Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DAB116F0EB for ; Fri, 12 Jul 2024 12:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787903; cv=none; b=sUVT3UguEaa4sx0cd6gv3Ke0mFPTDS0SlTo59TRx6RGwWgDn22nzmflZYkLlQT5KbloRP5H3bXDCIk+EUHyyzE93t5uhW+YcFA2uNTRf6xhUiepSaWfMPybJurgxXD/NtS6PCDwVc5fKTWjmeE2Sx9v1rcSlHheQ9r27jFLq2wg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787903; c=relaxed/simple; bh=U853JQi91JCAsGQNxFm54HqurIwRnwj+P2oLH6qygPE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sAo+UG0YiaiOfh5iRqP7WCaBQuEvT/p0c3yM05wPPGoPtmMq251HaUhhzmI3TvXvDRyWAtYRKpKX5y5J/dEg8WAm5IGbjo7fLXZKsy3cV0P1DplNU7Jowa2JUaZnyY72SxDtbD9/jdGAZeITqRfTe/S1zA5qslnyWfugXbEGG0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oitGyQpy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oitGyQpy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E18AC4AF0B; Fri, 12 Jul 2024 12:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787903; bh=U853JQi91JCAsGQNxFm54HqurIwRnwj+P2oLH6qygPE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oitGyQpymOqrSLCtuo94dS4qbqIb88LFqT7qthfGWc4BFoZGB8mM1c/PghOE74PUP jRu+HJjwzzbTvuF+4ooKPcc7uhn7Ee4+NOuqPRPTGHoGLY70/1yGL44ir083gimBaq G15c3Z/ySbHriLujhzwrb1ZmRQ/+2i73wKKgwgcY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40992: RDMA/rxe: Fix responder length checking for UD request packets Date: Fri, 12 Jul 2024 14:37:56 +0200 Message-ID: <2024071250-CVE-2024-40992-6554@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2485; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U853JQi91JCAsGQNxFm54HqurIwRnwj+P2oLH6qygPE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlecVMX9mum1xft2eH56FOcePWK+58ZGv9s8HwYzAB /5XfaV2dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEYvUYFhwWV3jDJvzxd3+W qu5+wTC2LzOsShjmOxyztq9s2qj0+Lf33qUMOw+Zdx5eAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: Fix responder length checking for UD request packets According to the IBA specification: If a UD request packet is detected with an invalid length, the request shall be an invalid request and it shall be silently dropped by the responder. The responder then waits for a new request packet. commit 689c5421bfe0 ("RDMA/rxe: Fix incorrect responder length checking") defers responder length check for UD QPs in function `copy_data`. But it introduces a regression issue for UD QPs. When the packet size is too large to fit in the receive buffer. `copy_data` will return error code -EINVAL. Then `send_data_in` will return RESPST_ERR_MALFORMED_WQE. UD QP will transfer into ERROR state. The Linux kernel CVE team has assigned CVE-2024-40992 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 689c5421bfe0 and fixed in 6.6.36 with commit 163868ec1f6c Issue introduced in 6.2 with commit 689c5421bfe0 and fixed in 6.9.7 with commit 943c94f41dfe Issue introduced in 6.2 with commit 689c5421bfe0 and fixed in 6.10-rc5 with commit f67ac0061c76 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-2024-40992 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: drivers/infiniband/sw/rxe/rxe_resp.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/163868ec1f6c610d16da9e458fe1dd7d5de97341 https://git.kernel.org/stable/c/943c94f41dfe36536dc9aaa12c9efdf548ceb996 https://git.kernel.org/stable/c/f67ac0061c7614c1548963d3ef1ee1606efd8636