ASoC: SOF: ipc3-control: Use overflow checks in control_update size calc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 10f461d79c2d1afb22344986cc1b4631169cf25e · < 8791977d7289f6e9d2b014f60a5455f053a7bc04| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc3-control: Use overflow checks in control_update size calc
In sof_ipc3_control_update(), the expected_size calculation uses firmware-provided cdata->num_elems in arithmetic that could overflow on 32-bit platforms, wrapping to a small value. This would allow the cdata->rhdr.hdr.size comparison to pass with mismatched sizes, potentially leading to out-of-bounds access in snd_sof_update_control.
Use check_mul_overflow() and check_add_overflow() to detect and reject overflowed size calculations.
From the CVE record · Linux
The Linux kernel’s SOF IPC3 control update can overflow a size calculation using firmware-provided data on 32-bit platforms. A mismatched size may then pass validation, potentially causing an out-of-bounds access. The input does not specify an attack route, authentication requirement, or user interaction.
Engineers running the Linux kernel with SOF IPC3 controls on 32-bit platforms should check their kernel; affected versions are not specified.