Junglewise Threat Intelligence

CVE-2026-64465: Linux Kernel sleep in atomic context in xhci_free_streams

CVE-2026-64465 · Severity: info · Published 2026-07-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's USB driver (xHCI) that could cause a system crash (kernel panic) when a USB device with active data streams is disconnected. The issue occurs because the system incorrectly attempts to perform a memory cleanup task that requires 'sleeping' while it is in a restricted 'atomic' state where sleeping is forbidden. This results in a system bug check, potentially leading to a denial of service for the affected machine.

Technical details

The vulnerability is a 'sleep in atomic context' bug within the xhci_free_streams() function in drivers/usb/host/xhci.c. When a USB device with active stream endpoints is disconnected, the hub_event workqueue calls xhci_free_streams(), which invokes xhci_free_stream_info() while holding the xhci->lock with interrupts disabled. This function eventually calls dma_free_coherent(), which may sleep (e.g., via vunmap). Calling a sleeping function while holding a spinlock triggers a kernel BUG. The fix involves refactoring the code to clear endpoint references under the lock but deferring the actual memory deallocation until after the lock is released.

Affected products

  • Linux Linux Kernel 8df75f42f8e6 to 42c37c4b75d3

Timeline

  • 2026-07-03: disclosed: Patch submitted by Lianqin Hu
  • 2026-07-24: patched: Committed to stable tree by Greg Kroah-Hartman
  • 2026-07-25: advisory: NVD publication date

References

Related threats