Database/Kernel, userspace & hypervisor
Linux kernel perf: closing a sigtrap event can hang the task freeing it
Impact
If a deferred signal for a sigtrap perf event has not been delivered by the time the event file is closed, _free_event() waits in rcuwait_wait_event() for a task work item that task_work_cancel() can no longer remove, and the closing task hangs. Two processes each holding a perf event on the other can deadlock symmetrically. On a GPU node the practical cost is a wedged, unkillable process - profiling and tracing agents are common on these fleets, and a stuck task holding event references is cleared by rebooting, which means draining the node and losing whatever long training job was resident. Local denial of service only; the record shows no privilege escalation or disclosure.
Who can reach it
Local user able to call perf_event_open() for itself or a target pid. Nodes with perf_event_paranoid locked down to 3 or with perf unavailable to tenants have no unprivileged trigger; where profiling is allowed in tenant containers, any tenant process can reach it.
What to do
Update to a kernel carrying the fix (the linked stable commits reintroduce an event refcount taken when the perf task work is queued) and reboot the node. Interim mitigation is to raise perf_event_paranoid so unprivileged tenants cannot open perf events. No vendor advisory beyond the kernel commits in the record.
References
Related entries
- Linux kernel (drivers/pci/hotplug): Removing nested PCIe hotplug ports can deadlock - a parent hotplug port holds theCVE-2025-37843 · 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
- Linux kernel (drivers/iommu): When IOMMU registration fails, the core tore down groups and default domains but leftCVE-2025-37877 · Linux kernel (drivers/iommu)Medium
- Linux kernel virtio: devices are not reset on shutdown, hanging kexec and poking guest memory after IOMMU teardownCVE-2025-38064 · Linux kernel virtio bus (device_shutdown path)Medium
- Linux kernel ice: failed Tx scheduler config during XDP attach leaves stale rings and crashes in NAPICVE-2025-38127 · Linux kernel ice driver (XDP program attach, Tx scheduler rollback)Medium
- Linux kernel (drivers/vfio/pci/hisilicon): The VFIO migration driver reassembled the device's event-queue DMA addressesCVE-2025-38158 · Linux kernel (drivers/vfio/pci/hisilicon)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.