Database/Kernel, userspace & hypervisor
Linux kernel nvme-pci: reset racing controller disable passes bad queue counts to blk-mq
Impact
nvme_pci_update_nr_queues() reads dev->online_queues without holding shutdown_lock, so a controller reset running concurrently with nvme_dev_disable() can hand invalid hardware queue counts to blk_mq_update_nr_hw_queues(). The reported symptom is a WARN out of pci_irq_get_affinity() on the nvme-reset workqueue, with the block layer remapping queues against state that is being torn down underneath it. GPU nodes lean on local NVMe for dataset caches and checkpoint scratch, and this fires during exactly the events an operator cannot avoid - controller resets, surprise removal, a drive going unhealthy - so a flapping NVMe device can leave the storage stack on that node in a state that needs a reboot rather than a retry.
Who can reach it
Local and administrative. It requires a concurrent NVMe controller reset and disable/shutdown on the same device - hotplug, device error recovery or shutdown - not any action available to a tenant workload.
What to do
Patch the kernel to a stable release containing the linked fix, which takes shutdown_lock and bails out if nvme_dev_disable() has run, then reboot each node. No mitigation short of avoiding NVMe resets, which is not something an operator controls. The record lists stable commits with no named fixed version.
References
Related entries
- Linux kernel (drivers/iommu): Removing a device from the per-IOMMU page-fault queue responds to outstanding faults butCVE-2025-21770 · Linux kernel (drivers/iommu)Medium
- Linux kernel (drivers/pci/controller): The Intel VMD driver guarded config-space access with a lock type that becomes aCVE-2025-23161 · Linux kernel (drivers/pci/controller)Medium
- Linux kernel (ksmbd): Use-after-free in ksmbd session logoff (found by an LLM-assisted audit)CVE-2025-37899 · Linux kernel (ksmbd)Medium
- Linux kernel RT scheduler: push_rt_task race corrupts runqueue state and panics the hostCVE-2025-38234 · Linux kernel sched/rt (push_rt_task vs wakeup migration race)Medium
- Linux kernel smaps: unlocked hugetlb PTE read races migration and hits BUG_ONCVE-2025-39754 · Linux kernel mm/smaps (smaps_hugetlb_range vs page migration)Medium
- SSSD: race between autofs enumeration and map invalidation leaks memory until the responder diesCVE-2026-104045 · SSSD (autofs responder)Medium
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.