ALSA: usb-mixer: us16x08: validate meter packet indices
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d2bb390a2081a36ffe906724d2848d846f2aeb29 · < eaa95228b8a56c4880a182c0350d67922b22408f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-mixer: us16x08: validate meter packet indices
get_meter_levels_from_urb() parses the 64-byte meter packets sent by the device and fills the per-channel arrays meter_level[], comp_level[] and master_level[] in struct snd_us16x08_meter_store.
Currently the function derives the channel index directly from the meter packet (MUB2(meter_urb, s) - 1) and uses it to index those arrays without validating the range. If the packet contains a negative or out-of-range channel number, the driver may write past the end of these arrays.
Introduce a local channel variable and validate it before updating the arrays. We reject negative indices, limit meter_level[] and comp_level[] to SND_US16X08_MAX_CHANNELS, and guard master_level[] updates with ARRAY_SIZE(master_level).
From the CVE record · Linux
The Linux kernel’s ALSA USB mixer driver for us16x08 devices uses channel indices from device meter packets without checking their range. A malformed packet from a connected device can cause the driver to write past the end of its meter arrays; the input does not specify whether an attacker can trigger this remotely or needs authentication or user interaction.
Teams running Linux kernels with the ALSA us16x08 USB mixer driver should check whether their kernel includes the fix; affected versions are not specified.