# CVE-2026-99318: ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-18T08:42:09.754Z
- **Modified:** 2026-11-23T08:17:37.110Z

## Who should check

- Anyone running Linux \>= b47a22290d581277be70e8a597824a4985d39e83, \< 2fcf9b9d874709421abe2f70b51242224feb666c; \>= b47a22290d581277be70e8a597824a4985d39e83, \< a57be92dc97bc4538cc7d0b51a528995c853318c; \>= b47a22290d581277be70e8a597824a4985d39e83, \< c1d76e51961979c24b5fd63d8579b3b4c2c4e8fd; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 8d2cca2909057746af411b5bb54a7fd329f25680; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 791c259be56d05f90f7642df337f209c108003fa; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 752eea15d0e67a468e484c1f166cdba694ba6de0; \>= b47a22290d581277be70e8a597824a4985d39e83, \< a4c306eb3ba35a1e7201e25aef7e0537da609e72; \>= b47a22290d581277be70e8a597824a4985d39e83, \< f6c7bb1f0799591a62be75b9bcf84245b4f208b7
- Anyone running Linux 3.16

## Description

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.

## Affected and fixed versions

- Linux: \>= b47a22290d581277be70e8a597824a4985d39e83, \< 2fcf9b9d874709421abe2f70b51242224feb666c; \>= b47a22290d581277be70e8a597824a4985d39e83, \< a57be92dc97bc4538cc7d0b51a528995c853318c; \>= b47a22290d581277be70e8a597824a4985d39e83, \< c1d76e51961979c24b5fd63d8579b3b4c2c4e8fd; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 8d2cca2909057746af411b5bb54a7fd329f25680; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 791c259be56d05f90f7642df337f209c108003fa; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 752eea15d0e67a468e484c1f166cdba694ba6de0; \>= b47a22290d581277be70e8a597824a4985d39e83, \< a4c306eb3ba35a1e7201e25aef7e0537da609e72; \>= b47a22290d581277be70e8a597824a4985d39e83, \< f6c7bb1f0799591a62be75b9bcf84245b4f208b7 (cvelist)
- Linux: 3.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99318. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99318.md
Affected: Linux >= b47a22290d581277be70e8a597824a4985d39e83, < 2fcf9b9d874709421abe2f70b51242224feb666c; >= b47a22290d581277be70e8a597824a4985d39e83, < a57be92dc97bc4538cc7d0b51a528995c853318c; >= b47a22290d581277be70e8a597824a4985d39e83, < c1d76e51961979c24b5fd63d8579b3b4c2c4e8fd; >= b47a22290d581277be70e8a…
Fixed in: Linux 2fcf9b9d874709421abe2f70b51242224feb666c, Linux 8d2cca2909057746af411b5bb54a7fd329f25680, Linux 791c259be56d05f90f7642df337f209c108003fa, Linux 752eea15d0e67a468e484c1f166cdba694ba6de0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99318 being exploited?

There is no confirmed exploitation: CVE-2026-99318 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99318?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99318?

Linux \>= b47a22290d581277be70e8a597824a4985d39e83, \< 2fcf9b9d874709421abe2f70b51242224feb666c; \>= b47a22290d581277be70e8a597824a4985d39e83, \< a57be92dc97bc4538cc7d0b51a528995c853318c; \>= b47a22290d581277be70e8a597824a4985d39e83, \< c1d76e51961979c24b5fd63d8579b3b4c2c4e8fd; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 8d2cca2909057746af411b5bb54a7fd329f25680; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 791c259be56d05f90f7642df337f209c108003fa; \>= b47a22290d581277be70e8a597824a4985d39e83, \< 752eea15d0e67a468e484c1f166cdba694ba6de0; \>= b47a22290d581277be70e8a597824a4985d39e83, \< a4c306eb3ba35a1e7201e25aef7e0537da609e72; \>= b47a22290d581277be70e8a597824a4985d39e83, \< f6c7bb1f0799591a62be75b9bcf84245b4f208b7; Linux 3.16.

### Is there a fix for CVE-2026-99318?

Yes. Fixed in Linux 2fcf9b9d874709421abe2f70b51242224feb666c, Linux 8d2cca2909057746af411b5bb54a7fd329f25680, Linux 791c259be56d05f90f7642df337f209c108003fa, Linux 752eea15d0e67a468e484c1f166cdba694ba6de0. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99318?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/2fcf9b9d874709421abe2f70b51242224feb666c>
- other: <https://git.kernel.org/stable/c/a57be92dc97bc4538cc7d0b51a528995c853318c>
- other: <https://git.kernel.org/stable/c/c1d76e51961979c24b5fd63d8579b3b4c2c4e8fd>
- other: <https://git.kernel.org/stable/c/8d2cca2909057746af411b5bb54a7fd329f25680>
- other: <https://git.kernel.org/stable/c/791c259be56d05f90f7642df337f209c108003fa>
- other: <https://git.kernel.org/stable/c/752eea15d0e67a468e484c1f166cdba694ba6de0>
- other: <https://git.kernel.org/stable/c/a4c306eb3ba35a1e7201e25aef7e0537da609e72>
- other: <https://git.kernel.org/stable/c/f6c7bb1f0799591a62be75b9bcf84245b4f208b7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99318>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99318> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99318>
