CVE-2024-42088
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
29/07/2024
Last modified:
25/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
ASoC: mediatek: mt8195: Add platform entry for ETDM1_OUT_BE dai link<br />
<br />
Commit e70b8dd26711 ("ASoC: mediatek: mt8195: Remove afe-dai component<br />
and rework codec link") removed the codec entry for the ETDM1_OUT_BE<br />
dai link entirely instead of replacing it with COMP_EMPTY(). This worked<br />
by accident as the remaining COMP_EMPTY() platform entry became the codec<br />
entry, and the platform entry became completely empty, effectively the<br />
same as COMP_DUMMY() since snd_soc_fill_dummy_dai() doesn&#39;t do anything<br />
for platform entries.<br />
<br />
This causes a KASAN out-of-bounds warning in mtk_soundcard_common_probe()<br />
in sound/soc/mediatek/common/mtk-soundcard-driver.c:<br />
<br />
for_each_card_prelinks(card, i, dai_link) {<br />
if (adsp_node && !strncmp(dai_link->name, "AFE_SOF", strlen("AFE_SOF")))<br />
dai_link->platforms->of_node = adsp_node;<br />
else if (!dai_link->platforms->name && !dai_link->platforms->of_node)<br />
dai_link->platforms->of_node = platform_node;<br />
}<br />
<br />
where the code expects the platforms array to have space for at least one entry.<br />
<br />
Add an COMP_EMPTY() entry so that dai_link->platforms has space.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.9.8 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.10:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.10:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



