{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "f770fbec4165b1acfabdeadb01ad6008d2c537b5"
            },
            {
              "fixed": "71b3391dc81655ff058492f8e9d013b2c6e5747b"
            },
            {
              "fixed": "550fa4d071a8c8e53072900869d37ae6abf4999d"
            },
            {
              "fixed": "c5b9fdb1e8ddf50bc6272927edb118679f170350"
            },
            {
              "fixed": "085652fda7f38040d1a2c42d72614f418feb843f"
            },
            {
              "fixed": "48f89ead20e48d447ad29fa937b43b9fa981cf28"
            },
            {
              "fixed": "e6f8be12f0307145b9a6010f044925952b37de8b"
            },
            {
              "fixed": "db2b72e83a0208ae2b3b270bf91662b1c6849a9b"
            },
            {
              "fixed": "c8547c74988e0b5f4cbb1b895e2a57aae084f070"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.0"
            },
            {
              "fixed": "5.10.259"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.210"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.176"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.143"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.93"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.35"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64242.json"
  },
  "details": "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's 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.",
  "id": "CVE-2026-64242",
  "modified": "2026-07-27T03:56:33.144902100Z",
  "published": "2026-07-24T15:27:44.730Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/085652fda7f38040d1a2c42d72614f418feb843f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/48f89ead20e48d447ad29fa937b43b9fa981cf28"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/550fa4d071a8c8e53072900869d37ae6abf4999d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/71b3391dc81655ff058492f8e9d013b2c6e5747b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c5b9fdb1e8ddf50bc6272927edb118679f170350"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c8547c74988e0b5f4cbb1b895e2a57aae084f070"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/db2b72e83a0208ae2b3b270bf91662b1c6849a9b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e6f8be12f0307145b9a6010f044925952b37de8b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64242.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64242"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "usb: gadget: net2280: Fix double free in probe error path"
}