cve/2024/CVE-2024-42088.md
2025-09-29 21:09:30 +02:00

20 lines
1.8 KiB
Markdown

### [CVE-2024-42088](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42088)
![](https://img.shields.io/static/v1?label=Product&message=Linux&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=6.8%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=e70b8dd26711704b1ff1f1b4eb3d048ba69e29da%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=blue)
### Description
In the Linux kernel, the following vulnerability has been resolved:ASoC: mediatek: mt8195: Add platform entry for ETDM1_OUT_BE dai linkCommit e70b8dd26711 ("ASoC: mediatek: mt8195: Remove afe-dai componentand rework codec link") removed the codec entry for the ETDM1_OUT_BEdai link entirely instead of replacing it with COMP_EMPTY(). This workedby accident as the remaining COMP_EMPTY() platform entry became the codecentry, and the platform entry became completely empty, effectively thesame as COMP_DUMMY() since snd_soc_fill_dummy_dai() doesn't do anythingfor 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/fkie-cad/nvd-json-data-feeds