RDMA/siw: Fix use-after-free in siw_accept()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel de603f01d9ccf823e575b013ffd86ebedca9a8c5, Kernel 561651d6a15588cee2040755f253faca2463415c, Kernel 59de5502f32895ffe9c45530327ed997b90fdf06 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Fix use-after-free in siw_accept() siw_accept() looks up the QP supplied by userspace. If that QP is already in RTS, the function jumps to error cleanup before associating the incoming CEP with it. The cleanup tests whether qp->cep is non-NULL and assumes the current call installed the association. However, qp->cep can point to the CEP of an existing connection. The cleanup then drops a reference from the incoming cep, not qp->cep. Once the incoming endpoint loses its remaining references, this can free it before the subsequent cep->qp store, causing a use-after-free. It also clears the existing QP association. Only release the association reference when qp->cep is the incoming CEP. This preserves an existing association and avoids accessing the freed endpoint.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <de603f01d9ccf823e575b013ffd86ebedca9a8c5, >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <561651d6a15588cee2040755f253faca2463415c, >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <59de5502f32895ffe9c45530327ed997b90fdf06, >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <8f286a8094ee32c415f9ecd2c20765beb8a18c79, >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <a89d120615e711ce8fce551fd291c2f387666735, >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <a9394971825933074032794a5feee5211509c774, >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <b9e7d3d9fdb2bfcfb25d93529fdf766536b37c78, >=6c52fdc244b5ccc468006fd65a504d4ee33743c7 <d57db36e74cca4763e1c2c0c6eb9f84d19813879, =5.3 | de603f01d9ccf823e575b013ffd86ebedca9a8c5, 561651d6a15588cee2040755f253faca2463415c, 59de5502f32895ffe9c45530327ed997b90fdf06, 8f286a8094ee32c415f9ecd2c20765beb8a18c79, a89d120615e711ce8fce551fd291c2f387666735, a9394971825933074032794a5feee5211509c774, b9e7d3d9fdb2bfcfb25d93529fdf766536b37c78, d57db36e74cca4763e1c2c0c6eb9f84d19813879 |
| linux-kernel: Kernel | >=5.16.0 <6.1.188, >=5.3.0 <5.10.270, >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=5.11.0 <5.15.221 | 6.1.188, 5.10.270, 6.18.52, 7.2.6, 6.6.157, 6.12.110, 5.15.221 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket