Bug 2327179 (CVE-2024-50295) - CVE-2024-50295 kernel: net: arc: fix the device for dma_map_single/dma_unmap_single
Summary: CVE-2024-50295 kernel: net: arc: fix the device for dma_map_single/dma_unmap_...
Keywords:
Status: NEW
Alias: CVE-2024-50295
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2327241
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-19 02:02 UTC by OSIDB Bzimport
Modified: 2024-11-21 19:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-19 02:02:07 UTC
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

Comment 1 Avinash Hanwate 2024-11-19 05:34:16 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024111959-CVE-2024-50295-1201@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.