# CVE-2026-139156: nvme-rdma: fix NULL metadata_sgl dereference with T10-PI

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:06.082Z
- Modified: 2026-12-01T06:17:38.057Z
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2a8513091d2f0b9a1e94b1843c48c712e7c17301 before 3783c349a3de6a1d994b50b7a01402e682be1d87; from 2a8513091d2f0b9a1e94b1843c48c712e7c17301 before 557114b52c1d73f45c603337ac3465bba6667e34; 7.3 (not affected: before 7.3; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/3783c349a3de6a1d994b50b7a01402e682be1d87>
- <https://git.kernel.org/stable/c/557114b52c1d73f45c603337ac3465bba6667e34>

## Sources

- CVE List: [CVE-2026-139156](https://www.cve.org/CVERecord?id=CVE-2026-139156), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139156](https://nvd.nist.gov/vuln/detail/CVE-2026-139156), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139156 · Whole record: https://cve.day/CVE-2026-139156.json · Rebuilt by cve.day 2026-12-01T06:32:17.115Z
