Missing locking in Linux kernel nvmet port list updates
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
Linux kernel versions from 5.0 are affected. The nvmet NVMe target driver's writers for nvmet_ports_list, nvmet_ports_make() and nvmet_port_release(), do not hold nvmet_config_sem, even though readers require it, and nvmet_ports_make() publishes a port on the global list before its list heads are initialized, so a concurrent reader can traverse uninitialized list heads.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update the Linux kernel to 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or 7.4-rc1, the fixed version for each branch.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139158
- 2026-11-30 Alias added: GHSA-xjmc-j6w8-jqx5
References
Other 7
- https://git.kernel.org/stable/c/912aced00520607b058451ad05d2b42cd4041f7f
- https://git.kernel.org/stable/c/51f1e80959f2764d667308a8a1e94279ec8de3d6
- https://git.kernel.org/stable/c/b0675c06088677af4e3205da52de562b15f39a1c
- https://git.kernel.org/stable/c/e7334e114cf24c29d6299ed2b85357c4c70a9116
- https://git.kernel.org/stable/c/520b63e700b75c9d0ed2e9569324128107c1bc03
- https://git.kernel.org/stable/c/50d500af2b01e23405e91d862ed667c373921b34
- https://git.kernel.org/stable/c/cead6beb89256ae7145b65fbe8e8a5fedba4a47c
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139158 · CVE Program
- CVE-2026-139158 · NVD
- GHSA-xjmc-j6w8-jqx5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences