firmware: cs_dsp: Validate payload length before processing block
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: cs_dsp: Validate payload length before processing block
Move the payload length check in cs_dsp_load() and cs_dsp_coeff_load() to be done before the block is processed.
The check that the length of a block payload does not exceed the number of remaining bytes in the firwmware file buffer was being done near the end of the loop iteration. However, some code before that check used the length field without validating it.
From the CVE record · Linux
The Linux kernel's cs_dsp firmware loader used a block payload length before checking whether the payload fit within the remaining firmware file buffer. A malformed firmware file could therefore cause processing with an unvalidated length when the file is loaded. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels that include the affected cs_dsp firmware-loading code should check their versions against the vendor advisory.