CVE-2026-139152
nvmet-tcp: don't read a removed port at Connect time
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: don't read a removed port at Connect time nvmet_tcp_alloc_cmd() takes the nvmet port of a command from queue->port, and the commands of a queue are allocated from the io work when the Connect arrives. nvmet_tcp_remove_port() shuts down the queues that have no controller yet and frees the port without waiting for them, they're released later from a work. An io work handling a Connect at that moment reads the freed port for every command of the queue and hands the result to the core. Note the nvmet port in the queue at allocation. It outlives the transport port.
INFO
Published Date :
Nov. 30, 2026, 2:18 p.m.
Last Modified :
Nov. 30, 2026, 2:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to the latest stable version.
- Apply the specific patch for the nvmet-tcp race condition.
- Ensure ports are handled correctly during connection setup.
- Verify all outstanding commands complete before port removal.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-139152.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-139152 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-139152
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-139152 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139152 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: don't read a removed port at Connect time nvmet_tcp_alloc_cmd() takes the nvmet port of a command from queue->port, and the commands of a queue are allocated from the io work when the Connect arrives. nvmet_tcp_remove_port() shuts down the queues that have no controller yet and frees the port without waiting for them, they're released later from a work. An io work handling a Connect at that moment reads the freed port for every command of the queue and hands the result to the core. Note the nvmet port in the queue at allocation. It outlives the transport port. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139152.json">CVE-2026-139152</a> Added Reference https://git.kernel.org/stable/c/1f32cb887fa06de515ca7844195ccde137f1bc9a Added Reference https://git.kernel.org/stable/c/23e3b95e11332ae0a0f16c38be566d0f1300ad05 Added Reference https://git.kernel.org/stable/c/2e944e2bedf124b13d3eca1daf56491d8c1ffc28 Added Reference https://git.kernel.org/stable/c/2fdee6626c636690c9803cd44f94daa7546f3a2d Added Reference https://git.kernel.org/stable/c/3f98ce65a87979e881343dcf082c9595ec90ddc7 Added Reference https://git.kernel.org/stable/c/9a7ad8e2d260ddaa16d06bc7131e56b202b15809 Added Reference https://git.kernel.org/stable/c/c00bba2bc0c7c9a182ab18541afab0bc7e83c191 Added Reference https://git.kernel.org/stable/c/e4374587278f09fb3fdfc0137911ab36a08df3bd