{
  "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-21835",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-21835",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-03-07T09:09:55.320Z",
    "updatedAt": "2026-10-15T01:04:39.763Z",
    "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: f_midi: fix MIDI Streaming descriptor lengths",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_midi: fix MIDI Streaming descriptor lengths\n\nWhile the MIDI jacks are configured correctly, and the MIDIStreaming\nendpoint descriptors are filled with the correct information,\nbNumEmbMIDIJack and bLength are set incorrectly in these descriptors.\n\nThis does not matter when the numbers of in and out ports are equal, but\nwhen they differ the host will receive broken descriptors with\nuninitialized stack memory leaking into the descriptor for whichever\nvalue is smaller.\n\nThe precise meaning of \"in\" and \"out\" in the port counts is not clearly\ndefined and can be confusing.  But elsewhere the driver consistently\nuses this to match the USB meaning of IN and OUT viewed from the host,\nso that \"in\" ports send data to the host and \"out\" ports receive data\nfrom it.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3a983390d14e8498f303fc5cb23ab7d696b815db"
            },
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9f36a89dcb78cb7e37f487b04a16396ac18c0636"
            },
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d8e86700c8a8cf415e300a0921acd6a8f9b494f8"
            },
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9f6860a9c11301b052225ca8825f8d2b1a5825bf"
            },
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6ae6dee9f005a2f3b739b85abb6f14a0935699e0"
            },
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6b16761a928796e4b49e89a0b1ac284155172726"
            },
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a2d0694e1f111379c1efdf439dadd3cfd959fe9d"
            },
            {
              "version": "c8933c3f79568263c90a46f06cf80419e6c63c97",
              "status": "affected",
              "versionType": "git",
              "lessThan": "da1668997052ed1cb00322e1f3b63702615c9429"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "3.2",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "3.2"
            },
            {
              "version": "5.4.291",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.235",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.179",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.129",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.79",
              "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": "*"
            }
          ]
        }
      ]
    }
  }
}