Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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)

0
Medium
Published: 07/25/2026 (07/25/2026, 12:31:32 UTC)
Source: GCVE Database

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

AILast updated: 07/25/2026, 23:32:11 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses