CVE-2026-99182: ASoC: SOF: ipc4-topology: Fix shift-out-of-bounds for aggregated ALH capture
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc4-topology: Fix shift-out-of-bounds for aggregated ALH capture
When ch_count is smaller than blob->alh_cfg.device_count (e.g. a mono capture stream, such as a SmartMic, aggregated across multiple SDW links), step = ch_count / blob->alh_cfg.device_count truncates to 0. The subsequent GENMASK(step - 1, 0) then underflows step - 1 (u32) to UINT_MAX, causing GENMASK()'s internal shift to use an out-of-bounds exponent:
UBSAN: shift-out-of-bounds in sound/soc/sof/ipc4-topology.c:2363:13 shift exponent 18446744069414584384 is too large for 64-bit type 'long unsigned int'
Treat ch_count < device_count the same way as the existing "channels equal to output reference channels" case: apply the same ch_mask to every aggregated device instead of trying to split channels that can't be evenly divided.
The Linux kernel CVE team has assigned CVE-2026-99182 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.3 with commit 0390a102cc18cb7456d6c1f15ac51f1af90fcf9c and fixed in 6.18.59 with commit cad63a7798d6a6cac1fc68732595f0a3278ff6f0 Issue introduced in 6.3 with commit 0390a102cc18cb7456d6c1f15ac51f1af90fcf9c and fixed in 7.2.13 with commit 5e1322787c5e424a570e87c8c2c25e37552cbe3b Issue introduced in 6.3 with commit 0390a102cc18cb7456d6c1f15ac51f1af90fcf9c and fixed in 7.3 with commit 746de48c3a250f0c264105dcbfcdf0c5001e970b
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-99182
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/cad63a7798d6a6cac1fc68732595f0a3278ff6f0 https://git.kernel.org/stable/c/5e1322787c5e424a570e87c8c2c25e37552cbe3b https://git.kernel.org/stable/c/746de48c3a250f0c264105dcbfcdf0c5001e970b