ALSA: usb-audio: Use correct version for UAC3 header validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 57f8770620e9b51c61089751f0b5ad3dbe376ff2 · < 1e5753ff4c2e86aa88516f97a224c90a3d0b133e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Use correct version for UAC3 header validation
The entry of the validators table for UAC3 AC header descriptor is defined with the wrong protocol version UAC_VERSION_2, while it should have been UAC_VERSION_3. This results in the validator never matching for actual UAC3 devices (protocol == UAC_VERSION_3), causing their header descriptors to bypass validation entirely. A malicious USB device presenting a truncated UAC3 header could exploit this to cause out-of-bounds reads when the driver later accesses unvalidated descriptor fields.
The bug was introduced in the same commit as the recently fixed UAC3 feature unit sub-type typo, and appears to be from the same copy-paste error when the UAC3 section was created from the UAC2 section.
From the CVE record · Linux
The Linux kernel's ALSA USB audio driver fails to validate UAC3 header descriptors because its validator uses the wrong protocol version. A malicious USB device with a truncated UAC3 header could cause out-of-bounds reads when the driver accesses the descriptor; exploitation requires the device to be connected.
Engineers running Linux kernels with ALSA USB audio support should check their kernel's status; affected versions were not provided.