{
  "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-2026-31756",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31756",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-05-01T14:14:47.000Z",
    "updatedAt": "2026-05-23T16:05:53.039Z",
    "importedAt": "2026-10-24T01:58:02.025Z",
    "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: dwc2: gadget: Fix spin_lock/unlock mismatch in dwc2_hsotg_udc_stop()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: dwc2: gadget: Fix spin_lock/unlock mismatch in dwc2_hsotg_udc_stop()\n\ndwc2_gadget_exit_clock_gating() internally calls call_gadget() macro,\nwhich expects hsotg->lock to be held since it does spin_unlock/spin_lock\naround the gadget driver callback invocation.\n\nHowever, dwc2_hsotg_udc_stop() calls dwc2_gadget_exit_clock_gating()\nwithout holding the lock. This leads to:\n - spin_unlock on a lock that is not held (undefined behavior)\n - The lock remaining held after dwc2_gadget_exit_clock_gating() returns,\n   causing a deadlock when spin_lock_irqsave() is called later in the\n   same function.\n\nFix this by acquiring hsotg->lock before calling\ndwc2_gadget_exit_clock_gating() and releasing it afterwards, which\nsatisfies the locking requirement of the call_gadget() macro.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "5cb3cb3db317c58d50b68f3ca3bb8343ea9d1acd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e9fcca3e87463013d595c65c2189ffaa32ad3b50"
            },
            {
              "version": "1ac826cebc2776f91569f2aa9c9c3da2375d2096",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8ffe31acb3b77a30ae34d01719a269881569fb7f"
            },
            {
              "version": "41732f9febdccb4f9b87c13cb915d717d68ccafd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "beab10429439e20708036a66fb0d97ffb79da6a1"
            },
            {
              "version": "ba78c2b3254c4a458c01776612e8a573e12f8d26",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4ed9d2dd9f29828c311db6ec4b8e0d34bfd6d6a4"
            },
            {
              "version": "af076a41f8a28faf9ceb9dd2d88aef2c202ef39a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "61937f686290494998236c680ce0836b8dd63a3f"
            },
            {
              "version": "af076a41f8a28faf9ceb9dd2d88aef2c202ef39a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "51b62286fc668c6eb74dee7624ec0beec3c5a0ed"
            },
            {
              "version": "af076a41f8a28faf9ceb9dd2d88aef2c202ef39a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9bb4b5ed7f8c4f95cc556bdf042b0ba2fa13557a"
            },
            {
              "version": "b39c203690fa1678daecc60f347e43c8b593b969",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "5.15.187",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.15.203"
            },
            {
              "version": "6.1.143",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.1.168"
            },
            {
              "version": "6.6.96",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.6.134"
            },
            {
              "version": "6.12.36",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.12.81"
            },
            {
              "version": "6.15.5",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.16"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "6.16",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "6.16"
            },
            {
              "version": "5.15.203",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.168",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.134",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.81",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.22",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "6.19.12",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.19.*"
            },
            {
              "version": "7.0",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}