ALSA: bcd2000: Fix race between rawmidi and disconnect
- CVE-2026-98316
- GHSA-877f-c8m6-hq9r
- EUVD-2026-93301
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: bcd2000: Fix race between rawmidi and disconnect Although we tried to fix the potential UAF issues at USB disconnect on bcd2000 driver, there is still an overlooked case -- namely, when a rawmidi trigger callback has been already running at USB disconnect handling, the in-flight function (e.g. bcd2000_midi_send()) could still access the URB, because the previous URB NULL-check & clearance was considered only for the URB complete callbacks, but not about the parallel rawmidi operations. For addressing the race, this patch introduced a new spinlock that covers each rawmidi operation as well as the rawmidi handling in the complete callback. The URB is cleared with the lock, so it guarantees that the pending rawmidi task already finished or a NULL check is effective.
Text from the CVE.org record.
Recommendation
Linux
- If you run 7.2.xupdate to 7.2.8 or laterPatch update: breaking changes are unlikely
- If you run 6.18.xupdate to 6.18.54 or laterPatch update: breaking changes are unlikely
- If you run 6.12.xupdate to 6.12.112 or laterPatch update: breaking changes are unlikely
- If you run 6.6.xupdate to 6.6.158 or laterPatch update: breaking changes are unlikely
- If you run 6.1.xupdate to 6.1.189 or laterPatch update: breaking changes are unlikely
- If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
- If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 7.2.4 to before 7.2.8 7.2.8 from 6.18.50 to before 6.18.54 6.18.54 from 6.12.109 to before 6.12.112 6.12.112 from 6.6.157 to before 6.6.158 6.6.158 from 6.1.188 to before 6.1.189 6.1.189 from 5.15.221 to before 5.15.226 5.15.226 from 5.10.270 to before 5.10.275 5.10.275
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.