{"id":"CVE-2026-139593","aliases":["CVE-2026-139593"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/mlx5: Set QP event handler before firmware QPC insertion","summary":"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->container_mibqp and\nbase->mqp.event after the firmware create call that inserts the QP into\ndev->qp_table.tree. A firmware error EQE in that window reaches\nqp->event() 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->event) guard in\nrsc_event_notifier() as a safeguard for future regressions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->container_mibqp and\nbase->mqp.event after the firmware create call that inserts the QP into\ndev->qp_table.tree. A firmware error EQE in that window reaches\nqp->event() 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->event) guard in\nrsc_event_notifier() as a safeguard for future regressions.","source":"cvelist"}],"published":"2026-11-30T13:36:11.336Z","modified":"2026-11-30T14:19:41.087Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c","fixed":"52f40c02f9b91a14d34cdf7ebff833716aa60acf","status":"affected"},{"type":"git","introduced":"e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c","fixed":"b5ff026b41d2ff4c7708e8ce9750388ea09e6e96","status":"affected"},{"type":"git","introduced":"e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c","fixed":"2570ac441eda1a76aaf7aa4dd56bbe297e527ec8","status":"affected"},{"type":"git","introduced":"e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c","fixed":"05a078c97eb0bb7158526dae414b853737692485","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.11","status":"unaffected"},{"type":"semver","introduced":"6.12.120","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.66","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/52f40c02f9b91a14d34cdf7ebff833716aa60acf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5ff026b41d2ff4c7708e8ce9750388ea09e6e96","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2570ac441eda1a76aaf7aa4dd56bbe297e527ec8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/05a078c97eb0bb7158526dae414b853737692485","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139593","url":"https://www.cve.org/CVERecord?id=CVE-2026-139593","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:11.336Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139593","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139593","licence":"Public domain","modified":"2026-11-30T14:19:41.087Z"}],"updatedAt":"2026-11-30T14:33:30.427Z","epss":{"score":0.00209,"percentile":0.1166,"date":"2026-12-01T12:00:22.000Z"}}