CVE-2026-64345
usb: gadget: f_printer: take kref only for successful open
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.5, 4.10, 4.15, 4.20, 5.5, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 4.4.241 · fixed in 4.5; From 4.9.241 · fixed in 4.10; From 4.14.203 · fixed in 4.15; From 4.19.154 · fixed in 4.20; From 5.4.73 · fixed in 5.5; From 5.8.17 · fixed in 5.9; From 5.9.2 · fixed in 5.10
- Linux Linux
5.10