Junglewise Threat Intelligence

CVE-2026-64340: Linux Kernel use-after-free in LEGO USB Tower driver

CVE-2026-64340 · Severity: info · CVSS 4.6 · Published 2026-07-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's LEGO USB Tower driver. This issue occurs when a device is disconnected while being accessed by the system, potentially causing the operating system to crash or behave unpredictably. This primarily affects systems using specific legacy LEGO USB hardware interfaces.

Technical details

A use-after-free vulnerability exists in drivers/usb/misc/legousbtower.c due to a race condition between the release() and disconnect() functions. The root cause is the use of mutex_unlock() to manage the lifetime of driver data objects; because mutex_unlock() is non-atomic and may access the mutex structure after releasing the lock, it cannot safely be used when the underlying object might be freed by a racing thread. An attacker with physical access could trigger this by disconnecting the USB device while a process is closing the device file. The fix introduces kref reference counting to ensure the driver data is only freed after all references, including the one held during the mutex operation, are released.

Affected products

  • Linux Linux Kernel 2.6.25 to 6.9.x

Timeline

  • 2026-06-22: patched: Initial fix authored by Johan Hovold
  • 2026-07-25: disclosed: CVE-2026-64340 published

References

Related threats