Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 377f9b2f4529e0ac702fd7b91e216afd0adc959e before 5bf47bbea3c22c0af2293b6c393ab04d5420f7ab; affected 377f9b2f4529e0ac702fd7b91e216afd0adc959e before 6e21754bbf75075f3fee1cebc79f3417364235ec; affected 377f9b2f4529e0ac702fd7b91e216afd0adc959e before 3cf372cec7ab2cd8c6002bf775cc14d90ccb098b; affected 377f9b2f4529e0ac702fd7b91e216afd0adc959e before 1f6a14c142fee4778c32709d1d54595c2e2b7991; affected 377f9b2f4529e0ac702fd7b91e216afd0adc959e before 0944462247dcb7de7622cdaaadf5f05c52707dab |
| Linux / Linux | affected 2.6.25; unaffected 0 before 2.6.25; unaffected 6.6.160 through 6.6.*; unaffected 6.12.109 through 6.12.*; unaffected 6.18.50 through 6.18.*; unaffected 7.2.4 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/5bf47bbea3c22c0af2293b6c393ab04d5420f7ab
- https://git.kernel.org/stable/c/6e21754bbf75075f3fee1cebc79f3417364235ec
- https://git.kernel.org/stable/c/3cf372cec7ab2cd8c6002bf775cc14d90ccb098b
- https://git.kernel.org/stable/c/1f6a14c142fee4778c32709d1d54595c2e2b7991
- https://git.kernel.org/stable/c/0944462247dcb7de7622cdaaadf5f05c52707dab