Skip to content
Heist/ feed
Back to feed
CriticalFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.75, 5.19.17, 6.0.3
CVEs
CVE-2022-50666
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 17:55 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 9 Dec 2025, 01:29 UTC

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.

osv:CVE-2022-50666

Kernel

Fixed versions: 5.15.75, 5.19.17, 6.0.3

Complete source record
{
  "id": "ed9167c367ca35ebb1899a5d5d325ce5b452a02eb1267220ab57bb9249ff1d2d",
  "url": "https://osv.dev/vulnerability/CVE-2022-50666",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "RDMA/siw: Fix QP destroy to wait for all references 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 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.",
    "evidence": "osv:CVE-2022-50666",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.75",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.19.17",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-50666",
      "aliases": [
        "CVE-2022-50666"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b"
                },
                {
                  "fixed": "5c75d608fad58301b63e7d69200c13c3a1d411da"
                },
                {
                  "fixed": "74ad141e995a730760b1bcfa14854b7f1057d6bc"
                },
                {
                  "fixed": "0ed8bf9d0bb19f3f5eedd73f04aaf5bba9ac0737"
                },
                {
                  "fixed": "a3c278807a459e6f50afee6971cabe74cccfb490"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50666.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.3.0"
                },
                {
                  "fixed": "5.15.75"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.19.17"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.20.0"
                },
                {
                  "fixed": "6.0.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50666.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.164202852Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0ed8bf9d0bb19f3f5eedd73f04aaf5bba9ac0737",
        "https://git.kernel.org/stable/c/5c75d608fad58301b63e7d69200c13c3a1d411da",
        "https://git.kernel.org/stable/c/74ad141e995a730760b1bcfa14854b7f1057d6bc",
        "https://git.kernel.org/stable/c/a3c278807a459e6f50afee6971cabe74cccfb490",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50666.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50666",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50666.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50666",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505478,
  "published_at": "2025-12-09T01:29:16.813+00:00"
}