# CVE-2024-50295: net: arc: fix the device for dma_map_single/dma_unmap_single

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-11-19T01:30:41.999Z
- Modified: 2026-06-17T08:04:09.140Z
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from f959dcd6ddfd29235030e8026471ac1b022ad2b0 before 30606ea3fae57f8e9f2467415389e988e3c53a18; from f959dcd6ddfd29235030e8026471ac1b022ad2b0 before 3898393b5483c8aa2efd7cb13aa70e22078ab022; from f959dcd6ddfd29235030e8026471ac1b022ad2b0 before fd4e062fbc07156f8e9d73212d347c744572677e; from f959dcd6ddfd29235030e8026471ac1b022ad2b0 before 8ed7a4a39c3f7cd9655af867e878fda512ae67ad; from f959dcd6ddfd29235030e8026471ac1b022ad2b0 before cd4706d9ac0d8d3bab8dc9e50cc1187f6cfa43dd; from f959dcd6ddfd29235030e8026471ac1b022ad2b0 before 71803c1dfa29e0d13b99e48fda11107cc8caebc7; 4e57482e8440fac7137832629109730ea4b267aa; from 5.9.2 before 5.10; 5.10 (not affected: before 5.10; from 5.10.230 up to 5.10.*; from 5.15.172 up to 5.15.*; from 6.1.117 up to 6.1.*; from 6.6.61 up to 6.6.*; from 6.11.8 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.9.2 before 5.10.230; from 5.11 before 5.15.172; from 5.16 before 6.1.117; from 6.2 before 6.6.61; from 6.7 before 6.11.8; 6.12

## References

- <https://git.kernel.org/stable/c/30606ea3fae57f8e9f2467415389e988e3c53a18> (patch)
- <https://git.kernel.org/stable/c/3898393b5483c8aa2efd7cb13aa70e22078ab022> (patch)
- <https://git.kernel.org/stable/c/fd4e062fbc07156f8e9d73212d347c744572677e> (patch)
- <https://git.kernel.org/stable/c/8ed7a4a39c3f7cd9655af867e878fda512ae67ad> (patch)
- <https://git.kernel.org/stable/c/cd4706d9ac0d8d3bab8dc9e50cc1187f6cfa43dd> (patch)
- <https://git.kernel.org/stable/c/71803c1dfa29e0d13b99e48fda11107cc8caebc7> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-50295](https://www.cve.org/CVERecord?id=CVE-2024-50295), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-50295](https://nvd.nist.gov/vuln/detail/CVE-2024-50295), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50295 · Whole record: https://cve.day/CVE-2024-50295.json · Rebuilt by cve.day 2026-11-25T22:58:48.418Z
