ALSA: usb-audio: Avoid potential endless loop in convert_chmap_v3()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ecfd41166b72b67d3bdeb88d224ff445f6163869 · < be09b47ed8677d76962e3240c145502e2ad9f3c8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Avoid potential endless loop in convert_chmap_v3()
The convert_chmap_v3() has a loop with its increment size of cs_desc->wLength, but we forgot to validate cs_desc->wLength itself, which may lead to potential endless loop by a malformed descriptor.
Add a proper size check to abort the loop for plugging the hole.
From the CVE record · Linux
The Linux kernel’s ALSA USB audio code does not validate a descriptor length before using it to advance a loop in convert_chmap_v3(). A malformed descriptor could cause the loop to run indefinitely. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels with ALSA USB audio should check their versions; affected versions are not specified.