What’s Vulnerable › Vulnerabilities

CVE-2026-64345: usb: gadget: f_printer: take kref only for successful open

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_printer: take kref only for successful open printer_open() returns -EBUSY when the character device is already open, but it increments dev->kref regardless of the return value. VFS does not call ->release() for a failed open, so every rejected second open permanently leaks one reference. Move kref_get() into the successful-open branch.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.5, 4.10, 4.15, 4.20; Linux 4.5, 4.10, 4.15, 4.20. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-64345 or the next vulnerability affects your stack