RDMA/siw: Fix endpoint/socket association handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6c52fdc244b5ccc468006fd65a504d4ee33743c7 · < ea4f6f6c53577fb3f05dbd78b15e586772d49831| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's RDMA/siw endpoint handling has a use-after-free flaw when a socket is disassociated from an endpoint. A network peer can trigger it with a malformed MPA request during connection establishment; the input does not specify authentication requirements or user interaction.
Operators running Linux kernels with RDMA/siw should check their affected versions; no version range is provided.