net: arc: fix the device for dma_map_single/dma_unmap_single
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f959dcd6ddfd29235030e8026471ac1b022ad2b0 · < 71803c1dfa29e0d13b99e48fda11107cc8caebc7| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel’s ARC network driver uses the wrong device for DMA mapping and unmapping, which can trigger a kernel warning. The input does not describe an attacker action or specify network access, authentication, or user-interaction conditions.
Teams running Linux kernels with the ARC network driver should check their versions; affected versions are not specified.