# CVE-2022-50666: RDMA/siw: Fix QP destroy to wait for all references dropped.

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/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.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2025-12-09T01:29:16.813Z
- Modified: 2026-10-15T22:17:32.177Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/siw: Fix QP destroy to wait for all references dropped.

Delay QP destroy completion until all siw references to QP are
dropped. The calling RDMA core will free QP structure after
successful return from siw_qp_destroy() call, so siw must not
hold any remaining reference to the QP upon return.
A use-after-free was encountered in xfstest generic/460, while
testing NFSoRDMA. Here, after a TCP connection drop by peer,
the triggered siw_cm_work_handler got delayed until after
QP destroy call, referencing a QP which has already freed.

(As written by CVE List.)

## Affected

- Linux Linux: from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before 5c75d608fad58301b63e7d69200c13c3a1d411da; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before 74ad141e995a730760b1bcfa14854b7f1057d6bc; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before 0ed8bf9d0bb19f3f5eedd73f04aaf5bba9ac0737; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before a3c278807a459e6f50afee6971cabe74cccfb490; 5.3 (not affected: before 5.3; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/5c75d608fad58301b63e7d69200c13c3a1d411da>
- <https://git.kernel.org/stable/c/74ad141e995a730760b1bcfa14854b7f1057d6bc>
- <https://git.kernel.org/stable/c/0ed8bf9d0bb19f3f5eedd73f04aaf5bba9ac0737>
- <https://git.kernel.org/stable/c/a3c278807a459e6f50afee6971cabe74cccfb490>

## Sources

- CVE List: [CVE-2022-50666](https://www.cve.org/CVERecord?id=CVE-2022-50666), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-50666](https://nvd.nist.gov/vuln/detail/CVE-2022-50666), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-50666 · Whole record: https://cve.day/CVE-2022-50666.json · Rebuilt by cve.day 2026-11-25T22:58:21.313Z
