ASoC: codecs: rt712-sdca-dmic: 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: rt712-sdca-dmic: 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 rt712-sdca-dmic codec passes an uninitialized stream configuration to sdw_stream_add_slave(), allowing a garbage type value to be copied into the stream. The input does not specify an attacker action or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with the rt712-sdca-dmic codec should check whether their kernel includes this fix; affected versions are not specified.