AZL-117779: CVE-2026-142950 affecting package kernel 6.6.161.1-1

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

nvme: fix deadlock on nvmesubsystemslock in nvmeinitsubsystem()

Connecting a controller to a new subsystem deadlocks when sysfscreatelink() fails in nvmeinitsubsystem(), e.g., on an allocation failure. The error path drops the last subsystem reference with nvmesubsystemslock held and nvmedestroysubsystem() takes the same lock again:

nvme nvme0: failed to create sysfs link from subsystem. ============================================ WARNING: possible recursive locking detected ... nvmesubsys/95 is trying to acquire lock: (nvmesubsystemslock){+.+.}-{4:4}, at: nvmedestroysubsystem+0x1b/0x1e0

but task is already holding lock: (nvmesubsystemslock){+.+.}-{4:4}, at: nvmeinitidentify+0x81e/0x34b0 ... Call Trace: mutexlock+0x1a2/0x26e0 nvmedestroysubsystem+0x1b/0x1e0 nvmeinitidentify.cold+0x3bc/0x56f nvmeinitctrlfinish+0x1bc/0x7a0 nvmeloopconfigureadminqueue+0x205/0x2b0 nvmeloopcreatectrl+0x480/0xd10 nvmfdevwrite+0x365/0x650 vfswrite+0x1e3/0x1250 ksyswrite+0xfa/0x200 dosyscall64+0xfb/0x590 entrySYSCALL64afterhwframe+0x77/0x7f ... INFO: task nvmesubsys:95 blocked for more than 20 seconds. INFO: task nvmesubsys:95 is blocked on a mutex likely owned by task nvmesubsys:95.

Every later controller setup or removal then waits for the lock too. The nvmevalidatecntlid() error path for an existing subsystem does the same put, and deadlocks the same way if the other references go away in between.

Drop the lock before the put. For a new subsystem, take it off the list first so another controller can't find it in between. With the fix, the connect fails and the next connect works.

This bug was identified and confirmed with the help of a deterministic hypervisor currently under development. The C reproducer below however hits it within about 30s.

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In nvme_init_subsystem(), drop nvme_subsystems_lock before putting the last subsystem reference; for a new subsystem, remove it from the list first so another controller cannot find it in between.

Event History

Dec 3, 2026
Advisory Published
via OSV·10:17 AM
Data Sourced
via OSV·10:17 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What conditions are required to trigger the deadlock?

A controller must be connected to a new NVMe subsystem, and sysfs_create_link() must fail during nvme_init_subsystem(). The example identifies an allocation failure as a cause of that sysfs link creation failure.

2

What is the operational impact if the issue is triggered?

The error path drops the final subsystem reference while nvme_subsystems_lock is held, then nvme_destroy_subsystem() attempts to take that lock again. This causes recursive locking and can leave the nvmesubsys task blocked.

3

How can I identify whether a system has encountered this issue?

Kernel logs may report that NVMe failed to create a sysfs link from a subsystem, followed by a possible recursive locking warning involving nvme_subsystems_lock. A blocked nvmesubsys task and stack traces containing nvme_destroy_subsystem(), nvme_init_identify(), and sysfs link creation failure are also indicators.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203