CVE-2026-143288: nvme-loop: delete the controller if a reset fails
In the Linux kernel, the following vulnerability has been resolved:
nvme-loop: delete the controller if a reset fails
If the reconnect of a reset fails, nvmeloopresetctrlwork() tears the controller down by hand with nvmeuninitctrl(). Since that was split from nvmestopctrl() it no longer removes the namespaces, which hold references to the controller. A reset while the target no longer accepts the host (allowanyhost 0) is enough to get there: a sysfs reset hangs in kernfsdrain(), an ioctl reset leaves a controller stuck in CONNECTING with its block devices, the cntlid can't be reused, and module unload deletes the controller a second time and hits a use-after-free.
Do what the other fabrics drivers do and call nvmedeletectrl(). The delete path quiesces the admin queue and only unquiesces it if the queue is live, which it isn't after a failed reset, so unquiesce it unconditionally before destroying it so a stuck request can't block the freeze.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
What conditions are required to trigger the failure?
The issue can be reached when an NVMe loop controller is reset and its reconnect attempt fails. One described trigger is a target that no longer accepts the host while allow_any_host is set to 0.
What operational symptoms indicate a controller may be affected?
A sysfs-initiated reset can hang in kernfs_drain(). An ioctl-initiated reset can leave the controller stuck in CONNECTING while its block devices remain present, and the controller ID cannot be reused.
What is the risk if the affected controller is later unloaded?
Module unload can attempt to delete the controller a second time and trigger a use-after-free. The underlying problem is that namespaces retain references to a controller that was torn down without removing them.