usb: gadget: f_printer: take kref only for successful open (Linux Linux)

CVE-2026-64345
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.12 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected e8d5f92b8d30bb4ade76494490c3c065e12411b1 < 94ec20d97aa51547965a539f660a1fe79c6929a3 ; affected e8d5f92b8d30bb4ade76494490c3c065e12411b1 < a12d81a9cc2a012a24ecb7f9ba076b9f7c179bd3 ; affected e8d5f92b8d30bb4ade76494490c3c065e12411b1 < 75c0ad13e136961328253742501b4efc3988a587 ; affected e8d5f92b8d30bb4ade76494490c3c065e12411b1 < bf20c94fa6aaff945f0ae3a23f3212cd299f28d9 ; affected e8d5f92b8d30bb4ade76494490c3c065e12411b1 < 8a5eba992c862b0c94411eecf9b7121e8636db38 ; affected e8d5f92b8d30bb4ade76494490c3c065e12411b1 < 7f1f24c367938c5537e2308bf9a965f051d14774
Linux · Linuxaffected 5.10 ; unaffected 0 < 5.10 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.* ; unaffected 6.12.96 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD