ALSA: usb-audio: Bound MIDI 2.0 endpoint descriptor scans
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Bound MIDI 2.0 endpoint descriptor scans
The USB MIDI 2.0 endpoint parser has the same descriptor walking pattern as the legacy MIDI parser. It validates bLength against bNumGrpTrmBlock before reading baAssoGrpTrmBlkID[], but not against the remaining bytes in the endpoint-extra scan.
A malformed device can therefore make later baAssoGrpTrmBlkID[] reads consume bytes past the walked descriptor.
Reject zero-length and overlong descriptors while walking endpoint extras.
From the CVE record · Linux
The Linux kernel’s ALSA USB MIDI 2.0 endpoint parser can read beyond a descriptor while scanning endpoint data. A malformed USB device can trigger the read when the kernel processes its descriptors; the input does not specify an authentication requirement.
Engineers running Linux kernels with ALSA USB audio support should check their kernel; affected versions were not specified.