RDMA/hns: Fix UAF for cq async event
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9a4435375cd151e07c0c38fa601b00115986091b · < a942ec2745ca864cd8512142100e4027dc306a42| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix UAF for cq async event
The refcount of CQ is not protected by locks. When CQ asynchronous events and CQ destruction are concurrent, CQ may have been released, which will cause UAF.
Use the xa_lock() to protect the CQ refcount.
From the CVE record · Linux
The Linux kernel's RDMA/hns driver has an unprotected completion queue (CQ) reference count. Concurrent CQ asynchronous events and CQ destruction can release the CQ while it is still in use, causing a use-after-free. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Teams running Linux kernels with the RDMA/hns driver should check their kernel versions; affected versions are not specified.