ASoC: codecs: rt1017-sdca-sdw: fix uninitialized stream_config->type
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s rt1017-sdca-sdw codec passes an uninitialized stream configuration to sdw_stream_add_slave(). When the stream is configured, its type may contain garbage; the input does not specify an attacker action, access requirements, or user interaction.
Engineers running the Linux kernel should check their affected versions; no version range is provided.