CVE-2026-98263: ASoC: codecs: rt712-sdca-dmic: fix uninitialized stream_config->type
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98263 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4 with commit 63a511284c9ea72696a5dd0a2d2721bdef19f774 and fixed in 6.6.158 with commit 6507055733a9d397289277408b52daf422f8a814 Issue introduced in 6.4 with commit 63a511284c9ea72696a5dd0a2d2721bdef19f774 and fixed in 6.12.112 with commit c144447c207e2be24d6ac86d544691ba464caad8 Issue introduced in 6.4 with commit 63a511284c9ea72696a5dd0a2d2721bdef19f774 and fixed in 6.18.54 with commit d93988c9e58d37b677f6ee8aceae741c8d1e30ad Issue introduced in 6.4 with commit 63a511284c9ea72696a5dd0a2d2721bdef19f774 and fixed in 7.2.8 with commit a318ee718e7448cd6bf62d9b3197b6a6a8d4701e Issue introduced in 6.4 with commit 63a511284c9ea72696a5dd0a2d2721bdef19f774 and fixed in 7.3-rc4 with commit 03a5699a0a04309c597683967aaaf25d1e555ea2
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-98263
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/rt712-sdca-dmic.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/6507055733a9d397289277408b52daf422f8a814 https://git.kernel.org/stable/c/c144447c207e2be24d6ac86d544691ba464caad8 https://git.kernel.org/stable/c/d93988c9e58d37b677f6ee8aceae741c8d1e30ad https://git.kernel.org/stable/c/a318ee718e7448cd6bf62d9b3197b6a6a8d4701e https://git.kernel.org/stable/c/03a5699a0a04309c597683967aaaf25d1e555ea2