KernelScan.io

CRITICAL

rdma RXE Underflow

CVE-2026-46043

CVSS 9.1 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

KernelScan AI8.1HIGH

01

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.

02

Engine v0.2.0

Risk summary

Remote attackers can craft malicious RoCEv2 packets with forged BTH pad fields to trigger an integer underflow in payload size calculation within rxe_rcv(). The underflowed value is passed to later receive-path users, causing an out-of-bounds read from the packet buffer. This leaks kernel slab data (C:Low) and will hit unmapped pages, resulting in a kernel panic (A:High).

Affecteddrivers/infiniband/sw/rxe/rxe_recv.c (RDMA RXE)

Vulnerability analysis

The vulnerability occurs in rxe_rcv() where payload_size() subtracts the attacker-controlled BTH pad field and RXE_ICRC_SIZE from pkt->paylen without sufficient validation. A short packet can cause payload_size() to underflow to a very large unsigned value. The old check only verified skb->len against header_size(pkt), which is insufficient. The fix validates pkt->paylen against the full minimum length required: header_size(pkt) + bth_pad(pkt) + RXE_ICRC_SIZE. This affects systems with Soft RoCE (RXE) configured and reachable via UDP/IP network interfaces.

03

BranchFixed inPatch commit
5.105.10.258c4376c672c36
5.155.15.2095fedefec7571
6.16.1.1752c0d71ef12f4
6.126.12.86f83519a4c122
6.186.18.279b924f3a26b2
6.66.6.1402fd4f8b74930
7.07.0.4e8ee0e792d47
mainline7.1-rc17244491dab34