{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-21838",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-21838",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-03-07T09:09:57.515Z",
    "updatedAt": "2026-10-15T01:04:40.971Z",
    "importedAt": "2026-10-24T01:57:29.455Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "usb: gadget: core: flush gadget workqueue after device removal",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: core: flush gadget workqueue after device removal\n\ndevice_del() can lead to new work being scheduled in gadget->work\nworkqueue. This is observed, for example, with the dwc3 driver with the\nfollowing call stack:\n  device_del()\n    gadget_unbind_driver()\n      usb_gadget_disconnect_locked()\n        dwc3_gadget_pullup()\n\t  dwc3_gadget_soft_disconnect()\n\t    usb_gadget_set_state()\n\t      schedule_work(&gadget->work)\n\nMove flush_work() after device_del() to ensure the workqueue is cleaned\nup.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e3bc1a9a67ce33a2e761e6e7b7c2afc6cb9b7266"
            },
            {
              "version": "5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15",
              "status": "affected",
              "versionType": "git",
              "lessThan": "859cb45aefa6de823b2fa7f229fe6d9562c9f3b7"
            },
            {
              "version": "5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f894448f3904d7ad66fecef8f01fe0172629e091"
            },
            {
              "version": "5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15",
              "status": "affected",
              "versionType": "git",
              "lessThan": "97695b5a1b5467a4f91194db12160f56da445dfe"
            },
            {
              "version": "5702f75375aa9ecf8ad3431aef3fe6ce8c8dbd15",
              "status": "affected",
              "versionType": "git",
              "lessThan": "399a45e5237ca14037120b1b895bd38a3b4492ea"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "3.12",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "3.12"
            },
            {
              "version": "6.1.130",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.80",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.16",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.13.4",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.13.*"
            },
            {
              "version": "6.14",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}