RDMA/hns: Fix unlocked call to hns_roce_qp_remove()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e088a685eae94a0607b8f7b99949a0e14d748813 · < 615d9d260c32bb678504ca96f29ae46f9d745155| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix unlocked call to hns_roce_qp_remove()
Sashiko points out that hns_roce_qp_remove() requires the caller to hold locks. The error flow in hns_roce_create_qp_common() doesn't hold those locks for the error unwind so it risks corrupting memory.
Grab the same locks the other two callers use.
From the CVE record · Linux
The Linux kernel’s RDMA/hns code can call hns_roce_qp_remove() without required locks during an error path, risking memory corruption. The input does not establish how an attacker could trigger this path, whether authentication or user interaction is needed, or whether it is remotely reachable.
Engineers running Linux kernels with the RDMA/hns driver should check their versions against the vendor advisory; affected versions are not specified.