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: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, the printer_open() function incorrectly increments the device reference counter dev->kref even when it returns an error, causing a persistent reference counter leak each time a second open attempt fails. This flaw can lead to a gradual accumulation of unreleased references, which may degrade kernel resource reliability. The weakness is identified as a reference count leak (CWE‑911).

Affected Systems

The vulnerability affects all Linux kernel versions that include the f_printer gadget before the commit that moves kref_get() into the successful‑open path. The CNA lists the Linux kernel product with no specific version constraints beyond the presence of f_printer, including early release candidates of kernel 7.2.

Risk and Exploitability

The CVSS score of 5.5 indicates medium severity, and the EPSS score is less than 1 %, implying a very low likelihood of exploitation. It is not listed in the CISA KEV catalog. Based on the description, it is inferred that a local attacker who can repeatedly open the /dev/usb‑ff‑printer device after an initial successful open could accumulate unreleased references, potentially leading to kernel resource exhaustion.

Generated by OpenCVE AI on September 3, 2026 at 21:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch moving kref_get() into the successful‑open branch.
  • Disable or restrict the f_printer gadget if it is not required, limiting access to the /dev/usb‑ff‑printer device to trusted users.
  • Monitor kernel logs and system metrics for unexpected open failures and enforce limits to prevent unreleased reference accumulation.

Generated by OpenCVE AI on September 3, 2026 at 21:01 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

Thu, 03 Sep 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.2:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.2:rc2:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


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-08-17T04:53:49.464Z

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

Link: CVE-2026-64345

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

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

Modified: 2026-09-03T16:01:24.487

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-09-03T21:15:04Z

Weaknesses