{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99318","id":"CVE-2026-99318","title":"Linux kernel use-after-free in ALSA bcd2000 MIDI file close","description":"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_ur","descriptionLong":"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 <- bcd2000_init_midi <- bcd2000_probe\n  Freed by:     usb_free_urb <- bcd2000_midi_free\n                <- 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.","published":"2026-11-18T08:42:09.754Z","updated":"2026-11-18T10:00:23.189302124Z","reserved":"2026-09-25T10:25:14.407Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b47a22290d581277be70e8a597824a4985d39e83","lessThan":"791c259be56d05f90f7642df337f209c108003fa","status":"affected","versionType":"git"},{"version":"b47a22290d581277be70e8a597824a4985d39e83","lessThan":"752eea15d0e67a468e484c1f166cdba694ba6de0","status":"affected","versionType":"git"},{"version":"b47a22290d581277be70e8a597824a4985d39e83","lessThan":"a4c306eb3ba35a1e7201e25aef7e0537da609e72","status":"affected","versionType":"git"},{"version":"b47a22290d581277be70e8a597824a4985d39e83","lessThan":"f6c7bb1f0799591a62be75b9bcf84245b4f208b7","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","lessThan":"3.16","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/791c259be56d05f90f7642df337f209c108003fa","tags":["web"]},{"url":"https://git.kernel.org/stable/c/752eea15d0e67a468e484c1f166cdba694ba6de0","tags":["web"]},{"url":"https://git.kernel.org/stable/c/a4c306eb3ba35a1e7201e25aef7e0537da609e72","tags":["web"]},{"url":"https://git.kernel.org/stable/c/f6c7bb1f0799591a62be75b9bcf84245b4f208b7","tags":["web"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99318.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99318","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00187,"epssPercentile":0.08395,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99318","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99318","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99318","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99318","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}