Database/Kernel, userspace & hypervisor
Linux kernel (drivers/pci/hotplug): Removing nested PCIe hotplug ports can deadlock - a parent hotplug port holds the
Impact
Removing nested PCIe hotplug ports can deadlock - a parent hotplug port holds the global PCI rescan/remove lock while waiting for the child port's driver to unbind, and the child then blocks trying to take the same lock. Nothing breaks the cycle: PCI enumeration and removal are wedged host-wide from that point on, so no device can be added, removed or reprovisioned until the node reboots.
Who can reach it
Device-driven. The lock cycle lives in the nested hotplug removal path, which is the topology of any GPU or NVMe chassis where hotplug-capable downstream ports sit behind another hotplug port. The upstream commit only reduces the frequency - it removes a device-replacement check that fired on plain removal too, and notes a proper fix is still being worked on. The reported reproducer is device removal during system sleep with Thunderbolt, which does not apply to a server that never suspends; the underlying long-standing race does, and it needs no tenant privilege, just a removal event in a nested hotplug hierarchy.
What to do
Update to a kernel carrying the fix (no fixed_in published; stable commits below) understanding it narrows rather than closes the race. Interim: drain the node before any removal under a nested hotplug hierarchy, and avoid concurrent removals of parent and child hotplug ports.
References
Related entries
- Linux kernel (drivers/pci/hotplug): A surprise device removal freezes the PCI host bridge's partitionable endpoint andCVE-2025-38623 · Linux kernel (drivers/pci/hotplug)Medium
- Linux kernel (drivers/pci/hotplug): Unplugging the root of a nested PCIe bridge hierarchy leaks the IRQ resources theCVE-2025-38624 · Linux kernel (drivers/pci/hotplug)Medium
- Linux kernel (drivers/pci/hotplug): Powering off a physical function that still has child virtual functions drops theCVE-2025-37946 · Linux kernel (drivers/pci/hotplug)Medium
- Linux kernel (drivers/pci/hotplug): A power fault on a PCIe hotplug slot latches a sticky status bit that the hardirqCVE-2021-47617 · Linux kernel (drivers/pci/hotplug)Medium
- Linux kernel (drivers/pci/hotplug): The hotplug driver disables MSI/MSI-X during slot unregistration after the MSI dataCVE-2024-46761 · Linux kernel (drivers/pci/hotplug)Medium
- Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdkfd): A NULL pointer dereference in the amdkfd (KFD computeCVE-2025-37853 · Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdkfd)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.