CVE-2026-64242 (GCVE-0-2026-64242)

Vulnerability from cvelistv5 – Published: 2026-07-24 15:27 – Updated: 2026-07-24 15:27
VLAI
Title
usb: gadget: net2280: Fix double free in probe error path
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.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < 71b3391dc81655ff058492f8e9d013b2c6e5747b (git)
Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < 550fa4d071a8c8e53072900869d37ae6abf4999d (git)
Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < c5b9fdb1e8ddf50bc6272927edb118679f170350 (git)
Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < 085652fda7f38040d1a2c42d72614f418feb843f (git)
Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < 48f89ead20e48d447ad29fa937b43b9fa981cf28 (git)
Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < e6f8be12f0307145b9a6010f044925952b37de8b (git)
Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < db2b72e83a0208ae2b3b270bf91662b1c6849a9b (git)
Affected: f770fbec4165b1acfabdeadb01ad6008d2c537b5 , < c8547c74988e0b5f4cbb1b895e2a57aae084f070 (git)
Create a notification for this product.
Linux Linux Affected: 5.10
Unaffected: 0 , < 5.10 (semver)
Unaffected: 5.10.259 , ≤ 5.10.* (semver)
Unaffected: 5.15.210 , ≤ 5.15.* (semver)
Unaffected: 6.1.176 , ≤ 6.1.* (semver)
Unaffected: 6.6.143 , ≤ 6.6.* (semver)
Unaffected: 6.12.93 , ≤ 6.12.* (semver)
Unaffected: 6.18.35 , ≤ 6.18.* (semver)
Unaffected: 7.0.12 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-64242",
      "date": "2026-07-31",
      "epss": "0.00165",
      "percentile": "0.06139"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-64242\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-24T16:16:53.553\",\"lastModified\":\"2026-07-30T15:00:27.343\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/usb/gadget/udc/net2280.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"71b3391dc81655ff058492f8e9d013b2c6e5747b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"550fa4d071a8c8e53072900869d37ae6abf4999d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"c5b9fdb1e8ddf50bc6272927edb118679f170350\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"085652fda7f38040d1a2c42d72614f418feb843f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"48f89ead20e48d447ad29fa937b43b9fa981cf28\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"e6f8be12f0307145b9a6010f044925952b37de8b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"db2b72e83a0208ae2b3b270bf91662b1c6849a9b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f770fbec4165b1acfabdeadb01ad6008d2c537b5\",\"lessThan\":\"c8547c74988e0b5f4cbb1b895e2a57aae084f070\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/usb/gadget/udc/net2280.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.10\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.10\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.259\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.210\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.176\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.143\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.93\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.35\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.12\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-07-28T12:05:33+00:00",
      "cve": "CVE-2026-64242",
      "id": "CVE-2026-64242",
      "initial_release_date": "2026-07-24T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: usb: gadget: net2280: Fix double free in probe error path",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64242.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-28T17:08:39Z",
      "cve": "CVE-2026-64242",
      "id": "CVE-2026-64242",
      "initial_release_date": "2026-07-25T00:13:49Z",
      "product_status:known_affected": "118",
      "product_status:known_not_affected": "180",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-64242",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-64242.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…