svcrdma: Reject connection when transport allocation fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 377f9b2f4529e0ac702fd7b91e216afd0adc959e · < 0944462247dcb7de7622cdaaadf5f05c52707dab| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
svcrdma: Reject connection when transport allocation fails
handle_connect_req() returns without action when svc_rdma_create_xprt() fails to allocate the new transport. The CM core returns 0 for CONNECT_REQUEST events, so it does not destroy the new rdma_cm_id. Each allocation failure under memory pressure leaks one rdma_cm_id, and a remote peer driving connection attempts can amplify this.
Reject the connection by returning a non-zero status from the CM event handler, which tells the CM core to destroy the orphaned cm_id.
From the CVE record · Linux
The Linux kernel's svcrdma connection handler can leak an rdma_cm_id when transport allocation fails under memory pressure. A remote peer can amplify the leak by making repeated connection attempts; the description does not specify an authentication requirement or user interaction.
Engineers running Linux kernels with svcrdma should check whether their kernel is affected; affected versions are not specified.