---
id: CVE-2022-50666
title: |-
  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
summary: |-
  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…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b <
    5c75d608fad58301b63e7d69200c13c3a1d411da
  - >-
    Linux >= 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b <
    74ad141e995a730760b1bcfa14854b7f1057d6bc
  - >-
    Linux >= 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b <
    0ed8bf9d0bb19f3f5eedd73f04aaf5bba9ac0737
  - >-
    Linux >= 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b <
    a3c278807a459e6f50afee6971cabe74cccfb490
  - Linux 5.3
published: '2025-12-09'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:17:32.177'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-50666'
references:
  - url: 'https://git.kernel.org/stable/c/0ed8bf9d0bb19f3f5eedd73f04aaf5bba9ac0737'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5c75d608fad58301b63e7d69200c13c3a1d411da'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/74ad141e995a730760b1bcfa14854b7f1057d6bc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a3c278807a459e6f50afee6971cabe74cccfb490'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
epss: 0.00733
epssPercentile: 0.54162
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-15T21:31:53.314545Z'
ingestedAt: '2026-10-15T22:48:25.378Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
