CVE-2026-64041: ASoC: codecs: fs210x: fix possible buffer overflow
Greg Kroah-Hartman <[email protected]>
| Newsgroups | org.kernel.vger.linux-cve-announce |
|---|---|
| Message-ID | <2026071906-CVE-2026-64041-c0ad@gregkh> |
From: Greg Kroah-Hartman <[email protected]> Description =========== In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: fs210x: fix possible buffer overflow In fs210x_effect_scene_info(), a string was copied like this: strscpy(DST, SRC, strlen(SRC) + 1); A buffer overflow would happen if strlen(SRC) >= sizeof(DST). Actually, strscpy() must be used this way: strscpy(DST, SRC, sizeof(DST)); strscpy(DST, SRC); // defaults to sizeof(DST) The Linux kernel CVE team has assigned CVE-2026-64041 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 75611770177965ae902c87c96eace07542beff07 and fixed in 6.18.34 with commit 1ddf678bb75b6383c775ece61d40956c441d8a26 Issue introduced in 6.18 with commit 75611770177965ae902c87c96eace07542beff07 and fixed in 7.0.11 with commit 6daefdf1cd3c56483f61970a76c0ad6028e4118f Issue introduced in 6.18 with commit 75611770177965ae902c87c96eace07542beff07 and fixed in 7.1 with commit 0d435a7ebcd4e97e47673c1ab6fb27f973a053ec 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-64041 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/codecs/fs210x.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/1ddf678bb75b6383c775ece61d40956c441d8a26 https://git.kernel.org/stable/c/6daefdf1cd3c56483f61970a76c0ad6028e4118f https://git.kernel.org/stable/c/0d435a7ebcd4e97e47673c1ab6fb27f973a053ec