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.
Published: 2026-07-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The f_printer USB gadget in the Linux kernel increments the device reference counter even when an open attempt fails, leaking a reference each time. The erroneous increment is not paired with a corresponding decrement, allowing cumulative resource loss at the kernel level. This flaw can eventually exhaust kernel memory or destabilize the system, effectively creating a denial‑of‑service condition. The weakness corresponds to a reference count or handle leakage identified in CWE-911.

Affected Systems

The vulnerability affects all Linux kernel implementations that include the unpatched f_printer subsystem. No specific version constraints are listed in the CNA data, indicating that every kernel built with the default f_printer gadget before the commit that moves kref_get() into the success path is potentially exposed.

Risk and Exploitability

The EPSS score is less than 1% and the vulnerability is not listed in CISA KEV, suggesting a low overall exploitation probability. The likely attack vector is local, as an attacker needs to repeatedly open the /dev/usb-ff-printer node after it has been successfully opened once. Each failed open dissipates an unreleased reference, slowly draining kernel resources. Exploitation requires sustained interaction or a scenario where the target system is saturated with open attempts, which can be mitigated by limiting device access or disabling the gadget altogether.

Generated by OpenCVE AI on August 4, 2026 at 14:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the system to a Linux kernel that incorporates the patch moving kref_get() into the successful‑open branch.
  • Disable the f_printer gadget if it is not required, or restrict access to the /dev/usb-ff-printer node to trusted users only.
  • Monitor kernel logs for repeated open failures and enforce system limits to prevent resource exhaustion.

Generated by OpenCVE AI on August 4, 2026 at 14:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4717-1 linux security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Mon, 03 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-673

Wed, 29 Jul 2026 12:15:00 +0000


Mon, 27 Jul 2026 06:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-673

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
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.
Title usb: gadget: f_printer: take kref only for successful open
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:50:07.069Z

Reserved: 2026-07-19T15:36:31.781Z

Link: CVE-2026-64345

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:16.623

Modified: 2026-08-11T15:00:57.447

Link: CVE-2026-64345

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64345 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T14:45:03Z

Weaknesses
  • CWE-911

    Improper Update of Reference Count