Linux
RDMA/hns: Fix unlocked call to hns_roce_qp_remove()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e088a685eae94a0607b8f7b99949a0e14d748813, < 1f0a3aa8b569d010316b427238222c5d899f9618
- >= e088a685eae94a0607b8f7b99949a0e14d748813, < b6296ff2475fc95ee6ea1b528c4b385302808186
- >= e088a685eae94a0607b8f7b99949a0e14d748813, < fb4ae739811d467409bd07d0e36cfd4140f3d26a
- >= e088a685eae94a0607b8f7b99949a0e14d748813, < fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb
- >= e088a685eae94a0607b8f7b99949a0e14d748813, < 1912f78798505dc9c637081bbddfbf1c22494c49
- >= e088a685eae94a0607b8f7b99949a0e14d748813, < 615d9d260c32bb678504ca96f29ae46f9d745155
- >= e088a685eae94a0607b8f7b99949a0e14d748813, < 0c99acbc8b6c6dd526ae475a48ee1897b61072fb
Fixed in 1f0a3aa8b569d010316b427238222c5d899f9618, b6296ff2475fc95ee6ea1b528c4b385302808186, fb4ae739811d467409bd07d0e36cfd4140f3d26a, fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb, 1912f78798505dc9c637081bbddfbf1c22494c49, 615d9d260c32bb678504ca96f29ae46f9d745155, 0c99acbc8b6c6dd526ae475a48ee1897b61072fb
- 4.17
Fixed in 0, 5.15.209, 6.1.175, 6.6.140, 6.12.88, 6.18.30, 7.0.7, 7.1
Mitigation
Upgrade Linux to 1f0a3aa8b569d010316b427238222c5d899f9618 or b6296ff2475fc95ee6ea1b528c4b385302808186 or fb4ae739811d467409bd07d0e36cfd4140f3d26a or fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb or 1912f78798505dc9c637081bbddfbf1c22494c49 or 615d9d260c32bb678504ca96f29ae46f9d745155 or 0c99acbc8b6c6dd526ae475a48ee1897b61072fb or later.
Upgrade Linux to 0 or 5.15.209 or 6.1.175 or 6.6.140 or 6.12.88 or 6.18.30 or 7.0.7 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.