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 A2DD926E6F6 for ; Sat, 4 Oct 2025 15:17:48 +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=1759591068; cv=none; b=oHFcMYH6sIKLnYkahnkQV8Js4XpGNFOoI9nXCOuzP9Gf2pE3LVz7kuuKc5wK5jbyHAJPQyfngsk4VLlZ0BidxenDB65bP9DrFZEmTU8eXn2InupeXa6ulYpYfK0ACf6ERaCjLkrWjUvQKK34lM21/8J6poDsqEr5Y/eG1ceYYLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591068; c=relaxed/simple; bh=jAzlZlGrRyRuQY1iSu+yHIW5nONpSgPH7wHFMqCAvyo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s7iccWndpNWYdJlXBflclQVFxFo/UqHT75S+Qm4XqjAlYrPD1iO1Q/iGDfzhvcGjlEw/wMNkiychjhJtEVeHzKOXM9OZp26JULfioyduO2WaFZea8CE9BHwIP9RTrvofcB5R6nyUaWuihmRoiY0me14AXiBKTytrUZzHL/8Ywto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DqTRWLNO; 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="DqTRWLNO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E5C6C4CEF1; Sat, 4 Oct 2025 15:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591068; bh=jAzlZlGrRyRuQY1iSu+yHIW5nONpSgPH7wHFMqCAvyo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DqTRWLNOP7a/f2rC9eTlpXgLHCfZegLfoPVa0YUxFa9CRoAaI6ZdzxU3tMqCB3sQO Ol5BBH0iWqKhXk2Jsg1Pr+iec3zfEe7CUemoX+N59lYU22/CSnpkqAucqASYfrJS4F 101I1qegOQp3A87Gv/cvu8R0xBN2wXasYnU0IzCw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53539: RDMA/rxe: Fix incomplete state save in rxe_requester Date: Sat, 4 Oct 2025 17:16:53 +0200 Message-ID: <2025100443-CVE-2023-53539-4411@gregkh> X-Mailer: git-send-email 2.51.0 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=2993; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OELAz4yH4hwxm2zY2b5WHBVMaATJ5k0dSX3ZW5vqpAo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPraLnxd9X9dhfq1aasp5jsc/TB9NzPpgU2db/mptv8 HZtQffPjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIUwPDguUn3NUVJ1hrS+dN nKzqeKT5jYa/DsP82OYlpqnRCyx6HDJ2+i0PTeCfn/EAAA== 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: RDMA/rxe: Fix incomplete state save in rxe_requester If a send packet is dropped by the IP layer in rxe_requester() the call to rxe_xmit_packet() can fail with err == -EAGAIN. To recover, the state of the wqe is restored to the state before the packet was sent so it can be resent. However, the routines that save and restore the state miss a significnt part of the variable state in the wqe, the dma struct which is used to process through the sge table. And, the state is not saved before the packet is built which modifies the dma struct. Under heavy stress testing with many QPs on a fast node sending large messages to a slow node dropped packets are observed and the resent packets are corrupted because the dma struct was not restored. This patch fixes this behavior and allows the test cases to succeed. The Linux kernel CVE team has assigned CVE-2023-53539 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 3050b99850247695cb07a5c15265afcc08bcf400 and fixed in 6.1.53 with commit 70518f3aaf5a059b691867d7d2d46b999319656a Issue introduced in 4.8 with commit 3050b99850247695cb07a5c15265afcc08bcf400 and fixed in 6.4.16 with commit 2f2a6422287fe29f9343247d77b645100ece0652 Issue introduced in 4.8 with commit 3050b99850247695cb07a5c15265afcc08bcf400 and fixed in 6.5.3 with commit 255c0e60e1d16874fc151358d94bc8df661600dd Issue introduced in 4.8 with commit 3050b99850247695cb07a5c15265afcc08bcf400 and fixed in 6.6 with commit 5d122db2ff80cd2aed4dcd630befb56b51ddf947 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-2023-53539 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_req.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/70518f3aaf5a059b691867d7d2d46b999319656a https://git.kernel.org/stable/c/2f2a6422287fe29f9343247d77b645100ece0652 https://git.kernel.org/stable/c/255c0e60e1d16874fc151358d94bc8df661600dd https://git.kernel.org/stable/c/5d122db2ff80cd2aed4dcd630befb56b51ddf947