Linux
RDMA/erdma: Hold QP references for AE and CM processing
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 92101d7bd67cf313d65baede27118614a283f6bf
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 233f1b7fe2980e4e238fe03dd3ceddfd082cb4c8
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < 6e32f84b63c054e09392153125d7202abab2d14b
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < ec987c0654651036dad6a42f7fa2a6d7c16a3687
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < c92686867638cda954fdb2bdbac8a75e3aa6eaae
- >= 155055771704f8cbb5c176a4309b7dc30a50450c, < a52eeff32024f190b3bdc99088c7becccd4fa60b
Fixed in 92101d7bd67cf313d65baede27118614a283f6bf, 233f1b7fe2980e4e238fe03dd3ceddfd082cb4c8, 6e32f84b63c054e09392153125d7202abab2d14b, ec987c0654651036dad6a42f7fa2a6d7c16a3687, c92686867638cda954fdb2bdbac8a75e3aa6eaae, a52eeff32024f190b3bdc99088c7becccd4fa60b
- 6.0
Fixed in 0, 6.1.191, 6.6.160, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to 92101d7bd67cf313d65baede27118614a283f6bf or 233f1b7fe2980e4e238fe03dd3ceddfd082cb4c8 or 6e32f84b63c054e09392153125d7202abab2d14b or ec987c0654651036dad6a42f7fa2a6d7c16a3687 or c92686867638cda954fdb2bdbac8a75e3aa6eaae or a52eeff32024f190b3bdc99088c7becccd4fa60b or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.