CVE-2026-64345 (GCVE-0-2026-64345)
Vulnerability from cvelistv5
Published
2026-07-25 08:50
Modified
2026-08-17 04:53
Severity ?
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: e8d5f92b8d30bb4ade76494490c3c065e12411b1
Version: e8d5f92b8d30bb4ade76494490c3c065e12411b1
Version: e8d5f92b8d30bb4ade76494490c3c065e12411b1
Version: e8d5f92b8d30bb4ade76494490c3c065e12411b1
Version: e8d5f92b8d30bb4ade76494490c3c065e12411b1
Version: e8d5f92b8d30bb4ade76494490c3c065e12411b1
Version: 25c95c6bd4dc50a3c20de0fa7f450ea02b2320fc
Version: 4a47581cf010dc351d8069978080fdb000c0776d
Version: d9fe88b2a38dc700bf5bd3a09c7cd11bbc248367
Version: cedb0187b8ba929c3f76f28e6bc25804d65f8a54
Version: e9e791f5c39ab30e374a3b1a9c25ca7ff24988f3
Version: 34f026263889e2827e04acdc3a0eb9ecbd191ef0
Version: 5f845e5d18d151230476cf90aa46449f69ba2ef1
Version: 4.4.241   
Version: 4.9.241   
Version: 4.14.203   
Version: 4.19.154   
Version: 5.4.73   
Version: 5.8.17   
Version: 5.9.2   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/function/f_printer.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "94ec20d97aa51547965a539f660a1fe79c6929a3",
              "status": "affected",
              "version": "e8d5f92b8d30bb4ade76494490c3c065e12411b1",
              "versionType": "git"
            },
            {
              "lessThan": "75c0ad13e136961328253742501b4efc3988a587",
              "status": "affected",
              "version": "e8d5f92b8d30bb4ade76494490c3c065e12411b1",
              "versionType": "git"
            },
            {
              "lessThan": "bf20c94fa6aaff945f0ae3a23f3212cd299f28d9",
              "status": "affected",
              "version": "e8d5f92b8d30bb4ade76494490c3c065e12411b1",
              "versionType": "git"
            },
            {
              "lessThan": "8a5eba992c862b0c94411eecf9b7121e8636db38",
              "status": "affected",
              "version": "e8d5f92b8d30bb4ade76494490c3c065e12411b1",
              "versionType": "git"
            },
            {
              "lessThan": "7f1f24c367938c5537e2308bf9a965f051d14774",
              "status": "affected",
              "version": "e8d5f92b8d30bb4ade76494490c3c065e12411b1",
              "versionType": "git"
            },
            {
              "lessThan": "30adce93d5c4a5a1ec29d9249e3fdfcc391d406b",
              "status": "affected",
              "version": "e8d5f92b8d30bb4ade76494490c3c065e12411b1",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "25c95c6bd4dc50a3c20de0fa7f450ea02b2320fc",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "4a47581cf010dc351d8069978080fdb000c0776d",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d9fe88b2a38dc700bf5bd3a09c7cd11bbc248367",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "cedb0187b8ba929c3f76f28e6bc25804d65f8a54",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e9e791f5c39ab30e374a3b1a9c25ca7ff24988f3",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "34f026263889e2827e04acdc3a0eb9ecbd191ef0",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "5f845e5d18d151230476cf90aa46449f69ba2ef1",
              "versionType": "git"
            },
            {
              "lessThan": "4.5",
              "status": "affected",
              "version": "4.4.241",
              "versionType": "semver"
            },
            {
              "lessThan": "4.10",
              "status": "affected",
              "version": "4.9.241",
              "versionType": "semver"
            },
            {
              "lessThan": "4.15",
              "status": "affected",
              "version": "4.14.203",
              "versionType": "semver"
            },
            {
              "lessThan": "4.20",
              "status": "affected",
              "version": "4.19.154",
              "versionType": "semver"
            },
            {
              "lessThan": "5.5",
              "status": "affected",
              "version": "5.4.73",
              "versionType": "semver"
            },
            {
              "lessThan": "5.9",
              "status": "affected",
              "version": "5.8.17",
              "versionType": "semver"
            },
            {
              "lessThan": "5.10",
              "status": "affected",
              "version": "5.9.2",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/function/f_printer.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.10"
            },
            {
              "lessThan": "5.10",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.261",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.96",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.39",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.261",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.96",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.39",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.4",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.4.241",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.9.241",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.14.203",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.19.154",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.4.73",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.8.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.9.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_printer: take kref only for successful open\n\nprinter_open() returns -EBUSY when the character device is already\nopen, but it increments dev-\u003ekref regardless of the return value. VFS\ndoes not call -\u003erelease() for a failed open, so every rejected second\nopen permanently leaks one reference.\n\nMove kref_get() into the successful-open branch."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T04:53:49.464Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/94ec20d97aa51547965a539f660a1fe79c6929a3"
        },
        {
          "url": "https://git.kernel.org/stable/c/75c0ad13e136961328253742501b4efc3988a587"
        },
        {
          "url": "https://git.kernel.org/stable/c/bf20c94fa6aaff945f0ae3a23f3212cd299f28d9"
        },
        {
          "url": "https://git.kernel.org/stable/c/8a5eba992c862b0c94411eecf9b7121e8636db38"
        },
        {
          "url": "https://git.kernel.org/stable/c/7f1f24c367938c5537e2308bf9a965f051d14774"
        },
        {
          "url": "https://git.kernel.org/stable/c/30adce93d5c4a5a1ec29d9249e3fdfcc391d406b"
        }
      ],
      "title": "usb: gadget: f_printer: take kref only for successful open",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64345",
    "datePublished": "2026-07-25T08:50:07.069Z",
    "dateReserved": "2026-07-19T15:36:31.781Z",
    "dateUpdated": "2026-08-17T04:53:49.464Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…