В ядре Linux устранена следующая уязвимость:
ASoC: SOF: sof-audio: исправить путь ошибки в sof_widget_setup_unlocked()
Если во время работы виджета произойдет сбой tplg_ops->dai_config или widget_kcontrol_setup.
при настройке мы бы дважды уменьшили значение use_count виджета, потому что
sof_widget_free_unlocked() будет вызываться дважды, аналогично core_put
будет вызываться дважды.
Поскольку use_count и core_put() обрабатываются в widget_free
функцию, которую нам нужно вернуть, не проваливаясь через Pipe_widget_free
этикетка.
Тег fixes выбирается для последнего изменения в этой части кода.
который достаточно стар для целей резервного копирования.
Показать оригинальное описание (EN)
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.