Executive summary
CVE-2026-142950 addresses a deadlock in the Linux kernel's NVMe driver that can be reached while establishing an NVMe-over-Fabrics connection. The defect occurs when subsystem initialization encounters an error while creating a sysfs link, including an allocation failure. Instead of failing cleanly, the error path can leave the subsystem reference count and global NVMe subsystem mutex in an inconsistent state, producing a self-deadlock.
The practical consequence is denial of service against NVMe controller initialization and removal. A blocked nvmesubsys thread can prevent later controller operations from completing because they wait on the same nvme_subsystems_lock. The supplied advisory says a C reproducer can trigger the issue within about 30 seconds, although the reproducer itself is not included in the provided sources.
The issue was confirmed with a deterministic hypervisor, and an upstream fix is described. However, the supplied material does not identify a fixed kernel release, stable-branch version, distribution package, or commit identifier. It also provides no CVSS vector, no CISA KEV listing, and no evidence of exploitation in the wild.
Affected systems
CVE-2026-142950 affects Linux systems that use the affected NVMe host-driver code and are able to initiate NVMe-over-Fabrics controller connections. The documented call path reaches the vulnerable subsystem initialization through the NVMe fabrics character-device write operation:
nvmf_dev_write → vfs_write → ksys_write → nvme_loop_create_ctrl → nvme_loop_configure_admin_queue → nvme_init_ctrl_finish → nvme_init_identify / nvme_init_subsystem.
The primary vulnerable functions identified in the advisory are:
nvme_init_subsystem(), where a failure to create a sysfs link can trigger the recursive locking condition.
nvme_validate_cntlid(), which contains a related error path for an existing subsystem whose references may be released concurrently.
nvme_destroy_subsystem(), which attempts to acquirenvme_subsystems_lockwhile the same lock is already held by the blocked task.
The provided sources do not enumerate affected upstream versions, Linux stable or LTS branches, or vendor-specific kernel packages. Deployment should therefore be assessed by examining the relevant upstream and downstream kernel changes rather than assuming a particular distribution version is affected.
Technical analysis
The vulnerability is a lock-ordering and lifetime-management flaw involving the global nvme_subsystems_lock mutex. During NVMe subsystem initialization, the kernel may create a sysfs link for a newly discovered subsystem. If sysfs_create_link() fails—for example, because an allocation fails—the error path drops the last subsystem reference while still holding nvme_subsystems_lock.
That reference drop can invoke nvme_destroy_subsystem(). The destruction routine then attempts to acquire nvme_subsystems_lock, but the current task already owns it. Linux lock validation detects the recursive acquisition and emits a warning similar to:
WARNING: possible recursive locking detected ... nvmesubsys/95 is trying to acquire lock: (nvme_subsystems_lock)
The supplied trace places the first acquisition in nvme_init_identify and the attempted recursive acquisition in nvme_destroy_subsystem. The task remains blocked, and the advisory reports that later controller setup and removal operations also wait for the lock. This broadens the impact beyond a single failed connection: the NVMe subsystem list can remain stalled for other operations as well.
A second route exists in nvme_validate_cntlid(). When an existing subsystem is found, a related error path can drop a reference after another reference disappears. The same recursive-lock condition can result.
The upstream remediation has two important parts:
- Release
nvme_subsystems_lockbefore dropping the subsystem reference.
- For a new subsystem, remove it from the list before releasing the reference so another controller cannot locate it during the transition.
With this correction, a connection that encounters the initialization error fails without permanently poisoning the subsystem list, allowing a later connection to proceed normally.
Exploitability and impact assessment
The documented trigger is local. The reproducer uses a write operation through the NVMe fabrics device interface, with a C reproducer reportedly reaching the condition within about 30 seconds. The sources do not describe a remote, unauthenticated, or network-only trigger.
The primary impact is local availability loss:
- The initiating NVMe operation can block indefinitely.
- Subsequent controller setup or removal can also block on
nvme_subsystems_lock.
- Recovery may require intervention or a reboot on an unpatched kernel.
There is no evidence in the supplied material of privilege escalation, memory disclosure, data corruption, code execution, CISA KEV inclusion, or exploitation in the wild. The advisory's reference to a C reproducer lowers the barrier to technical reproduction, but the specific reproducer is absent from the provided context, so its prerequisites and exact behavior cannot be independently described here.
Mitigation
The primary mitigation is to apply the upstream Linux kernel correction and any corresponding backport supplied by the operating-system vendor. The advisory states that the fix drops the lock before the reference is put and removes a new subsystem from the list before the final reference is released. Because no fixed version or commit is provided in the supplied sources, administrators should consult the vendor's kernel package guidance and upstream history for the change involving nvme_init_subsystem() and nvme_validate_cntlid().
Before a patch is available, the affected NVMe fabrics write interface should be restricted to appropriately privileged, controlled administrative paths. In particular, automation that repeatedly creates or tears down NVMe-over-Fabrics connections should account for the possibility that a failed connection can leave later operations blocked. Maintaining sufficient memory and reducing avoidable allocation pressure may make the sysfs_create_link() failure less likely, but this does not eliminate the underlying flaw.
Organizations can monitor kernel logs for the following indicators:
possible recursive locking detected
failed to create sysfs link from subsystem
nvmesubsystems_lock
nvme_destroy_subsystem
nvme_init_identify
- Hung-task reports identifying
nvmesubsys
The appearance of the sysfs-link failure followed by recursive locking and a stalled nvmesubsys task is a strong diagnostic sequence. Operationally affected systems should follow the vendor's recovery guidance; because no recovery procedure is specified in the supplied context, the operational impact of a reboot should be evaluated before it is used.
Expert insight
This vulnerability illustrates how a seemingly small error-path mistake can create a system-wide coordination failure inside the kernel. The defect is not an abstract lock inversion between unrelated components; it is a recursive acquisition by the same task, triggered when reference destruction re-enters code that expects the mutex to be available. Once the nvmesubsys task blocks while holding the global mutex, unrelated NVMe lifecycle operations inherit the stall.
The fix also addresses a subtle race involving subsystem-list membership. Simply dropping the lock before the final reference release could allow another controller to discover the subsystem while it is being destroyed. Removing a newly created subsystem from the list first closes that window, making the corrected error path both deadlock-free and resistant to concurrent rediscovery.
The real-world severity remains limited by the local trigger and availability-only consequences, but deterministic reproduction raises operational relevance for systems that automate NVMe fabrics connections. On unpatched systems, memory-pressure conditions and aggressive connection churn are the clearest environmental risk factors.
منابع
- nvd.nist.gov/vuln/detail/CVE-2026-142950
- git.kernel.org/stable/c/4ef5a909c2bc166c971d3cc53374367a57e2c6e8
- git.kernel.org/stable/c/766d91e46033b65931fe1c83c3e4ddf9dee89a5a
- git.kernel.org/stable/c/80f7f642a7bf38d65030aa0184f7deacfcd58d47
- git.kernel.org/stable/c/8684fcb836ab3df327b3d59cca8e570aa6bf3e08
- git.kernel.org/stable/c/ba1213be15c613a1c03db69ea6480ca140a6ca00
- git.kernel.org/stable/c/eada1e958642a56160d4634516e7fe8410d80757