CVE-2026-72488: soundwire: fix bug in sdw_add_element_group_count found by syzkaller
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
soundwire: fix bug in sdw_add_element_group_count found by syzkaller
The original implementation caused an out-of-bounds memory access in the sdw_add_element_group_count for-loop when i == num.
for (i = 0; i <= num; i++) {
if (rate == group->rates[i] && lane == group->lanes[i])
...To fix this error, the function now checks for existing rate/lane entries in the group(a function parameter) using a for-loop before adding them.
No functional changes apart from this fix.
The Linux kernel CVE team has assigned CVE-2026-72488 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 9026118f20e28f202dab34f219bbb831ffb8c4dc and fixed in 6.18.40 with commit a454f61747c97e2eadaa7a35ffc1f4b1645c6a53 Issue introduced in 5.10 with commit 9026118f20e28f202dab34f219bbb831ffb8c4dc and fixed in 7.1.5 with commit e483a406a23a92d5202e8d324f206e127eef48ff Issue introduced in 5.10 with commit 9026118f20e28f202dab34f219bbb831ffb8c4dc and fixed in 7.2-rc1 with commit f772ff5a0e6758fd412803c09e03ba3bca5f5878
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-72488
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:
drivers/soundwire/generic_bandwidth_allocation.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/a454f61747c97e2eadaa7a35ffc1f4b1645c6a53 https://git.kernel.org/stable/c/e483a406a23a92d5202e8d324f206e127eef48ff https://git.kernel.org/stable/c/f772ff5a0e6758fd412803c09e03ba3bca5f5878