{"id":"CVE-2026-139154","state":"PUBLISHED","title":"nvmet: fix NULL dereference of PCI endpoint targets","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix NULL dereference of PCI endpoint targets\n\nnvmet_pci_epf_create_ctrl() calls nvmet_alloc_ctrl() without a queue,\nthe admin queue comes later from the host. nvmet_alloc_ctrl() passes\nargs->sq to nvmet_queue_tls_keyid(), which with\nCONFIG_NVME_TARGET_TCP_TLS dereferences it, so every PCI endpoint\ncontroller creation crashes on such a kernel. The debugfs tls_key file\npasses ctrl->sqs[0] to the same function, which is NULL until the admin\nqueue exists and again once a fabrics host has closed it while keeping\nan I/O queue.\n\nA queue that isn't there has no TLS key.","publishedAt":"2026-11-30T13:32:04.834Z","updatedAt":"2026-11-30T13:32:04.834Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fa2e0f8bbc68908d14a97407bbbf8d8cccaf90a4","status":"affected","lessThan":"c081e3eb6bd80a66d00b15001a412e6ca9a2a763","versionType":"git"},{"version":"fa2e0f8bbc68908d14a97407bbbf8d8cccaf90a4","status":"affected","lessThan":"90a6757a81b7c55ee9c017bce2e58143af2f9adf","versionType":"git"},{"version":"fa2e0f8bbc68908d14a97407bbbf8d8cccaf90a4","status":"affected","lessThan":"4a5ace11b5a367270bc86097d31c35cb61890a95","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/nvmet.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","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/target/nvmet.h"]}],"references":["https://git.kernel.org/stable/c/c081e3eb6bd80a66d00b15001a412e6ca9a2a763","https://git.kernel.org/stable/c/90a6757a81b7c55ee9c017bce2e58143af2f9adf","https://git.kernel.org/stable/c/4a5ace11b5a367270bc86097d31c35cb61890a95"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139154.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139154","state":"PUBLISHED","datePublished":"2026-11-30T13:32:04.834Z","dateUpdated":"2026-11-30T13:32:04.834Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.917Z"},"containers":{"cna":{"title":"nvmet: fix NULL dereference of PCI endpoint targets","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix NULL dereference of PCI endpoint targets\n\nnvmet_pci_epf_create_ctrl() calls nvmet_alloc_ctrl() without a queue,\nthe admin queue comes later from the host. nvmet_alloc_ctrl() passes\nargs->sq to nvmet_queue_tls_keyid(), which with\nCONFIG_NVME_TARGET_TCP_TLS dereferences it, so every PCI endpoint\ncontroller creation crashes on such a kernel. The debugfs tls_key file\npasses ctrl->sqs[0] to the same function, which is NULL until the admin\nqueue exists and again once a fabrics host has closed it while keeping\nan I/O queue.\n\nA queue that isn't there has no TLS key."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fa2e0f8bbc68908d14a97407bbbf8d8cccaf90a4","status":"affected","lessThan":"c081e3eb6bd80a66d00b15001a412e6ca9a2a763","versionType":"git"},{"version":"fa2e0f8bbc68908d14a97407bbbf8d8cccaf90a4","status":"affected","lessThan":"90a6757a81b7c55ee9c017bce2e58143af2f9adf","versionType":"git"},{"version":"fa2e0f8bbc68908d14a97407bbbf8d8cccaf90a4","status":"affected","lessThan":"4a5ace11b5a367270bc86097d31c35cb61890a95","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/nvmet.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","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/target/nvmet.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/c081e3eb6bd80a66d00b15001a412e6ca9a2a763"},{"url":"https://git.kernel.org/stable/c/90a6757a81b7c55ee9c017bce2e58143af2f9adf"},{"url":"https://git.kernel.org/stable/c/4a5ace11b5a367270bc86097d31c35cb61890a95"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:04.834Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}