RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6a98d71daea186247005099758af549e6afdd244 · < 3e4289b29e216a55d08a89e126bc0b37cbad9f38| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds
In the function init_conns(), after the create_con() and create_cm() for loop if something fails. In the cleanup for loop after the destroy tag, we access out of bound memory because cid is set to clt_path->s.con_num.
This commits resets the cid to clt_path->s.con_num - 1, to stay in bounds in the cleanup loop later.
From the CVE record · Linux
The Linux kernel's RDMA/rtrs-clt cleanup loop can access memory out of bounds if connection creation fails in init_conns(). The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with RDMA/rtrs-clt should check whether their kernel includes the fix; affected versions were not specified.