CVE-2026-98743: ASoC: codecs: rt1017-sdca-sdw: fix uninitialized stream_config->type
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98743 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit 2b7aecd58528551e6e3da58091ff7ceb4718e6be and fixed in 6.12.113 with commit 4e337c24c0a97fcdb394f954208971de5d372066 Issue introduced in 6.6 with commit 2b7aecd58528551e6e3da58091ff7ceb4718e6be and fixed in 6.18.56 with commit d195c8c763fdd0a7f74a34973f8946215a708f1e Issue introduced in 6.6 with commit 2b7aecd58528551e6e3da58091ff7ceb4718e6be and fixed in 7.2.10 with commit 7791ebf56eb4ab6b7a20252757a3029bc8068715 Issue introduced in 6.6 with commit 2b7aecd58528551e6e3da58091ff7ceb4718e6be and fixed in 7.3-rc6 with commit 174d160884199cad97413f33fe1b56027dc0d3e1
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98743
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
sound/soc/codecs/rt1017-sdca-sdw.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
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