CVE-2026-142836: ALSA: cs46xx: fix unit mismatch in DSP code area bounds check
ALSA: cs46xx: fix unit mismatch in DSP code area bounds check
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems are exposed when the cs46xx DSP module-loading path processes a firmware file containing a code segment larger than 28 KiB. The affected code is in the Linux kernel ALSA cs46xx driver.
What does a triggering firmware file cause?
A code segment exceeding the actual shadow-buffer capacity can pass the faulty bounds check. This causes an out-of-bounds write in shadow_and_reallocate_code() and an out-of-bounds read in snd_cs46xx_download().
How does the fix prevent oversized or malicious code segments from bypassing validation?
The corrected check compares the offset and size as 32-bit words against DSP_CODE_BYTE_SIZE/4 rather than against a byte count. It also uses a u64 cast for the sum so a very large code->size value cannot wrap around the bounds check.