Junglewise Threat Intelligence

CVE-2026-64345: Linux Kernel memory leak in USB printer gadget driver

CVE-2026-64345 · Severity: info · CVSS 2.1 · Published 2026-07-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's USB printer gadget driver could allow a local user to cause a memory leak. By repeatedly attempting to open a device that is already in use, an attacker can exhaust system resources over time. This could eventually lead to system instability or a denial-of-service condition.

Technical details

A reference count leak exists in the 'printer_open' function within 'drivers/usb/gadget/function/f_printer.c'. The function increments the 'dev->kref' reference counter before checking if the device is already busy. If the device is busy, it returns -EBUSY, but because the VFS layer does not call the release function for failed opens, the reference is never decremented. A local attacker can exploit this by repeatedly attempting to open an already-open printer gadget device, leading to a permanent kernel memory leak. The issue has been resolved by moving the 'kref_get' call into the successful-open code path.

Affected products

  • Linux Linux Kernel 4.4.241, 4.9.241, 4.14.203, 4.19.154, and others prior to 6.10.y/6.11.y stable updates

Timeline

  • 2026-06-26: other: Initial patch authored
  • 2026-07-08: patched: Patch committed to stable tree
  • 2026-07-25: disclosed: CVE published

References