Linux
RDMA/siw: Fix endpoint/socket association handling
In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Fix endpoint/socket association handling Disassociating a socket from an endpoint via siw_socket_disassoc() may release the last reference on that endpoint and free it. Therefore, don't clear the endpoints socket pointer after calling that function, but within. This fixes a: BUG: KASAN: slab-use-after-free in siw_cm_work_handler (drivers/infiniband/sw/siw/siw_cm.c:1053 drivers/infiniband/sw/siw/siw_cm.c:1075) which occurred after processing a malformed MPA request during connection establishment, causing the new endpoint to be closed.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6c52fdc244b5ccc468006fd65a504d4ee33743c7, < f27da1192118fb6a7e73a85cfe4b02ccf8298619
- >= 6c52fdc244b5ccc468006fd65a504d4ee33743c7, < ff584d3735b13a1d7f8cd072f98fea40b6062518
- >= 6c52fdc244b5ccc468006fd65a504d4ee33743c7, < b28d513393f81e2de00f82970487a9d001557e4e
- >= 6c52fdc244b5ccc468006fd65a504d4ee33743c7, < f6183983ce1ff254d629a333739082b39d7c5eb6
- >= 6c52fdc244b5ccc468006fd65a504d4ee33743c7, < b6cf763eee0a932792bef64ceaca568d324192fc
- >= 6c52fdc244b5ccc468006fd65a504d4ee33743c7, < ea4f6f6c53577fb3f05dbd78b15e586772d49831
Fixed in f27da1192118fb6a7e73a85cfe4b02ccf8298619, ff584d3735b13a1d7f8cd072f98fea40b6062518, b28d513393f81e2de00f82970487a9d001557e4e, f6183983ce1ff254d629a333739082b39d7c5eb6, b6cf763eee0a932792bef64ceaca568d324192fc, ea4f6f6c53577fb3f05dbd78b15e586772d49831
- 5.3
Fixed in 0, 6.1.191, 6.6.160, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to f27da1192118fb6a7e73a85cfe4b02ccf8298619 or ff584d3735b13a1d7f8cd072f98fea40b6062518 or b28d513393f81e2de00f82970487a9d001557e4e or f6183983ce1ff254d629a333739082b39d7c5eb6 or b6cf763eee0a932792bef64ceaca568d324192fc or ea4f6f6c53577fb3f05dbd78b15e586772d49831 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 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.