RDMA/erdma: Hold QP references for AE and CM processing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 155055771704f8cbb5c176a4309b7dc30a50450c · < a52eeff32024f190b3bdc99088c7becccd4fa60b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/erdma: Hold QP references for AE and CM processing
AE QP fatal events and iWARP CM paths load QPs from dev->qp_xa and then use or reference them outside the xarray lock. erdma_destroy_qp() can drop the destroy-path reference and free QP resources while such a lookup is in flight.
Add erdma_qp_get_by_qpn() to acquire a kref under the xarray lock with kref_get_unless_zero(). Remove the QP from the xarray before dropping the destroy-path reference so no new lookup can acquire it while destruction waits for existing users.
From the CVE record · Linux
The Linux kernel’s RDMA/erdma driver can access a queue pair (QP) after its resources are freed. This can occur when QP destruction overlaps with asynchronous error-event or iWARP connection-manager processing. The input does not establish how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with the RDMA/erdma driver should check whether their kernel includes the QP reference-handling fix; affected versions were not specified.