ALSA: dice: fix buffer overflow in detect_stream_formats()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 58579c056c1c9510ae6695ed8e01ee05bbdcfb23 · < 932aa1e80b022419cf9710e970739b7a8794f27c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: dice: fix buffer overflow in detect_stream_formats()
The function detect_stream_formats() reads the stream_count value directly from a FireWire device without validating it. This can lead to out-of-bounds writes when a malicious device provides a stream_count value greater than MAX_STREAMS.
Fix by applying the same validation to both TX and RX stream counts in detect_stream_formats().
From the CVE record · Linux
The Linux kernel’s ALSA dice driver does not validate stream counts read from a FireWire device in detect_stream_formats(). A malicious FireWire device can provide a count greater than MAX_STREAMS and cause out-of-bounds writes. Exploitation requires the system to read stream counts from that device.
Anyone running a Linux kernel with the ALSA dice driver should check their version; affected versions are not specified.