CVE-2026-139156
published high CVSS 3.1 · 7.5nvme-rdma: fix NULL metadata_sgl dereference with T10-PI
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux2a8513091d2f0b9a1e94b1843c48c712e7c17301 to < 3783c349a3de6a1d994b50b7a01402e682be1d87 · 2a8513091d2f0b9a1e94b1843c48c712e7c17301 to < 557114b52c1d73f45c603337ac3465bba6667e34 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.3 (affected) · 0 to < 7.3 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: nvme-rdma: fix NULL metadata_sgl dereference with T10-PI Since commit 2a8513091d2f ("nvme-rdma: parallelize I/O queue allocation and startup") the I/O tag set is allocated before the I/O queues. nvme_rdma_init_request() only sets req->metadata_sgl if queue->pi_support is set, but pi_support is only set later by nvme_rdma_alloc_queue(), so every I/O request is left with a NULL metadata_sgl. With an RDMA device that supports integrity and a namespace formatted with protection information, nvme_rdma_dma_map_req() then dereferences the NULL pointer on the first integrity I/O, already during the namespace scan when there is more than one I/O queue. Queues that a later reconnect adds for the first time have the same problem. Check queue_idx and the controller's max_integrity_segments instead, which is what nvme_rdma_alloc_queue() derives pi_support from.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 2a8513091d2f0b9a1e94b1843c48c712e7c17301 to < 3783c349a3de6a1d994b50b7a01402e682be1d87 (affected · git)2a8513091d2f0b9a1e94b1843c48c712e7c17301 to < 557114b52c1d73f45c603337ac3465bba6667e34 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.3 (affected)0 to < 7.3 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
nvme-rdma: fix NULL metadata_sgl dereference with T10-PI
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- da262ad8d3eed74f46a9338c273ec38e4f0289acdf87fb1a6c9ae7fe9f582b25
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record