Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 2b7aecd58528551e6e3da58091ff7ceb4718e6be before 30a60e74ee71de027bf1387ac20d73e863bbf77b; affected 2b7aecd58528551e6e3da58091ff7ceb4718e6be before 4e337c24c0a97fcdb394f954208971de5d372066; affected 2b7aecd58528551e6e3da58091ff7ceb4718e6be before d195c8c763fdd0a7f74a34973f8946215a708f1e; affected 2b7aecd58528551e6e3da58091ff7ceb4718e6be before 7791ebf56eb4ab6b7a20252757a3029bc8068715; affected 2b7aecd58528551e6e3da58091ff7ceb4718e6be before 174d160884199cad97413f33fe1b56027dc0d3e1 |
| Linux / Linux | affected 6.6; unaffected 0 before 6.6; unaffected 6.6.160 through 6.6.*; unaffected 6.12.113 through 6.12.*; unaffected 6.18.56 through 6.18.*; unaffected 7.2.10 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/30a60e74ee71de027bf1387ac20d73e863bbf77b
- https://git.kernel.org/stable/c/4e337c24c0a97fcdb394f954208971de5d372066
- https://git.kernel.org/stable/c/d195c8c763fdd0a7f74a34973f8946215a708f1e
- https://git.kernel.org/stable/c/7791ebf56eb4ab6b7a20252757a3029bc8068715
- https://git.kernel.org/stable/c/174d160884199cad97413f33fe1b56027dc0d3e1