{"id":"CVE-2026-139156","summary":"nvme-rdma: fix NULL metadata_sgl dereference with T10-PI","details":"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-\u003emetadata_sgl if\nqueue-\u003epi_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.","modified":"2026-12-01T07:00:34.163756526Z","published":"2026-11-30T13:32:06.082Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139156.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3783c349a3de6a1d994b50b7a01402e682be1d87"},{"type":"WEB","url":"https://git.kernel.org/stable/c/557114b52c1d73f45c603337ac3465bba6667e34"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139156.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139156"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2a8513091d2f0b9a1e94b1843c48c712e7c17301"},{"fixed":"3783c349a3de6a1d994b50b7a01402e682be1d87"},{"fixed":"557114b52c1d73f45c603337ac3465bba6667e34"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139156.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.3.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139156.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}