CVE-2024-35842 ASoC: mediatek: sof-common: Add NULL check for normal_link string
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.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-35842, DEBIAN-CVE-2024-35842, GHSA-jrj6-7p65-rqf2, UBUNTU-CVE-2024-35842.