ASoC: SOF: sof-audio: Fix error path in sof_widget_setup_unlocked()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| 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: sof-audio: Fix error path in sof_widget_setup_unlocked()
If either tplg_ops->dai_config or widget_kcontrol_setup fail during widget setup we would double decrement the use_count of the widget because the sof_widget_free_unlocked() would be called twice, similarly the core_put would be invoked twice as well.
Since the use_count and core_put() is handled within the widget_free function we need to return without falling through the pipe_widget_free label.
The fixes tag is picked to the last change around this part of the code which is adequately old enough for backporting purposes.
From the CVE record · Linux
The Linux kernel’s SOF audio widget setup error path can free a widget twice if DAI configuration or widget control setup fails, double-decrementing its use count and calling core_put() twice. The input does not describe an attacker outcome or specify whether exploitation requires local or network access, authentication, or user interaction.
Teams running the Linux kernel with SOF audio support should check their installations; affected versions are not specified.