CRITICAL
rdma RXE Underflow
CVE-2026-46043
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
KernelScan AI8.1HIGH
01Description
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.
02KernelScan AI Analysis
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).
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.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 5.10 | 5.10.258 | c4376c672c36 |
| 5.15 | 5.15.209 | 5fedefec7571 |
| 6.1 | 6.1.175 | 2c0d71ef12f4 |
| 6.12 | 6.12.86 | f83519a4c122 |
| 6.18 | 6.18.27 | 9b924f3a26b2 |
| 6.6 | 6.6.140 | 2fd4f8b74930 |
| 7.0 | 7.0.4 | e8ee0e792d47 |
| mainline | 7.1-rc1 | 7244491dab34 |