CVE-2024-42088·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: mt8195: Add platform entry for ETDM1_OUT_BE dai link Commit e70b8dd26711 ("ASoC: mediatek: mt8195: Remove afe-dai component and rework codec link") removed the codec entry for the ETDM1_OUT_BE dai link entirely instead of replacing it with COMP_EMPTY(). This worked by accident as the remaining COMP_EMPTY() platform entry became the codec entry, and the platform entry became completely empty, effectively the same as COMP_DUMMY() since snd_soc_fill_dummy_dai() doesn't do anything for platform entries. This causes a KASAN out-of-bounds warning in mtk_soundcard_common_probe() in sound/soc/mediatek/common/mtk-soundcard-driver.c: for_each_card_prelinks(card, i, dai_link) { if (adsp_node && !strncmp(dai_link->name, "AFE_SOF", strlen("AFE_SOF"))) dai_link->platforms->of_node = adsp_node; else if (!dai_link->platforms->name && !dai_link->platforms->of_node) dai_link->platforms->of_node = platform_node; } where the code expects the platforms array to have space for at least one entry. Add an COMP_EMPTY() entry so that dai_link->platforms has space.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.8
- Published
- 2024-07-29
Affected versions
From: 6.8
Until: 6.9.8
Fixed in: 6.9.8
How to fix this CVE
Update your Linux kernel to version 6.9.8 or later to resolve a memory access validation issue in the MediaTek MT8195 audio driver. This vulnerability affects ETDM1_OUT_BE DAI link configuration and can cause kernel panics during sound card initialization. Apply the patch immediately if you are running kernel versions 6.8 through 6.9.7.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check the currently running kernel version and verify if it is between 6.8 and 6.9.7
- Check if MediaTek MT8195 audio hardware is present: `lspci | grep -i mediatek` or `cat /proc/asound/cards`
- Search kernel logs for KASAN warnings related to mtk_soundcard_common_probe: `dmesg | grep -i 'KASAN\|mtk_soundcard\|out-of-bounds'`
- Verify the fix by confirming kernel version is 6.9.8 or later: `uname -r | grep -E '6\.(9\.[8-9]|10|11)' && echo 'Patched' || echo 'Vulnerable'`
FAQ
What is CVE-2024-42088?
CVE-2024-42088 is a memory access vulnerability in the Linux kernel's MediaTek MT8195 audio subsystem where a missing platform component entry causes an out-of-bounds array access during sound card initialization, potentially leading to kernel crashes.
Is CVE-2024-42088 being actively exploited?
No, this vulnerability is not being actively exploited in the wild and no public exploits are available. However, it can be triggered locally by users with sufficient privileges.
What versions of Kernel are affected by CVE-2024-42088?
Linux kernel versions 6.8 through 6.9.7 are affected. The vulnerability was introduced in commit e70b8dd26711 and fixed in version 6.9.8.
How do I check if my server is vulnerable to CVE-2024-42088?
Run `uname -r` and check if the version falls between 6.8 and 6.9.7. Additionally, verify if MediaTek MT8195 audio is present with `cat /proc/asound/cards | grep -i mediatek`.
Does Defensia detect CVE-2024-42088?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-42088 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42088. Free for 1 server.
Get started free