In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix Use-After-Free of rsv_qp on HIP08
Currently rsvqp is freed before ibunregisterdevice() is called on HIP08. During the time interval, users can still dereg MR and rsvqp will be used in this process, leading to a UAF. Move the release of rsvqp after calling ibunregister_device() to fix it.