Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 9026118f20e28f202dab34f219bbb831ffb8c4dc before a2275dce05e6d1cce69bf68f23ea7a63c0c54bae; affected 9026118f20e28f202dab34f219bbb831ffb8c4dc before 5c3ce6d3559ce57e6c3108aa9ecf7b32764188c5; affected 9026118f20e28f202dab34f219bbb831ffb8c4dc before a454f61747c97e2eadaa7a35ffc1f4b1645c6a53; affected 9026118f20e28f202dab34f219bbb831ffb8c4dc before e483a406a23a92d5202e8d324f206e127eef48ff; affected 9026118f20e28f202dab34f219bbb831ffb8c4dc before f772ff5a0e6758fd412803c09e03ba3bca5f5878 |
| Linux / Linux | affected 5.10; unaffected 0 before 5.10; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/a2275dce05e6d1cce69bf68f23ea7a63c0c54bae
- https://git.kernel.org/stable/c/5c3ce6d3559ce57e6c3108aa9ecf7b32764188c5
- https://git.kernel.org/stable/c/a454f61747c97e2eadaa7a35ffc1f4b1645c6a53
- https://git.kernel.org/stable/c/e483a406a23a92d5202e8d324f206e127eef48ff
- https://git.kernel.org/stable/c/f772ff5a0e6758fd412803c09e03ba3bca5f5878
ADP enrichment
No English description supplied.
No references supplied.