ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 738d9edcfd44f154924692e54109fb439fcf8bdd · < ad72c3c3f6eb81d2cb189ec71e888316adada5df| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()
snd_usbmidi_output_open() has a check of the NULL port with snd_BUG_ON(). snd_BUG_ON() was used as this shouldn't have happened, but in reality, the NULL port may be seen when the device gives an invalid endpoint setup at the descriptor, hence the driver skips the allocation. That is, the check itself is valid and snd_BUG_ON() should be dropped from there. Otherwise it's confusing as if it were a real bug, as recently syzbot stumbled on it.
From the CVE record · Linux
The Linux kernel’s USB audio MIDI driver can encounter a NULL port when a device supplies an invalid endpoint setup in its descriptor. Opening the MIDI output then triggers a misleading snd_BUG_ON() check. The input does not establish whether an attacker can exploit this or what access would be required.
Engineers running Linux kernels with the affected USB audio MIDI driver should check their kernel version; affected versions are not specified.