ALSA: usb-audio: stop parsing UAC2 rates at MAX_NR_RATES
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4fa0e81b83503900be277e6273a79651b375e288 · < 4d7893a137eadb6163ea4298bf67d74b811d76ef| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: stop parsing UAC2 rates at MAX_NR_RATES
parse_uac2_sample_rate_range() caps the number of enumerated rates at MAX_NR_RATES, but it only breaks out of the current rate loop. A malformed UAC2 RANGE response with additional triplets continues parsing the remaining triplets and repeatedly prints "invalid uac2 rates" while probe still holds register_mutex.
Stop the whole parse once the cap is reached and return the number of rates collected so far.
From the CVE record · Linux
The Linux kernel’s ALSA USB audio parser continues processing a malformed UAC2 RANGE response after reaching its rate limit. During device probing, additional rate triplets can trigger repeated “invalid uac2 rates” messages while the probe holds register_mutex. The input does not specify authentication requirements.
Engineers running Linux kernels with ALSA USB audio support should check their kernel vendor’s advisory for affected versions.