CVE-2026-93187: ASoC: SOF: ipc4-topology: Return error for invalid number of formats
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc4-topology: Return error for invalid number of formats
When the number of input or output formats is zero, sof_ipc4_widget_setup_comp_src() and sof_ipc4_widget_setup_comp_asrc() print an error and jump to the cleanup label. At that point 'ret' is still 0, because the earlier sof_ipc4_get_audio_fmt() call succeeded, so the function returns success and the caller never finds out that the widget setup actually failed.
Set ret to -EINVAL before the goto so the error gets reported.
The Linux kernel CVE team has assigned CVE-2026-93187 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.2 with commit 21a5adffad463344e9aca6ee697f45a079cb3ef5 and fixed in 7.2.6 with commit 4992cdc4eb97981d6ea66002c5b764a6115edb0c Issue introduced in 7.2 with commit 21a5adffad463344e9aca6ee697f45a079cb3ef5 and fixed in 7.3-rc1 with commit 11e828cd6b0f283ebe9dc6b4cffd38e3321e7725
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-93187
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/sof/ipc4-topology.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/4992cdc4eb97981d6ea66002c5b764a6115edb0c https://git.kernel.org/stable/c/11e828cd6b0f283ebe9dc6b4cffd38e3321e7725