Linux
svcrdma: Clear sc_cm_id when ADDR_CHANGE replacement fails
In the Linux kernel, the following vulnerability has been resolved: svcrdma: Clear sc_cm_id when ADDR_CHANGE replacement fails When svc_rdma_listen_handler() handles RDMA_CM_EVENT_ADDR_CHANGE, it creates a replacement listener cm_id and returns 1, telling the CM core to destroy the old one. If the replacement allocation fails, sc_cm_id still points at the old cm_id that the CM core is about to destroy. Any subsequent dereference of sc_cm_id -- such as svc_rdma_detach()'s rdma_disconnect() call -- is a use-after-free. NULL sc_cm_id on the failure path and guard svc_rdma_detach()'s rdma_disconnect() call against NULL so that the listener can be torn down safely when the server shuts down.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d1b586e75ec619dde1af47e21a41a6b1b51874c2, < 2a68aeb2de8ad0fef9c50e73a50622a35c6af1a8
- >= d1b586e75ec619dde1af47e21a41a6b1b51874c2, < 65f0f82f20334e76acaf29087a59af7b3b9699ed
- >= d1b586e75ec619dde1af47e21a41a6b1b51874c2, < 673e358ab7c11f8cec223c6a36a793056a67facd
- >= d1b586e75ec619dde1af47e21a41a6b1b51874c2, < 01500306e1d50de7ca7a2cdcdfa28ac0523eb747
- 2f84d6e8b0a7093758d8da19cec111140e7b6d41
- 5cd069ad1cf7fb46af31f0dbe2850868335f5272
- >= 6.1.191, < 6.2
- >= 6.6.160, < 6.7
Fixed in 2a68aeb2de8ad0fef9c50e73a50622a35c6af1a8, 65f0f82f20334e76acaf29087a59af7b3b9699ed, 673e358ab7c11f8cec223c6a36a793056a67facd, 01500306e1d50de7ca7a2cdcdfa28ac0523eb747, 6.2, 6.7
- 6.11
Fixed in 0, 6.12.114, 6.18.57, 7.2.4, 7.3
Mitigation
Upgrade Linux to 2a68aeb2de8ad0fef9c50e73a50622a35c6af1a8 or 65f0f82f20334e76acaf29087a59af7b3b9699ed or 673e358ab7c11f8cec223c6a36a793056a67facd or 01500306e1d50de7ca7a2cdcdfa28ac0523eb747 or 6.2 or 6.7 or later.
Upgrade Linux to 0 or 6.12.114 or 6.18.57 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.