В ядре Linux устранена следующая уязвимость: ASoC: кодеки: rt1017-sdca-sdw: fix uninitialized stream_config->type stream_config не инициализируется перед передачей в sdw_stream_add_slave(). Поле типа может содержать мусор и позже копируется в stream->type с помощью sdw_config_stream(). Zero-initialize stream_config, поэтому тип по умолчанию SDW_STREAM_PCM.
При этом используйте помощник snd_sdw_params_to_config() вместо открытого кодирования той же логики.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: rt1017-sdca-sdw: fix uninitialized stream_config->type stream_config is not initialized before being passed to sdw_stream_add_slave(). The type field may contain garbage and is later copied to stream->type by sdw_config_stream(). Zero-initialize stream_config so type defaults to SDW_STREAM_PCM. While at it, use snd_sdw_params_to_config() helper instead of open-coding the same logic.