{"id":"CVE-2026-139154","summary":"nvmet: fix NULL dereference of PCI endpoint targets","details":"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-\u003esq 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-\u003esqs[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.","modified":"2026-12-01T21:02:36.619649457Z","published":"2026-11-30T13:32:04.834Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139154.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4a5ace11b5a367270bc86097d31c35cb61890a95"},{"type":"WEB","url":"https://git.kernel.org/stable/c/90a6757a81b7c55ee9c017bce2e58143af2f9adf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c081e3eb6bd80a66d00b15001a412e6ca9a2a763"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139154.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139154"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fa2e0f8bbc68908d14a97407bbbf8d8cccaf90a4"},{"fixed":"c081e3eb6bd80a66d00b15001a412e6ca9a2a763"},{"fixed":"90a6757a81b7c55ee9c017bce2e58143af2f9adf"},{"fixed":"4a5ace11b5a367270bc86097d31c35cb61890a95"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139154.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.15.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139154.json"}}],"schema_version":"1.9.2"}