Description
In the Linux kernel, the following vulnerability has been resolved: nvmet-rdma: take a device off the list last nvmet_rdma_remove_one() disconnects the queues of a device and flushes nvmet-wq, but since commit a3dd7d0022c3 it returns right away if the device isn't on device_list. nvmet_rdma_free_dev(), run by the release work of the last queue, takes the device off that list first and frees the SRQs and the PD afterwards. A device removal in between finds nothing on the list, returns, and the RDMA core frees the device under ib_dealloc_pd(). Free the SRQs and the PD first and unlist the device last, so the remove callback finds it and its flush waits for the release work.
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
a3dd7d0022c347207ae931c753a6dc3e6e8fcbc1 to < 79f238848551cc14ec1f77cab53fea09d3d29538affecteda3dd7d0022c347207ae931c753a6dc3e6e8fcbc1 to < 9b06e25fb725f42679b35b8316f1d017f99014d7affecteda3dd7d0022c347207ae931c753a6dc3e6e8fcbc1 to < a8da043f51148150525917dacd82a1144a0f566daffecteda3dd7d0022c347207ae931c753a6dc3e6e8fcbc1 to < 936416dc7788c3772aaeaa740bdd1d575f60a696affecteda3dd7d0022c347207ae931c753a6dc3e6e8fcbc1 to < 4260713a910c2a1b6b048ed22571fcf3b9cbe410affecteda3dd7d0022c347207ae931c753a6dc3e6e8fcbc1 to < 86ae3841aea4e29d7ac08d5614ca3823dc8dfbc9affected
Linux Linux
Default version status: affected
4.17affected0 to < 4.17unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/79f238848551cc14ec1f77cab53fea09d3d29538 ↗
- https://git.kernel.org/stable/c/9b06e25fb725f42679b35b8316f1d017f99014d7 ↗
- https://git.kernel.org/stable/c/a8da043f51148150525917dacd82a1144a0f566d ↗
- https://git.kernel.org/stable/c/936416dc7788c3772aaeaa740bdd1d575f60a696 ↗
- https://git.kernel.org/stable/c/4260713a910c2a1b6b048ed22571fcf3b9cbe410 ↗
- https://git.kernel.org/stable/c/86ae3841aea4e29d7ac08d5614ca3823dc8dfbc9 ↗