Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/rtrs-clt: Validate peer-supplied IO completion msg_id process_io_rsp() indexes clt_path->reqs[] with the 19-bit msg_id taken from a WRITE_WITH_IMM immediate. That value is chosen by the peer. The only check was WARN_ON(msg_id >= queue_depth), which still lets a completion run after free_path_reqs() 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 rtrs_clt_io_req, mr). Treat a missing reqs array, an out-of-range msg_id, or a req without an MR as a protocol error and recover the connection.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
6a98d71daea186247005099758af549e6afdd244 to < 03247d0d153e73f72db950713fd5eec3bf5bd65daffected6a98d71daea186247005099758af549e6afdd244 to < 06255d342755e8a3e6eb477801e94529501b684baffected6a98d71daea186247005099758af549e6afdd244 to < 71e667a909f19c8598068ac3e70cb336b501c09daffected6a98d71daea186247005099758af549e6afdd244 to < df35ed1850fa12645c284ee1c56cb50bb837f25faffected6a98d71daea186247005099758af549e6afdd244 to < 67b7ff86dfaff80eef1f98e78e5905a113730fd8affected6a98d71daea186247005099758af549e6afdd244 to < 95d5f15191d4c11d17a3252d8b70cf161509ee87affected6a98d71daea186247005099758af549e6afdd244 to < c1fcde82f7b68181553af7efb4410df04109a9a8affected
Linux Linux
Default version status: affected
5.8affected0 to < 5.8unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/03247d0d153e73f72db950713fd5eec3bf5bd65d ↗
- https://git.kernel.org/stable/c/06255d342755e8a3e6eb477801e94529501b684b ↗
- https://git.kernel.org/stable/c/71e667a909f19c8598068ac3e70cb336b501c09d ↗
- https://git.kernel.org/stable/c/df35ed1850fa12645c284ee1c56cb50bb837f25f ↗
- https://git.kernel.org/stable/c/67b7ff86dfaff80eef1f98e78e5905a113730fd8 ↗
- https://git.kernel.org/stable/c/95d5f15191d4c11d17a3252d8b70cf161509ee87 ↗
- https://git.kernel.org/stable/c/c1fcde82f7b68181553af7efb4410df04109a9a8 ↗