CVE-2024-50292: ASoC: stm32: spdifrx: fix dma channel release in stm32_spdifrx_remove
In the Linux kernel, the following vulnerability has been resolved:
ASoC: stm32: spdifrx: fix dma channel release in stm32spdifrxremove
In case of error when requesting ctrlchan DMA channel, ctrlchan is not null. So the release of the dma channel leads to the following issue: [ 4.879000] st,stm32-spdifrx 500d0000.audio-controller: dmarequestslavechannel error -19 [ 4.888975] Unable to handle kernel NULL pointer dereference at virtual address 000000000000003d [...] [ 5.096577] Call trace: [ 5.099099] dmareleasechannel+0x24/0x100 [ 5.103235] stm32spdifrxremove+0x24/0x60 [sndsocstm32spdifrx] [ 5.109494] stm32spdifrxprobe+0x320/0x4c4 [sndsocstm32spdifrx]
To avoid this issue, release channel only if the pointer is valid.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Compensating control
Modify stm32_spdifrx_remove to release the DMA channel only when the ctrl_chan pointer is valid.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50292?
CVE-2024-50292 is considered a medium severity vulnerability due to the potential for resource management issues.
How do I fix CVE-2024-50292?
To fix CVE-2024-50292, update your Linux kernel to the latest patched version that resolves this issue.
Which versions of the Linux kernel are affected by CVE-2024-50292?
CVE-2024-50292 affects Linux kernel versions between 5.7 to 6.12-rc6.
What action should I take if I am using an affected Linux kernel for CVE-2024-50292?
If using an affected Linux kernel, it is recommended to update to a version that has mitigations for CVE-2024-50292.
Is CVE-2024-50292 a remote vulnerability?
CVE-2024-50292 is not specifically a remote vulnerability as it involves local resource management in the Linux kernel.