{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139593",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.942Z",
        "datePublished": "2026-11-30T13:36:11.336Z",
        "dateUpdated": "2026-11-30T13:36:11.336Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:36:11.336Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/hw/mlx5/qp.c",
                        "drivers/infiniband/hw/mlx5/qpc.c"
                    ],
                    "versions": [
                        {
                            "version": "e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c",
                            "lessThan": "52f40c02f9b91a14d34cdf7ebff833716aa60acf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c",
                            "lessThan": "b5ff026b41d2ff4c7708e8ce9750388ea09e6e96",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c",
                            "lessThan": "2570ac441eda1a76aaf7aa4dd56bbe297e527ec8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c",
                            "lessThan": "05a078c97eb0bb7158526dae414b853737692485",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/hw/mlx5/qp.c",
                        "drivers/infiniband/hw/mlx5/qpc.c"
                    ],
                    "versions": [
                        {
                            "version": "3.11",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.11",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/52f40c02f9b91a14d34cdf7ebff833716aa60acf"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b5ff026b41d2ff4c7708e8ce9750388ea09e6e96"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2570ac441eda1a76aaf7aa4dd56bbe297e527ec8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/05a078c97eb0bb7158526dae414b853737692485"
                }
            ],
            "title": "RDMA/mlx5: Set QP event handler before firmware QPC insertion",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}