CVE-2022-50666
kernel: RDMA/siw: Fix QP destroy to wait for all references dropped
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 9, 2025
Updated · October 30, 2026
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.
Statement
This vulnerability is rated as Moderate because exploitation requires the Soft-iWARP (siw) driver to be actively handling network connections, and the resulting race condition primarily leads to a kernel crash and denial of service. The siw kernel module is not loaded by default on Red Hat Enterprise Linux systems and is only utilized when software-based RDMA over TCP is explicitly configured. Deployments not utilizing software RDMA or relying strictly on hardware RDMA adapters are not exposed to this flaw.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE-416 · Use After Free