CVE-2026-139573: RDMA/rtrs-clt: Validate peer-supplied IO completion msg_id
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rtrs-clt: Validate peer-supplied IO completion msgid
processiorsp() indexes cltpath->reqs[] with the 19-bit msgid taken from a WRITEWITHIMM immediate. That value is chosen by the peer. The only check was WARNON(msgid >= queuedepth), which still lets a completion run after freepathreqs() has set reqs to NULL, or against a slot whose FRWR is already gone. Either path dereferences req->mr and can GPF; KASAN reports a null-ptr-deref at offsetof(struct rtrscltioreq, mr).
Treat a missing reqs array, an out-of-range msgid, or a req without an MR as a protocol error and recover the connection.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Validate peer-supplied IO completion msg_id and the corresponding request; treat a missing reqs array, an out-of-range msg_id, or a request without an MR as a protocol error and recover the connection.