CVE-2024-50292 ASoC: stm32: spdifrx: fix dma channel release in stm32_spdifrx_remove
A null pointer dereference in the STM32 SPDIFRX driver causes a kernel crash during device removal if DMA channel request fails.
- 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-50292?
CVE-2024-50292 is a medium-severity vulnerability in Linux kernel, published on 19 Nov 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: stm32: spdifrx: fix dma channel release in stm32_spdifrx_remove
In case of error when requesting ctrl_chan DMA channel, ctrl_chan is not null. So the release of the dma channel leads to the following issue: [ 4.879000] st,stm32-spdifrx 500d0000.audio-controller: dma_request_slave_channel error -19 [ 4.888975] Unable to handle kernel NULL pointer dereference at virtual address 000000000000003d [...] [ 5.096577] Call trace: [ 5.099099] dma_release_channel+0x24/0x100 [ 5.103235] stm32_spdifrx_remove+0x24/0x60 [snd_soc_stm32_spdifrx] [ 5.109494] stm32_spdifrx_probe+0x320/0x4c4 [snd_soc_stm32_spdifrx]
To avoid this issue, release channel only if the pointer is valid.
Weakness: CWE-476
Which versions are affected by CVE-2024-50292?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50292?
Apply the vendor's patch.
Is CVE-2024-50292 being exploited?
There is no known exploitation of CVE-2024-50292 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-54927, BELL-CVE-2024-50292, DEBIAN-CVE-2024-50292, GHSA-pr36-74pg-m583, UBUNTU-CVE-2024-50292.