CVE-2026-64242 (GCVE-0-2026-64242)
Vulnerability from cvelistv5
Published
2026-07-24 15:27
Modified
2026-07-24 15:27
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: net2280: Fix double free in probe error path usb_initialize_gadget() installs gadget_release() as the release callback for the embedded gadget device. The struct net2280 instance is therefore released through gadget_release() when the gadget device's last reference is dropped. The probe error path calls net2280_remove(), which tears down the partially initialized device and drops the gadget reference with usb_put_gadget(). Calling kfree(dev) afterwards can free the same object again. Drop the explicit kfree() and let the gadget device release callback handle the final free. This issue was found by a static analysis tool I am developing.
Impacted products
Vendor Product Version
Linux Linux Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Version: f770fbec4165b1acfabdeadb01ad6008d2c537b5
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/udc/net2280.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "71b3391dc81655ff058492f8e9d013b2c6e5747b",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            },
            {
              "lessThan": "550fa4d071a8c8e53072900869d37ae6abf4999d",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            },
            {
              "lessThan": "c5b9fdb1e8ddf50bc6272927edb118679f170350",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            },
            {
              "lessThan": "085652fda7f38040d1a2c42d72614f418feb843f",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            },
            {
              "lessThan": "48f89ead20e48d447ad29fa937b43b9fa981cf28",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            },
            {
              "lessThan": "e6f8be12f0307145b9a6010f044925952b37de8b",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            },
            {
              "lessThan": "db2b72e83a0208ae2b3b270bf91662b1c6849a9b",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            },
            {
              "lessThan": "c8547c74988e0b5f4cbb1b895e2a57aae084f070",
              "status": "affected",
              "version": "f770fbec4165b1acfabdeadb01ad6008d2c537b5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/udc/net2280.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.259",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.210",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.176",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.143",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.93",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.259",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.210",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.176",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.143",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.93",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.35",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.12",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: net2280: Fix double free in probe error path\n\nusb_initialize_gadget() installs gadget_release() as the release\ncallback for the embedded gadget device.  The struct net2280 instance is\ntherefore released through gadget_release() when the gadget device\u0027s last\nreference is dropped.\n\nThe probe error path calls net2280_remove(), which tears down the\npartially initialized device and drops the gadget reference with\nusb_put_gadget().  Calling kfree(dev) afterwards can free the same object\nagain.\n\nDrop the explicit kfree() and let the gadget device release callback\nhandle the final free.  This issue was found by a static analysis tool\nI am developing."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-24T15:27:44.730Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b"
        },
        {
          "url": "https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d"
        },
        {
          "url": "https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350"
        },
        {
          "url": "https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f"
        },
        {
          "url": "https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28"
        },
        {
          "url": "https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b"
        },
        {
          "url": "https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b"
        },
        {
          "url": "https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070"
        }
      ],
      "title": "usb: gadget: net2280: Fix double free in probe error path",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64242",
    "datePublished": "2026-07-24T15:27:44.730Z",
    "dateReserved": "2026-07-19T15:36:31.772Z",
    "dateUpdated": "2026-07-24T15:27:44.730Z",
    "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…