RDMA/rtrs-srv: Fix integer underflow in process_read and process_write
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9cb837480424e78ed585376f944088246685aec3 · < 54bf38b27afc08a0eb6b732f9c14eb8a4bcb66b5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rtrs-srv: Fix integer underflow in process_read and process_write
usr_len is read from a network-supplied message field (le16_to_cpu) and used to compute data_len = off - usr_len without validating that usr_len <= off. A malicious RDMA client can send usr_len > off causing an integer underflow, resulting in data_len wrapping to a huge size_t value which is then passed to the rdma_ev callback as a memory length, leading to out-of-bounds memory access.
Fix by reading and validating usr_len <= off before rtrs_srv_get_ops_ids() in both process_read() and process_write(), ensuring the early return path acquires no reference and has no resource leak.
From the CVE record · Linux
The Linux kernel's RDMA/rtrs-srv process_read() and process_write() functions do not validate a length supplied in a network message before using it in a calculation. A malicious RDMA client can cause an integer underflow that passes an oversized memory length to a callback, leading to out-of-bounds memory access. Authentication requirements are unspecified; no user interaction is described.
Engineers running Linux kernels with RDMA/rtrs-srv should check their deployments; affected versions are not specified.