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)
A vulnerability in the Linux kernel's USB gadget printer function (f_printer) was resolved. The issue involved the printer_open() function incrementing a reference count (kref) even when the open operation failed with -EBUSY, causing a permanent reference leak. This leak occurs because the virtual file system (VFS) does not call the release function on failed opens, leading to resource leakage. The fix moves the reference increment to only occur on successful opens.
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
A vulnerability in the Linux kernel's USB gadget printer function (f_printer) was resolved. The issue involved the printer_open() function incrementing a reference count (kref) even when the open operation failed with -EBUSY, causing a permanent reference leak. This leak occurs because the virtual file system (VFS) does not call the release function on failed opens, leading to resource leakage. The fix moves the reference increment to only occur on successful opens.
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: 07/26/2026, 03:59:36 UTC
Views: 4
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.