HIGH
rdma AtomicWrite OOB
CVE-2026-46114
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
KernelScan AI5.3MEDIUM
01Description
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.
02KernelScan AI Analysis
Risk summary
Remote attackers can exploit malformed RDMA ATOMIC_WRITE requests to leak kernel memory contents. The vulnerability allows reading 4 bytes of kernel tailroom data per probe into skb->head tailroom, potentially exposing kernel strings and partial kernel-direct-map pointer words that could aid further exploitation.
Vulnerability analysis
The root cause is insufficient length validation in check_rkey() for ATOMIC_WRITE operations. The function only compared pktlen against resid without enforcing the IBA specification requirement that ATOMIC_WRITE payloads must be exactly 8 bytes. When a remote initiator sends an ATOMIC_WRITE with zero-length payload, atomic_write_reply() unconditionally dereferences 8 bytes at payload_addr(pkt), reading past the logical packet end into skb->head tailroom. The leaked data is then written to the target memory region. The fix adds strict length validation specifically for ATOMIC_WRITE operations, rejecting any payload that isn't exactly 8 bytes before reaching the vulnerable dereference. This is a network-reachable attack over IP/UDP (Soft-RoCE/RoCEv2) requiring RDMA connectivity but no authentication.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 6.12 | 6.12.88 | d415fce3fcde |
| 6.18 | 6.18.30 | 105bf79a23b8 |
| 6.6 | 6.6.140 | 539cabb7b2d8 |
| 7.0 | 7.0.7 | 7ec1ed4747f5 |
| mainline | 7.1-rc3 | 1114c87aa6f1 |