Description
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.
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
155055771704f8cbb5c176a4309b7dc30a50450c to < 233f1b7fe2980e4e238fe03dd3ceddfd082cb4c8affected155055771704f8cbb5c176a4309b7dc30a50450c to < 6e32f84b63c054e09392153125d7202abab2d14baffected155055771704f8cbb5c176a4309b7dc30a50450c to < ec987c0654651036dad6a42f7fa2a6d7c16a3687affected155055771704f8cbb5c176a4309b7dc30a50450c to < c92686867638cda954fdb2bdbac8a75e3aa6eaaeaffected155055771704f8cbb5c176a4309b7dc30a50450c to < a52eeff32024f190b3bdc99088c7becccd4fa60baffected
Linux Linux
Default version status: affected
6.0affected0 to < 6.0unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/233f1b7fe2980e4e238fe03dd3ceddfd082cb4c8 ↗
- https://git.kernel.org/stable/c/6e32f84b63c054e09392153125d7202abab2d14b ↗
- https://git.kernel.org/stable/c/ec987c0654651036dad6a42f7fa2a6d7c16a3687 ↗
- https://git.kernel.org/stable/c/c92686867638cda954fdb2bdbac8a75e3aa6eaae ↗
- https://git.kernel.org/stable/c/a52eeff32024f190b3bdc99088c7becccd4fa60b ↗