Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
6c52fdc244b5ccc468006fd65a504d4ee33743c7 to < f27da1192118fb6a7e73a85cfe4b02ccf8298619affected6c52fdc244b5ccc468006fd65a504d4ee33743c7 to < ff584d3735b13a1d7f8cd072f98fea40b6062518affected6c52fdc244b5ccc468006fd65a504d4ee33743c7 to < b28d513393f81e2de00f82970487a9d001557e4eaffected6c52fdc244b5ccc468006fd65a504d4ee33743c7 to < f6183983ce1ff254d629a333739082b39d7c5eb6affected6c52fdc244b5ccc468006fd65a504d4ee33743c7 to < b6cf763eee0a932792bef64ceaca568d324192fcaffected6c52fdc244b5ccc468006fd65a504d4ee33743c7 to < ea4f6f6c53577fb3f05dbd78b15e586772d49831affected
Linux Linux
Default version status: affected
5.3affected0 to < 5.3unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/f27da1192118fb6a7e73a85cfe4b02ccf8298619 ↗
- https://git.kernel.org/stable/c/ff584d3735b13a1d7f8cd072f98fea40b6062518 ↗
- https://git.kernel.org/stable/c/b28d513393f81e2de00f82970487a9d001557e4e ↗
- https://git.kernel.org/stable/c/f6183983ce1ff254d629a333739082b39d7c5eb6 ↗
- https://git.kernel.org/stable/c/b6cf763eee0a932792bef64ceaca568d324192fc ↗
- https://git.kernel.org/stable/c/ea4f6f6c53577fb3f05dbd78b15e586772d49831 ↗