RDMA/hns: Fix Use-After-Free of rsv_qp on HIP08
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix Use-After-Free of rsv_qp on HIP08
Currently rsv_qp is freed before ib_unregister_device() is called on HIP08. During the time interval, users can still dereg MR and rsv_qp will be used in this process, leading to a UAF. Move the release of rsv_qp after calling ib_unregister_device() to fix it.
From the CVE record · Linux
On HIP08, the Linux kernel's RDMA/hns driver can free rsv_qp before unregistering the device. During that interval, a user who deregisters a memory region can trigger a use-after-free. The input does not specify authentication requirements or further user interaction.
Check systems running the Linux kernel with the RDMA/hns driver on HIP08; affected versions are not specified.