CVE-2024-35842 ASoC: mediatek: sof-common: Add NULL check for normal_link string

Medium 5.5 Published Updated

A missing NULL check in the MediaTek SOF audio driver can cause a kernel crash, leading to denial of service.

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-35842?

CVE-2024-35842 is a medium-severity vulnerability in Linux kernel, published on 17 May 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:

ASoC: mediatek: sof-common: Add NULL check for normal_link string

It's not granted that all entries of struct sof_conn_stream declare a `normal_link` (a non-SOF, direct link) string, and this is the case for SoCs that support only SOF paths (hence do not support both direct and SOF usecases).

For example, in the case of MT8188 there is no normal_link string in any of the sof_conn_stream entries and there will be more drivers doing that in the future.

To avoid possible NULL pointer KPs, add a NULL check for `normal_link`.

Weakness: CWE-476

Which versions are affected by CVE-2024-35842?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-35842?

Apply the vendor's patch.

Is CVE-2024-35842 being exploited?

There is no known exploitation of CVE-2024-35842 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-35842, DEBIAN-CVE-2024-35842, GHSA-jrj6-7p65-rqf2, UBUNTU-CVE-2024-35842.

Is CVE-2024-35842 in your software?

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

Check your SBOMs for free