CVE-2026-99318 (GCVE-0-2026-99318)

Vulnerability from cvelistv5 – Published: 2026-11-18 08:42 – Updated: 2026-11-18 08:42
VLAI
Title
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close
Summary
In the Linux kernel, the following vulnerability has been resolved: ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close bcd2000_disconnect() calls snd_card_disconnect(), which only prevents new opens, and then frees the MIDI URBs. A rawmidi file that was already open can still be closed afterwards, and its close callback, bcd2000_midi_output_close(), calls usb_kill_urb() on midi_out_urb. The URB pointers are cleared on disconnect and their accesses are serialized with midi_lock, but bcd2000_midi_output_close() reads midi_out_urb without that lock. The check can therefore pass just before the pointer is cleared, and usb_kill_urb() then runs on the URB that has already been freed: BUG: KASAN: slab-use-after-free in usb_kill_urb+0x74/0x80 Read of size 8 at addr ffff8880078e7d40 usb_kill_urb bcd2000_midi_output_close close_substream rawmidi_release_priv snd_rawmidi_release Allocated by: usb_alloc_urb <- bcd2000_init_midi <- bcd2000_probe Freed by: usb_free_urb <- bcd2000_midi_free <- bcd2000_disconnect Take the lock in bcd2000_midi_output_close() and reference the URB with usb_get_urb() before releasing it. The URB then stays valid until usb_put_urb() after usb_kill_urb() has returned, even if a disconnect frees it in the meantime. usb_kill_urb() itself cannot run under midi_lock, as the completion handler takes the same lock.
Severity
No CVSS data available.
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: b47a22290d581277be70e8a597824a4985d39e83 , < 791c259be56d05f90f7642df337f209c108003fa (git)
Affected: b47a22290d581277be70e8a597824a4985d39e83 , < 752eea15d0e67a468e484c1f166cdba694ba6de0 (git)
Affected: b47a22290d581277be70e8a597824a4985d39e83 , < a4c306eb3ba35a1e7201e25aef7e0537da609e72 (git)
Affected: b47a22290d581277be70e8a597824a4985d39e83 , < f6c7bb1f0799591a62be75b9bcf84245b4f208b7 (git)
Create a notification for this product.
Linux Linux Affected: 3.16
Unaffected: 0 , < 3.16 (semver)
Unaffected: 6.12.118 , ≤ 6.12.* (semver)
Unaffected: 6.18.64 , ≤ 6.18.* (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "sound/usb/bcd2000/bcd2000.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "791c259be56d05f90f7642df337f209c108003fa",
              "status": "affected",
              "version": "b47a22290d581277be70e8a597824a4985d39e83",
              "versionType": "git"
            },
            {
              "lessThan": "752eea15d0e67a468e484c1f166cdba694ba6de0",
              "status": "affected",
              "version": "b47a22290d581277be70e8a597824a4985d39e83",
              "versionType": "git"
            },
            {
              "lessThan": "a4c306eb3ba35a1e7201e25aef7e0537da609e72",
              "status": "affected",
              "version": "b47a22290d581277be70e8a597824a4985d39e83",
              "versionType": "git"
            },
            {
              "lessThan": "f6c7bb1f0799591a62be75b9bcf84245b4f208b7",
              "status": "affected",
              "version": "b47a22290d581277be70e8a597824a4985d39e83",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "sound/usb/bcd2000/bcd2000.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.16"
            },
            {
              "lessThan": "3.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.118",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.118",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.64",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: bcd2000: Fix use-after-free of MIDI URBs on file close\n\nbcd2000_disconnect() calls snd_card_disconnect(), which only prevents\nnew opens, and then frees the MIDI URBs.  A rawmidi file that was\nalready open can still be closed afterwards, and its close callback,\nbcd2000_midi_output_close(), calls usb_kill_urb() on midi_out_urb.\n\nThe URB pointers are cleared on disconnect and their accesses are\nserialized with midi_lock, but bcd2000_midi_output_close() reads\nmidi_out_urb without that lock.  The check can therefore pass just\nbefore the pointer is cleared, and usb_kill_urb() then runs on the URB\nthat has already been freed:\n\n  BUG: KASAN: slab-use-after-free in usb_kill_urb+0x74/0x80\n  Read of size 8 at addr ffff8880078e7d40\n   usb_kill_urb\n   bcd2000_midi_output_close\n   close_substream\n   rawmidi_release_priv\n   snd_rawmidi_release\n\n  Allocated by: usb_alloc_urb \u003c- bcd2000_init_midi \u003c- bcd2000_probe\n  Freed by:     usb_free_urb \u003c- bcd2000_midi_free\n                \u003c- bcd2000_disconnect\n\nTake the lock in bcd2000_midi_output_close() and reference the URB with\nusb_get_urb() before releasing it.  The URB then stays valid until\nusb_put_urb() after usb_kill_urb() has returned, even if a disconnect\nfrees it in the meantime.  usb_kill_urb() itself cannot run under\nmidi_lock, as the completion handler takes the same lock."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-18T08:42:09.754Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/791c259be56d05f90f7642df337f209c108003fa"
        },
        {
          "url": "https://git.kernel.org/stable/c/752eea15d0e67a468e484c1f166cdba694ba6de0"
        },
        {
          "url": "https://git.kernel.org/stable/c/a4c306eb3ba35a1e7201e25aef7e0537da609e72"
        },
        {
          "url": "https://git.kernel.org/stable/c/f6c7bb1f0799591a62be75b9bcf84245b4f208b7"
        }
      ],
      "title": "ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99318",
    "datePublished": "2026-11-18T08:42:09.754Z",
    "dateReserved": "2026-09-25T10:25:14.407Z",
    "dateUpdated": "2026-11-18T08:42:09.754Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99318",
      "date": "2026-11-19",
      "epss": "0.00187",
      "percentile": "0.08395"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-19T01:06:35.000Z",
      "cve": "CVE-2026-99318",
      "id": "msrc_CVE-2026-99318",
      "initial_release_date": "2026-11-18T22:17:42.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99318.json",
      "version": "2"
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-18T13:57:21+00:00",
      "cve": "CVE-2026-99318",
      "id": "CVE-2026-99318",
      "initial_release_date": "2026-11-18T08:42:09.754000+00:00",
      "product_status:known_affected": "204",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via use-after-free in ALSA BCD2000 driver",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99318.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.