ASoC: SOF: ipc4-topology: Return error for invalid number of formats
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:
ASoC: SOF: ipc4-topology: Return error for invalid number of formats
When the number of input or output formats is zero, sof_ipc4_widget_setup_comp_src() and sof_ipc4_widget_setup_comp_asrc() print an error and jump to the cleanup label. At that point 'ret' is still 0, because the earlier sof_ipc4_get_audio_fmt() call succeeded, so the function returns success and the caller never finds out that the widget setup actually failed.
Set ret to -EINVAL before the goto so the error gets reported.
From the CVE record · Linux
In the Linux kernel’s ASoC SOF ipc4-topology code, widget setup can return success when the number of input or output formats is zero, even though setup failed. The input does not describe an attacker action or specify access, authentication, or user-interaction conditions.
Engineers running Linux kernels with ASoC SOF ipc4-topology should check their versions; affected versions are not specified.