In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_printer: take kref only for successful open printer_open()… (CVE-2026-64345)
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.
AI Analysis
Technical Summary
The Linux kernel's usb gadget printer function (f_printer) had a flaw where printer_open() would increment the device's reference count (kref) regardless of whether the open succeeded or failed. Specifically, when printer_open() returned -EBUSY indicating the device was already open, it still incremented dev->kref. Since VFS does not call the release method on failed opens, this caused a permanent leak of one reference per rejected open attempt. The vulnerability was fixed by moving the kref_get() call into the branch that executes only on successful opens, preventing the reference leak.
Potential Impact
The vulnerability causes a permanent reference count leak in the kernel when multiple open attempts are rejected. This can lead to resource exhaustion in the kernel over time, potentially degrading system stability or causing denial of service due to leaked references. There is no indication of code execution or privilege escalation from this issue.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this issue by adjusting the reference counting logic in printer_open(). Users should apply the official kernel updates that include this fix once available. Patch status is not yet confirmed from the vendor advisory; check the Linux kernel mailing lists or vendor advisories for the current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_printer: take kref only for successful open printer_open()… (CVE-2026-64345)
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's usb gadget printer function (f_printer) had a flaw where printer_open() would increment the device's reference count (kref) regardless of whether the open succeeded or failed. Specifically, when printer_open() returned -EBUSY indicating the device was already open, it still incremented dev->kref. Since VFS does not call the release method on failed opens, this caused a permanent leak of one reference per rejected open attempt. The vulnerability was fixed by moving the kref_get() call into the branch that executes only on successful opens, preventing the reference leak.
Potential Impact
The vulnerability causes a permanent reference count leak in the kernel when multiple open attempts are rejected. This can lead to resource exhaustion in the kernel over time, potentially degrading system stability or causing denial of service due to leaked references. There is no indication of code execution or privilege escalation from this issue.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this issue by adjusting the reference counting logic in printer_open(). Users should apply the official kernel updates that include this fix once available. Patch status is not yet confirmed from the vendor advisory; check the Linux kernel mailing lists or vendor advisories for the current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-j7g9-89xm-vfhf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64345"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a65420c9c2644c7f8085061
Added to database: 07/25/2026, 23:09:00 UTC
Last enriched: 07/25/2026, 23:32:11 UTC
Last updated: 09/07/2026, 10:52:10 UTC
Views: 39
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.