ALSA: usb-audio: Clamp frame size in implicit-feedback mode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 28acb12014fb0c3e1edfdab1b1e3e266cf651550 · < 2db4535d6af79276a64449201c5be5feffb31c64| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Clamp frame size in implicit-feedback mode
snd_usb_handle_sync_urb() scales received sync packet sizes by the sender's stride and stores the result directly in out_packet->packet_size[i]. If a connected USB device sends an oversized sync packet, this frame count can exceed ep->maxframesize.
The un-clamped frame count then propagates to the playback endpoint queue, potentially driving packet transfers beyond the endpoint's hardware frame limits.
Cap the calculated frame count against ep->maxframesize in snd_usb_handle_sync_urb() to prevent oversized packets from entering the playback queue.
From the CVE record · Linux
In the Linux kernel’s ALSA USB audio implicit-feedback mode, a frame count from a sync packet can exceed the playback endpoint’s hardware limit. A connected USB device that sends an oversized sync packet can cause packet transfers beyond that limit; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with ALSA USB audio should check their exposure; affected versions are not specified.