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 27F543AE718 for ; Thu, 28 May 2026 09:38:55 +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=1779961136; cv=none; b=tl/PRRdsEBLhndSZh78CbpXoUrmj5uLx1miu3qgL43mwo7A8W8IULvU16MzkCr2SRuIcphtXECceVRslHT7SCSejS3yRyprvMclZNExKi+BUxG2VkPjKYOH66U4bkLE044s/Y0l6auZjoi1IxhnxnBBJJrJ7LiUtO43FkHvcx5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961136; c=relaxed/simple; bh=eiaQu2q+pyaeJBUodnBEgEaiJqAus1QNL/ArexLUuKE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gghfuu0u52L4ru9DvK0ltiZOlbgDRmlS8+g6bhNgge2xzrDhBQYKfU6kW+H9Qy9AJjiqCtdDu6DlZFpjm0Ih9B0kWnD+vOUd6pzme3oOOPuwXWQS/Jv/IofJdvCNtIVOKeLXlNq/4WijeFaUffiKbnARnBE7/2ocWRbNyXsqosY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d/CO50pt; 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="d/CO50pt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D3061F000E9; Thu, 28 May 2026 09:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961134; bh=12X22C6DyWdzTm+68VbiU4ZmlYBFOIQnWzFlzVpWH/c=; h=From:To:Cc:Subject:Date:Reply-To; b=d/CO50ptKs8mKjvFT/wA/bKmBvyY6T6LavoVvC8tYIrTPjCejvTq6yUlQPkU3KO4B jEbm0qYeQJkaz93hMXzM/oZKiPJ0u10uH1YWxEiW9loYyAHU314mJtehI5KVE9Byif i9/jRTKs0mGxgrVGIP0hOlemxkD8tLqjLRpuGhQk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46133: RDMA/rxe: Reject unknown opcodes before ICRC processing Date: Thu, 28 May 2026 11:36:38 +0200 Message-ID: <2026052818-CVE-2026-46133-09c3@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=4570; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QAss1fKlWZ+qjSvVTCtFDny9j2XW8QH799ds2OvuMiA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPJOU89m9lp24kJ7z7ds78fbmA7eTPLtOv+RnTGktb hJX/rmpI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiz8YwV3ax9Q/LyBc7Pi40 vr73+vtMgV+pbQyzmEK3L+2w+h7G99rvvuPWA/Nusjt2AAA= 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 unknown opcodes before ICRC processing Even after applying commit 7244491dab34 ("RDMA/rxe: Validate pad and ICRC before payload_size() in rxe_rcv"), a single unauthenticated UDP packet can still trigger panic. That patch handled payload_size() underflow only for valid opcodes with short packets, not for packets carrying an unknown opcode. The unknown-opcode OOB read described below predates that commit and reaches back to the initial Soft RoCE driver. The check added there reads pkt->paylen < header_size(pkt) + bth_pad(pkt) + RXE_ICRC_SIZE where header_size(pkt) expands to rxe_opcode[pkt->opcode].length. The rxe_opcode[] array has 256 entries but is only populated for defined IB opcodes; any other entry (for example opcode 0xff) is zero-initialized, so length == 0 and the check degenerates to pkt->paylen < 0 + bth_pad(pkt) + RXE_ICRC_SIZE which does not constrain pkt->paylen enough. rxe_icrc_hdr() then computes rxe_opcode[pkt->opcode].length - RXE_BTH_BYTES which underflows when length == 0 and passes a huge value to rxe_crc32(), causing an out-of-bounds read of the skb payload. Reproduced on v7.0-rc7 with that fix applied, QEMU/KVM with CONFIG_RDMA_RXE=y and CONFIG_KASAN=y, after rdma link add rxe0 type rxe netdev eth0 A single 48-byte UDP packet to port 4791 with BTH opcode=0xff and QPN=IB_MULTICAST_QPN triggers: BUG: KASAN: slab-out-of-bounds in crc32_le+0x115/0x170 Read of size 1 at addr ... The buggy address is located 0 bytes to the right of allocated 704-byte region Call Trace: crc32_le+0x115/0x170 rxe_icrc_hdr.isra.0+0x226/0x300 rxe_icrc_check+0x13f/0x3a0 rxe_rcv+0x6e1/0x16e0 rxe_udp_encap_recv+0x20a/0x320 udp_queue_rcv_one_skb+0x7ed/0x12c0 Subsequent packets with the same shape fault on unmapped memory and panic the kernel. The trigger requires only module load and "rdma link add"; no QP, no connection, and no authentication. Fix this by rejecting packets whose opcode has no rxe_opcode[] entry, detected via the zero mask or zero length, before any length arithmetic runs. The Linux kernel CVE team has assigned CVE-2026-46133 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.6.140 with commit e3dc3a2fb05f4ed49c7f20594c4c52350d032189 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.12.88 with commit f8ee926431a7bbec2b10c1290664af2cb290b983 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 6.18.30 with commit 006a3a5f75345c6a0dbf13fd3ee01406e93b6733 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 7.0.7 with commit 6fa18025e5782afff91415fd5217b39c1e4837d7 Issue introduced in 4.8 with commit 8700e3e7c4857d28ebaa824509934556da0b3e76 and fixed in 7.1-rc3 with commit 4c6f86d85d03cdb33addce86aa69aa795ca6c47a 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-46133 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/e3dc3a2fb05f4ed49c7f20594c4c52350d032189 https://git.kernel.org/stable/c/f8ee926431a7bbec2b10c1290664af2cb290b983 https://git.kernel.org/stable/c/006a3a5f75345c6a0dbf13fd3ee01406e93b6733 https://git.kernel.org/stable/c/6fa18025e5782afff91415fd5217b39c1e4837d7 https://git.kernel.org/stable/c/4c6f86d85d03cdb33addce86aa69aa795ca6c47a