CVE-2026-139158
nvmet: protect nvmet_ports_list with nvmet_config_sem
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet: protect nvmet_ports_list with nvmet_config_sem Readers of nvmet_ports_list (e.g. nvmet_subsys_disc_changed()) hold nvmet_config_sem and assert it via lockdep. The writers -- nvmet_ports_make() and nvmet_port_release() -- do not take the lock; they rely on the parent directory's VFS inode lock for serialization, which is an implementation detail of configfs and not a guaranteed contract. Align the writers with the lock the readers already require. Also move list_add() in nvmet_ports_make() to after the port is fully initialized: the old position published the port on the global list before INIT_LIST_HEAD(&port->subsystems), so a concurrent reader could traverse uninitialized list heads. flush_workqueue() in nvmet_port_release() stays outside the semaphore to avoid a lock dependency on nvmet_wq.
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
- Ensure writers acquire nvmet_config_sem lock.
- Move list_add() after port initialization.
- Align writers with reader lock.
- Apply kernel updates.
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-139158.
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-139158 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-139158
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-139158 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139158 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: protect nvmet_ports_list with nvmet_config_sem Readers of nvmet_ports_list (e.g. nvmet_subsys_disc_changed()) hold nvmet_config_sem and assert it via lockdep. The writers -- nvmet_ports_make() and nvmet_port_release() -- do not take the lock; they rely on the parent directory's VFS inode lock for serialization, which is an implementation detail of configfs and not a guaranteed contract. Align the writers with the lock the readers already require. Also move list_add() in nvmet_ports_make() to after the port is fully initialized: the old position published the port on the global list before INIT_LIST_HEAD(&port->subsystems), so a concurrent reader could traverse uninitialized list heads. flush_workqueue() in nvmet_port_release() stays outside the semaphore to avoid a lock dependency on nvmet_wq. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139158.json">CVE-2026-139158</a> Added Reference https://git.kernel.org/stable/c/50d500af2b01e23405e91d862ed667c373921b34 Added Reference https://git.kernel.org/stable/c/51f1e80959f2764d667308a8a1e94279ec8de3d6 Added Reference https://git.kernel.org/stable/c/520b63e700b75c9d0ed2e9569324128107c1bc03 Added Reference https://git.kernel.org/stable/c/912aced00520607b058451ad05d2b42cd4041f7f Added Reference https://git.kernel.org/stable/c/b0675c06088677af4e3205da52de562b15f39a1c Added Reference https://git.kernel.org/stable/c/cead6beb89256ae7145b65fbe8e8a5fedba4a47c Added Reference https://git.kernel.org/stable/c/e7334e114cf24c29d6299ed2b85357c4c70a9116