# CVE-2026-46112: RDMA/hns: Fix unlocked call to hns_roce_qp_remove()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-05-28T09:35:20.879Z
- Modified: 2026-08-05T12:29:44.058Z
- Weaknesses: CWE-667
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from e088a685eae94a0607b8f7b99949a0e14d748813 before 1f0a3aa8b569d010316b427238222c5d899f9618; from e088a685eae94a0607b8f7b99949a0e14d748813 before b6296ff2475fc95ee6ea1b528c4b385302808186; from e088a685eae94a0607b8f7b99949a0e14d748813 before fb4ae739811d467409bd07d0e36cfd4140f3d26a; from e088a685eae94a0607b8f7b99949a0e14d748813 before fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb; from e088a685eae94a0607b8f7b99949a0e14d748813 before 1912f78798505dc9c637081bbddfbf1c22494c49; from e088a685eae94a0607b8f7b99949a0e14d748813 before 615d9d260c32bb678504ca96f29ae46f9d745155; from e088a685eae94a0607b8f7b99949a0e14d748813 before 0c99acbc8b6c6dd526ae475a48ee1897b61072fb; 4.17 (not affected: before 4.17; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.140 up to 6.6.*; from 6.12.88 up to 6.12.*; from 6.18.30 up to 6.18.*; from 7.0.7 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 4.17 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.140; from 6.7 before 6.12.88; from 6.13 before 6.18.30; from 6.19 before 7.0.7; 7.1

## References

- <https://git.kernel.org/stable/c/1f0a3aa8b569d010316b427238222c5d899f9618> (patch)
- <https://git.kernel.org/stable/c/b6296ff2475fc95ee6ea1b528c4b385302808186> (patch)
- <https://git.kernel.org/stable/c/fb4ae739811d467409bd07d0e36cfd4140f3d26a> (patch)
- <https://git.kernel.org/stable/c/fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb> (patch)
- <https://git.kernel.org/stable/c/1912f78798505dc9c637081bbddfbf1c22494c49> (patch)
- <https://git.kernel.org/stable/c/615d9d260c32bb678504ca96f29ae46f9d745155> (patch)
- <https://git.kernel.org/stable/c/0c99acbc8b6c6dd526ae475a48ee1897b61072fb> (patch)

## Sources

- CVE List: [CVE-2026-46112](https://www.cve.org/CVERecord?id=CVE-2026-46112), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-46112](https://nvd.nist.gov/vuln/detail/CVE-2026-46112), Public domain, modified 2026-06-24

---

Page: https://cve.day/CVE-2026-46112 · Whole record: https://cve.day/CVE-2026-46112.json · Rebuilt by cve.day 2026-11-25T22:59:22.776Z
