CyberRota Analysis
AI-GeneratedA use-after-free vulnerability exists in the Linux kernel's RDMA/siw implementation, specifically within the siw_accept() function, which can lead to potential memory corruption. This flaw arises when the function improperly handles the association of connection endpoints, potentially allowing an attacker to exploit the freed memory. Organizations using affected Linux systems, particularly those leveraging RDMA functionality, should prioritize addressing this vulnerability to mitigate risks of exploitation.
Original NVD Description
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.