{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139156",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.917Z",
        "datePublished": "2026-11-30T13:32:06.082Z",
        "dateUpdated": "2026-12-01T05:41:38.430Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:41:38.430Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-rdma: fix NULL metadata_sgl dereference with T10-PI\n\nSince commit 2a8513091d2f (\"nvme-rdma: parallelize I/O queue allocation\nand startup\") the I/O tag set is allocated before the I/O queues.\nnvme_rdma_init_request() only sets req->metadata_sgl if\nqueue->pi_support is set, but pi_support is only set later by\nnvme_rdma_alloc_queue(), so every I/O request is left with a NULL\nmetadata_sgl.\n\nWith an RDMA device that supports integrity and a namespace formatted\nwith protection information, nvme_rdma_dma_map_req() then dereferences\nthe NULL pointer on the first integrity I/O, already during the\nnamespace scan when there is more than one I/O queue.\n\nQueues that a later reconnect adds for the first time have the same\nproblem.\n\nCheck queue_idx and the controller's max_integrity_segments instead,\nwhich is what nvme_rdma_alloc_queue() derives pi_support from."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - The NVMe/RDMA target (RoCEv2, routable) chooses the namespace format in its Identify Namespace response (FLBAS META_EXT, LBAF ms, DPS PI type). nvme_configure_metadata() turns that into a blk integrity profile, so every read gets PI and nvme_rdma_queue_rq()->nvme_rdma_map_data()->nvme_rdma_dma_map_req() writes through the NULL req->metadata_sgl.\nAC:L - The target alone produces the trigger. It advertises a PI-formatted namespace at connect time, or later sends a NS_CHANGED AEN or drops the queue pair to force a rescan, and the partition-scan read crashes the host. The host only needs an mlx5 HCA with SHO (IBK_INTEGRITY_HANDOVER), which is the standard NVMe/RDMA HCA, and has no opt-in knob.\nPR:N - The initiator makes the outbound connection and accepts the target's Identify Namespace data. That data passes through nvme_scan_work and nvme_update_ns_info, and no local uid or capability is checked. DH-HMAC-CHAP controller authentication is optional and off by default, so the target needs no credentials on the host.\nUI:N - No host user acts. nvme_scan_work->device_add_disk() issues the partition-table read itself, and __bio_integrity_action() attaches PI to every READ, so the first I/O on any queue oopses. A reconnect via nvme_rdma_reconnect_ctrl_work re-runs the scan without operator action.\nS:U - The oops is confined to the initiator kernel's block dispatch path. No guest/host, IOMMU or sandbox boundary is crossed, and the target only affects the host it is connected to.\nC:N - metadata_sgl is NULL because nvme_rdma_init_request() runs on __GFP_ZERO rq pages before pi_support is set. The faulting store is req->metadata_sgl->sg_table.sgl at address 0x8, in the unmapped zero page that mmap_min_addr protects, so no data is read or returned.\nI:N - The only write targets NULL+8, which faults before sg_alloc_table_chained() or ib_dma_map_sg() run. No kernel object is corrupted and no wrong NVMe command or PI tuple is sent.\nA:H - The NULL store oopses in nvme_rdma_dma_map_req() under nvme_rdma_queue_rq(), from scan_work or any submitter. That panics hosts with panic_on_oops and otherwise leaves the namespace scan and I/O stuck. All I/O requests share the NULL pointer, so every reconnect or rescan the target triggers crashes again."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvme/host/rdma.c"
                    ],
                    "versions": [
                        {
                            "version": "2a8513091d2f0b9a1e94b1843c48c712e7c17301",
                            "lessThan": "3783c349a3de6a1d994b50b7a01402e682be1d87",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2a8513091d2f0b9a1e94b1843c48c712e7c17301",
                            "lessThan": "557114b52c1d73f45c603337ac3465bba6667e34",
                            "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/nvme/host/rdma.c"
                    ],
                    "versions": [
                        {
                            "version": "7.3",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.3",
                            "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": "7.3",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.3",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/3783c349a3de6a1d994b50b7a01402e682be1d87"
                },
                {
                    "url": "https://git.kernel.org/stable/c/557114b52c1d73f45c603337ac3465bba6667e34"
                }
            ],
            "title": "nvme-rdma: fix NULL metadata_sgl dereference with T10-PI",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}