soundwire: fix bug in sdw_add_element_group_count found by syzkaller
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9026118f20e28f202dab34f219bbb831ffb8c4dc · < f772ff5a0e6758fd412803c09e03ba3bca5f5878| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s SoundWire sdw_add_element_group_count function can access memory out of bounds when its loop reaches the entry count. The input does not specify what an attacker could do or whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the affected SoundWire code should check their kernel versions; affected versions are not specified.