Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8F953377EC5 for ; Thu, 28 May 2026 09:37:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961063; cv=none; b=ZPLLrqYwZvYkQj8eFm7RVUncpjqG4EzOetmjJjXLFIKXlXqFFTCiybnm8pACs4t4khFEKSL1pcjBYHRfkk2nmszxpibkmSLZQc6THQ8VUrh9+s8uUF4BEvuR/dXvgF1togycc/4buyOPeIvGp7FRzakI6J2QtHUQwTPJzLCueOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961063; c=relaxed/simple; bh=4xpJF7Fdr4cyRUFq4BF6ioDdRIi/eNGtFvSvNK6ewUg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OmNKMTV28BmrQgKhXPk9fKpasH2ppHLW2BAz1pzxEzOC3xJqHXQtafU1QuJiekemlcUF/L61PKjSidgG+koOw3QPp5uUcSj7Z5bi1JPRBAGGC3WbAO4yT1yrlnW46Sfs81l8aXmVR15b/w9xjbk4x2WUgTMPla8XJawamy721Io= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xnYb2DiS; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xnYb2DiS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D8BC1F000E9; Thu, 28 May 2026 09:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961060; bh=qHJeyozDY7mxqHJag6707Zj52IyXCPSOq7GQ2FQARp0=; h=From:To:Cc:Subject:Date:Reply-To; b=xnYb2DiS6n4M0TVHPr/SqJSdFj93QXOsiUCbY4p3sMdS0bFCBe8XKj7fSrAo4O71w 6LHPd8KZJjQx9ePddhQmOXQsPtoL1l5gj39FuHH8oFG8S5Crrp6RKb4hR80dxJhuoZ 0bHYhd7+RhKglaPafvh37upLeuaaxJ3ZZtIZlGa8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46114: RDMA/rxe: Reject non-8-byte ATOMIC_WRITE payloads Date: Thu, 28 May 2026 11:36:19 +0200 Message-ID: <2026052813-CVE-2026-46114-2563@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=putHy8A3auuv0mlA2UGkkcqDKzaFsBMZHIGra14DZ8k=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPL02jkeXupuqSzXkltw9f36RbHqwf88evogGjv3HZ pjZX1nWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5UcuwYNtNC/XJ4j9rt/FH FXAaWszbObHtB8P8IOEbssJhHt0/O55mhxs1cti9cVgLAA== 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: Reject non-8-byte ATOMIC_WRITE payloads atomic_write_reply() at drivers/infiniband/sw/rxe/rxe_resp.c unconditionally dereferences 8 bytes at payload_addr(pkt): value = *(u64 *)payload_addr(pkt); check_rkey() previously accepted an ATOMIC_WRITE request with pktlen == resid == 0 because the length validation only compared pktlen against resid. A remote initiator that sets the RETH length to 0 therefore reaches atomic_write_reply() with a zero-byte logical payload, and the responder reads sizeof(u64) bytes from past the logical end of the packet into skb->head tailroom, then writes those 8 bytes into the attacker's MR via rxe_mr_do_atomic_write(). That is a remote disclosure of 4 bytes of kernel tailroom per probe (the other 4 bytes are the packet's own trailing ICRC). IBA oA19-28 defines ATOMIC_WRITE as exactly 8 bytes. Anything else is protocol-invalid. Hoist a strict length check into check_rkey() so the responder never reaches the unchecked dereference, and keep the existing WRITE-family length logic for the normal RDMA WRITE path. Reproduced on mainline with an unmodified rxe driver: a sustained zero-length ATOMIC_WRITE probe repeatedly leaks adjacent skb head-buffer bytes into the attacker's MR, including recognisable kernel strings and partial kernel-direct-map pointer words. With this patch applied the responder rejects the PDU and the MR stays all-zero. The Linux kernel CVE team has assigned CVE-2026-46114 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 034e285f8b99062a0cf29112e1232154a6a44aa5 and fixed in 6.6.140 with commit 539cabb7b2d8ba70f55bba91db55faef11c2a6d7 Issue introduced in 6.2 with commit 034e285f8b99062a0cf29112e1232154a6a44aa5 and fixed in 6.12.88 with commit d415fce3fcde6d7aeea6c25362a395b905811452 Issue introduced in 6.2 with commit 034e285f8b99062a0cf29112e1232154a6a44aa5 and fixed in 6.18.30 with commit 105bf79a23b85cf3a761d18a4f3e10ce88526bc1 Issue introduced in 6.2 with commit 034e285f8b99062a0cf29112e1232154a6a44aa5 and fixed in 7.0.7 with commit 7ec1ed4747f5f99f8b797bb438c5efd36079fad5 Issue introduced in 6.2 with commit 034e285f8b99062a0cf29112e1232154a6a44aa5 and fixed in 7.1-rc3 with commit 1114c87aa6f195cf07da55a27b2122ae26557b26 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-46114 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/539cabb7b2d8ba70f55bba91db55faef11c2a6d7 https://git.kernel.org/stable/c/d415fce3fcde6d7aeea6c25362a395b905811452 https://git.kernel.org/stable/c/105bf79a23b85cf3a761d18a4f3e10ce88526bc1 https://git.kernel.org/stable/c/7ec1ed4747f5f99f8b797bb438c5efd36079fad5 https://git.kernel.org/stable/c/1114c87aa6f195cf07da55a27b2122ae26557b26