CVE-2024-50295 net: arc: fix the device for dma_map_single/dma_unmap_single
Incorrect DMA device usage in the ARC network driver triggers a kernel warning, potentially leading to system instability or denial of service.
- 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-50295?
CVE-2024-50295 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:
net: arc: fix the device for dma_map_single/dma_unmap_single
The ndev->dev and pdev->dev aren't the same device, use ndev->dev.parent which has dma_mask, ndev->dev.parent is just pdev->dev. Or it would cause the following issue:
[ 39.933526] ------------[ cut here ]------------ [ 39.938414] WARNING: CPU: 1 PID: 501 at kernel/dma/mapping.c:149 dma_map_page_attrs+0x90/0x1f8
Which versions are affected by CVE-2024-50295?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50295?
Apply the vendor's patch.
Is CVE-2024-50295 being exploited?
There is no known exploitation of CVE-2024-50295 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-50295, DEBIAN-CVE-2024-50295, GHSA-xr85-qg34-q2mx, UBUNTU-CVE-2024-50295.