CVE-2024-42238 firmware: cs_dsp: Return error if block header overflows file

Medium 5.5 Published Updated

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.

All Linux kernel vulnerabilities

Sources

Also known as AZL-47486, BELL-CVE-2024-42238, DEBIAN-CVE-2024-42238, GHSA-vfhx-cqwc-hf57, UBUNTU-CVE-2024-42238.

Is CVE-2024-42238 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free