{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c"
            },
            {
              "fixed": "52f40c02f9b91a14d34cdf7ebff833716aa60acf"
            },
            {
              "fixed": "b5ff026b41d2ff4c7708e8ce9750388ea09e6e96"
            },
            {
              "fixed": "2570ac441eda1a76aaf7aa4dd56bbe297e527ec8"
            },
            {
              "fixed": "05a078c97eb0bb7158526dae414b853737692485"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.11.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139593.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Set QP event handler before firmware QPC insertion\n\nFour QP creation paths assigned base-\u003econtainer_mibqp and\nbase-\u003emqp.event after the firmware create call that inserts the QP into\ndev-\u003eqp_table.tree. A firmware error EQE in that window reaches\nqp-\u003eevent() with a NULL pointer.\n\nMove both assignments before the firmware call.\n\nAlso set ibqp.qp_num inside mlx5_qpc_create_qp() before\ncreate_resource_common() so an EQE arriving early does not observe\nqp_num==0.\n\nIn addition, add a WARN_ON_ONCE(!qp-\u003eevent) guard in\nrsc_event_notifier() as a safeguard for future regressions.",
  "id": "CVE-2026-139593",
  "modified": "2026-11-30T14:45:38.631267612Z",
  "published": "2026-11-30T13:36:11.336Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/05a078c97eb0bb7158526dae414b853737692485"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2570ac441eda1a76aaf7aa4dd56bbe297e527ec8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/52f40c02f9b91a14d34cdf7ebff833716aa60acf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b5ff026b41d2ff4c7708e8ce9750388ea09e6e96"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139593.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139593"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "RDMA/mlx5: Set QP event handler before firmware QPC insertion"
}