{"id":"CVE-2026-139152","summary":"nvmet-tcp: don't read a removed port at Connect time","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-tcp: don't read a removed port at Connect time\n\nnvmet_tcp_alloc_cmd() takes the nvmet port of a command from\nqueue-\u003eport, and the commands of a queue are allocated from the io work\nwhen the Connect arrives. nvmet_tcp_remove_port() shuts down the queues\nthat have no controller yet and frees the port without waiting for\nthem, they're released later from a work. An io work handling a Connect\nat that moment reads the freed port for every command of the queue and\nhands the result to the core.\n\nNote the nvmet port in the queue at allocation. It outlives the\ntransport port.","modified":"2026-11-30T15:02:27.236536475Z","published":"2026-11-30T13:32:03.651Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139152.json","cna_assigner":"Linux"},"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/1f32cb887fa06de515ca7844195ccde137f1bc9a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/23e3b95e11332ae0a0f16c38be566d0f1300ad05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2e944e2bedf124b13d3eca1daf56491d8c1ffc28"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2fdee6626c636690c9803cd44f94daa7546f3a2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3f98ce65a87979e881343dcf082c9595ec90ddc7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9a7ad8e2d260ddaa16d06bc7131e56b202b15809"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c00bba2bc0c7c9a182ab18541afab0bc7e83c191"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e4374587278f09fb3fdfc0137911ab36a08df3bd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139152.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139152"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"872d26a391da92ed8f0c0f5cb5fef428067b7f30"},{"fixed":"2fdee6626c636690c9803cd44f94daa7546f3a2d"},{"fixed":"c00bba2bc0c7c9a182ab18541afab0bc7e83c191"},{"fixed":"2e944e2bedf124b13d3eca1daf56491d8c1ffc28"},{"fixed":"9a7ad8e2d260ddaa16d06bc7131e56b202b15809"},{"fixed":"e4374587278f09fb3fdfc0137911ab36a08df3bd"},{"fixed":"1f32cb887fa06de515ca7844195ccde137f1bc9a"},{"fixed":"23e3b95e11332ae0a0f16c38be566d0f1300ad05"},{"fixed":"3f98ce65a87979e881343dcf082c9595ec90ddc7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139152.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.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-139152.json"}}],"schema_version":"1.9.2"}