Bug 2507224 (CVE-2026-64345) - CVE-2026-64345 kernel: usb: gadget: f_printer: take kref only for successful open
Summary: CVE-2026-64345 kernel: usb: gadget: f_printer: take kref only for successful ...
Keywords:
Status: NEW
Alias: CVE-2026-64345
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-25 10:11 UTC by OSIDB Bzimport
Modified: 2026-07-29 09:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-25 10:11:34 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.