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

Published Jul 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: fprinter: take kref only for successful open

printeropen() 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 krefget() into the successful-open branch.

Affected Software

14 affected components
Linux Kernel
Linux Linux kernel>=4.4.241<4.5
Linux Linux kernel>=4.9.241<4.10
Linux Linux kernel>=4.14.203<4.15
Linux Linux kernel>=4.19.154<4.20
Linux Linux kernel>=5.4.73<5.5
Linux Linux kernel>=5.8.17<5.9
Linux Linux kernel>=5.9.2<5.10.261
Linux Linux kernel>=5.11<6.6.145
Linux Linux kernel>=6.7<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.4
Linux Linux kernel=7.2-rc1
Linux Linux kernel=7.2-rc2

Event History

Jul 25, 2026
CVE Published
via MITRE·08:50 AM
Data Sourced
via MITRE·08:50 AM
Description
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required to trigger the reference leak?

An attacker or local process needs permission to open the f_printer character device and must attempt an additional open while that device is already open. Each rejected open returns -EBUSY but leaks one device reference.

2

What is the practical impact of repeated failed opens?

Repeated rejected opens permanently increase the device reference count because VFS does not invoke the release handler after a failed open. This can cause a local denial of service through resource exhaustion, reflected by the availability-only CVSS impact.

3

How can I tell whether a system is vulnerable?

The affected behavior is present when printer_open() increments dev->kref even when the open operation fails because the printer character device is already open. Review the kernel source or applied patch state to confirm that kref_get() is performed only in the successful-open branch.

4

What should be done if patching cannot happen immediately?

Limit access to the f_printer character device so untrusted local users or processes cannot repeatedly issue concurrent open requests. The provided remediation is to apply an available patch.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203