Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e088a685eae94a0607b8f7b99949a0e14d748813 to < 1f0a3aa8b569d010316b427238222c5d899f9618affectede088a685eae94a0607b8f7b99949a0e14d748813 to < b6296ff2475fc95ee6ea1b528c4b385302808186affectede088a685eae94a0607b8f7b99949a0e14d748813 to < fb4ae739811d467409bd07d0e36cfd4140f3d26aaffectede088a685eae94a0607b8f7b99949a0e14d748813 to < fcf6a832c0d5b2bc5398d6996c5570d3ee7993fbaffectede088a685eae94a0607b8f7b99949a0e14d748813 to < 1912f78798505dc9c637081bbddfbf1c22494c49affectede088a685eae94a0607b8f7b99949a0e14d748813 to < 615d9d260c32bb678504ca96f29ae46f9d745155affectede088a685eae94a0607b8f7b99949a0e14d748813 to < 0c99acbc8b6c6dd526ae475a48ee1897b61072fbaffected
Linux Linux
Default version status: affected
4.17affected0 to < 4.17unaffected5.15.209 to ≤ 5.15.*unaffected6.1.175 to ≤ 6.1.*unaffected6.6.140 to ≤ 6.6.*unaffected6.12.88 to ≤ 6.12.*unaffected6.18.30 to ≤ 6.18.*unaffected7.0.7 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/1f0a3aa8b569d010316b427238222c5d899f9618 ↗
- https://git.kernel.org/stable/c/b6296ff2475fc95ee6ea1b528c4b385302808186 ↗
- https://git.kernel.org/stable/c/fb4ae739811d467409bd07d0e36cfd4140f3d26a ↗
- https://git.kernel.org/stable/c/fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb ↗
- https://git.kernel.org/stable/c/1912f78798505dc9c637081bbddfbf1c22494c49 ↗
- https://git.kernel.org/stable/c/615d9d260c32bb678504ca96f29ae46f9d745155 ↗
- https://git.kernel.org/stable/c/0c99acbc8b6c6dd526ae475a48ee1897b61072fb ↗