CVE-2024-42238 firmware: cs_dsp: Return error if block header overflows file
A buffer overflow in the Linux kernel's cs_dsp firmware loader allows attackers to cause a denial of service or potentially execute code via malformed firmware files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42238?
CVE-2024-42238 is a medium-severity memory corruption vulnerability in Linux kernel, published on 7 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
firmware: cs_dsp: Return error if block header overflows file
Return an error from cs_dsp_power_up() if a block header is longer than the amount of data left in the file.
The previous code in cs_dsp_load() and cs_dsp_load_coeff() would loop while there was enough data left in the file for a valid region. This protected against overrunning the end of the file data, but it didn't abort the file processing with an error.
Weakness: CWE-120
Which versions are affected by CVE-2024-42238?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42238?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-42238 being exploited?
There is no known exploitation of CVE-2024-42238 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-47486, BELL-CVE-2024-42238, DEBIAN-CVE-2024-42238, GHSA-vfhx-cqwc-hf57, UBUNTU-CVE-2024-42238.