ASoC: SOF: ipc3-control: Validate size in snd_sof_update_control
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 10f461d79c2d1afb22344986cc1b4631169cf25e · < 390aa4c9339bb0ec0bc8d554e830faf93ca9d49e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc3-control: Validate size in snd_sof_update_control
In snd_sof_update_control(), firmware-provided cdata->num_elems is checked against local_cdata->data->size but never against the actual allocation size. If local_cdata->data->size was previously set to an inconsistent value, the memcpy could write past the allocated buffer.
Add a bounds check to ensure num_elems fits within the available space in the ipc_control_data allocation before copying.
From the CVE record · Linux
In the Linux kernel’s ASoC SOF ipc3-control code, a firmware-provided element count is checked against a stored size but not the actual allocation size. If that stored size is inconsistent, a copy could write past the allocated buffer. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with ASoC SOF ipc3-control should check their exposure; affected versions are not specified.