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 DE9A6407CFE for ; Wed, 27 May 2026 13:03:59 +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=1779887041; cv=none; b=dSE3UKQn1sV2UN1Cb/9+kkfGM/og0REjK7oqGSd8gGFY3Tn+Ye4KssanYcOXv2Pw60MnSYxr/L3pjzhQ1L06nTnFxstzROCGTaq7ANEF0P72hPsNQupP9Laq2Po/r4a770BQf5pvNJTihicHEQCooJaHJHdJIo7kmqFmog7bYdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887041; c=relaxed/simple; bh=th+Httj1/4sDHWVDOVGbAQrPiEHvIlkSpmibPVTX6dM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sAMYycwUdCVP7ZgH/PjUnd1Wgr+ywoUQX09+owKFNOFD6ZPC+KOZeZDjrD5l8K/jBCSkigYgD2inceD9atZyd1yEpS5Cu+p9RT9kBdNbVHRQKuzietqn6MLncXgJWtdPYU6GnEzlucNWmNc/kZ4/ZoFQQsB7ILf3Z6J8L3/TSrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hZNCIdrH; 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="hZNCIdrH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE2581F00A3A; Wed, 27 May 2026 13:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887039; bh=56sgX3AprBNFjqvsNJ0h2BlS7XwOooJhv0o6V0uY+yk=; h=From:To:Cc:Subject:Date:Reply-To; b=hZNCIdrHvqXgcVqWv11mrT58tvzSADB3IpCQefmKu6t/c8ugruRhnqk+mqnB6tfc5 3dmMuoPVjlixn9i5jVkhQdPmtOaRYWGNpL/wei6mDsA+be6H+PaUPQ5R693nb4Lp7U 9gARnFg+ytz0xWb62V1UGfVsoX9vZBQZOomIhWNA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46043: RDMA/rxe: Validate pad and ICRC before payload_size() in rxe_rcv Date: Wed, 27 May 2026 14:59:34 +0200 Message-ID: <2026052751-CVE-2026-46043-153e@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=3317; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zgy+tfIn2Et6gn5SsgyV3f1DQJv3HAwgBm36kKQOodI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir3peFE9dEnTUdqufRV6IxdRDiWtjUnh50m1YA4L1z x65MOFiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk6CPD/NjKx5w1Ryf5vJXR m8xY+XSfoEbyHoZ5WrtEtTmbDatjKp88/7o6MarO4WE3AA== 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: Validate pad and ICRC before payload_size() in rxe_rcv rxe_rcv() currently checks only that the incoming packet is at least header_size(pkt) bytes long before payload_size() is used. However, payload_size() subtracts both the attacker-controlled BTH pad field and RXE_ICRC_SIZE from pkt->paylen: payload_size = pkt->paylen - offset[RXE_PAYLOAD] - bth_pad(pkt) - RXE_ICRC_SIZE This means a short packet can still make payload_size() underflow even if it includes enough bytes for the fixed headers. Simply requiring header_size(pkt) + RXE_ICRC_SIZE is not sufficient either, because a packet with a forged non-zero BTH pad can still leave payload_size() negative and pass an underflowed value to later receive-path users. Fix this by validating pkt->paylen against the full minimum length required by payload_size(): header_size(pkt) + bth_pad(pkt) + RXE_ICRC_SIZE. The Linux kernel CVE team has assigned CVE-2026-46043 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.6.140 with commit 2fd4f8b749309a61c3f3f88ee8891d94f79e1240 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.12.86 with commit f83519a4c122c9c7a850a2197648a9ff4c67c520 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.18.27 with commit 9b924f3a26b21330a837cfe72e819b6393bbeeaa Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 7.0.4 with commit e8ee0e792d475b1067c199ef0af1b6221fa6f43d Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 7.1-rc1 with commit 7244491dab347f648e661da96dc0febadd9daec3 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-46043 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_recv.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/2fd4f8b749309a61c3f3f88ee8891d94f79e1240 https://git.kernel.org/stable/c/f83519a4c122c9c7a850a2197648a9ff4c67c520 https://git.kernel.org/stable/c/9b924f3a26b21330a837cfe72e819b6393bbeeaa https://git.kernel.org/stable/c/e8ee0e792d475b1067c199ef0af1b6221fa6f43d https://git.kernel.org/stable/c/7244491dab347f648e661da96dc0febadd9daec3