В ядре Linux устранена следующая уязвимость: ASoC: SOF: ipc4-топология: ошибка Return для недопустимого числа форматов When число входных или выходных форматов равно нулю, sof_ipc4_widget_setup_comp_src() и sof_ipc4_widget_setup_comp_asrc() печатают ошибку и переходят к метке очистки. В этот момент 'ret' по-прежнему равен 0, потому что более ранний вызов sof_ipc4_get_audio_fmt() удался, поэтому функция возвращает успех, и звонящий никогда не узнает, что установка виджета на самом деле потерпела неудачу. Установите ret на -EINVAL перед goto, чтобы сообщить об ошибке.
Показать оригинальное описание (EN)
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.
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
7.2
|
7.2.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
7.2
|
7.3-rc1
|