{"id":"CVE-2026-139156","state":"PUBLISHED","title":"nvme-rdma: fix NULL metadata_sgl dereference with T10-PI","description":"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.","publishedAt":"2026-11-30T13:32:06.082Z","updatedAt":"2026-11-30T13:32:06.082Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2a8513091d2f0b9a1e94b1843c48c712e7c17301","status":"affected","lessThan":"3783c349a3de6a1d994b50b7a01402e682be1d87","versionType":"git"},{"version":"2a8513091d2f0b9a1e94b1843c48c712e7c17301","status":"affected","lessThan":"557114b52c1d73f45c603337ac3465bba6667e34","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/rdma.c"]}],"references":["https://git.kernel.org/stable/c/3783c349a3de6a1d994b50b7a01402e682be1d87","https://git.kernel.org/stable/c/557114b52c1d73f45c603337ac3465bba6667e34"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139156.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139156","state":"PUBLISHED","datePublished":"2026-11-30T13:32:06.082Z","dateUpdated":"2026-11-30T13:32:06.082Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.917Z"},"containers":{"cna":{"title":"nvme-rdma: fix NULL metadata_sgl dereference with T10-PI","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2a8513091d2f0b9a1e94b1843c48c712e7c17301","status":"affected","lessThan":"3783c349a3de6a1d994b50b7a01402e682be1d87","versionType":"git"},{"version":"2a8513091d2f0b9a1e94b1843c48c712e7c17301","status":"affected","lessThan":"557114b52c1d73f45c603337ac3465bba6667e34","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/rdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3783c349a3de6a1d994b50b7a01402e682be1d87"},{"url":"https://git.kernel.org/stable/c/557114b52c1d73f45c603337ac3465bba6667e34"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:06.082Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}