HIGH Introduced in 6.4
rxe PacketReprocess Race
CVE-2026-93107
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
KernelScan AI7.2HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: Avoid reprocessing the current packet after the QP enters the error state When do_complete() finds the QP in the error state it returns RESPST_CHK_RESOURCE. Before commit 49dc9c1f0c7e ("RDMA/rxe: Cleanup reset state handling in rxe_resp.c") this was the flush loop: check_resource() had an error-state branch that fetched each remaining recv WQE and completed it with IB_WC_WR_FLUSH_ERR, without touching the current packet. That commit removed the error-state branch from check_resource() (draining is now done at rxe_receiver() entry) but kept the do_complete() error-state return. As a result, when a QP moves to the error state while a packet is being completed - e.g. an rdma_cm disconnect racing with receive processing - the responder state machine loops back into the request processing chain with the already-completed packet still in hand: check_resource() fetches a fresh recv WQE, execute()/send_data_in() copies the same packet payload again, do_complete() posts another IB_WC_SUCCESS CQE (qp->resp.status is still 0), and control returns to the error-state check. The loop re-executes the same packet once per posted recv WQE (observed: ~1000 duplicate IB_WC_SUCCESS completions of one SEND, one per ~8us, matching the RQ occupancy) until the RQ is exhausted, after which qp->resp.wqe is NULL and send_data_in() dereferences it: BUG: kernel NULL pointer dereference, address: 0000000000000014 Workqueue: rxe_wq do_work RIP: copy_data+0x29/0x1f0 Call Trace: send_data_in+0x25/0x50 rxe_receiver+0xf36/0x1dd0 The duplicate completions are indistinguishable from real receives to the ULP. During an rds stress test, the message was accepted as new and delivered the same datagram to user space hundreds of times, corrupting the stream; any ULP that relies on RC exactly-once delivery is affected. A live packet reaching the error-state check in do_complete() has been executed and completed exactly once and must be consumed, not re-processed. Return RESPST_CLEANUP for it (dequeue and free); keep returning RESPST_CHK_RESOURCE for the pkt == NULL case.
02KernelScan AI Analysis
Risk summary
A remote RDMA peer can trigger a race in the software RXE driver by disconnecting while receive processing is in flight, causing duplicate completions that silently corrupt data streams and eventually crash the kernel via a null pointer dereference. Systems exposing the RXE driver on a reachable network are at risk; air-gapped deployments are not. The race window is narrow but was observed under stress testing.
Vulnerability analysis
When a queue pair enters the error state while the responder is still handling a packet, the driver incorrectly loops back and reprocesses that same packet against every remaining receive buffer. This generates duplicate successful completions for one incoming message—corrupting the data stream for any protocol that depends on exactly-once delivery—and eventually dereferences a null pointer when the receive queue is empty, crashing the kernel. The corrected driver now discards the already-completed packet immediately upon detecting the error state, instead of sending it through the request path again. A remote RDMA peer can trigger this by sending traffic and then tearing down the connection while receive processing is underway, as long as the software RXE driver is loaded and reachable on the network.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.4 | 6.12.110 | 62a4b48767e0 |
| 6.18 | 6.4 | 6.18.52 | 399713f1f0ea |
| 7.2 | 6.4 | 7.2.6 | 0d37e2503efd |
| mainline | 6.4 | 7.3-rc1 | 15ae32c4a355 |
| 6.6 | 6.4 | 6.6.157 | c319b986a88c |
| cip/6.12 | 6.4 | 6.12.111-cip32 | 62a4b48767e0 |