blob: 34a84d270bf6e80355a5fff99dfb7e725ccd49b4 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-50295: net: arc: fix the device for dma_map_single/dma_unmap_single
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
The Linux kernel CVE team has assigned CVE-2024-50295 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 and fixed in 5.10.230 with commit 30606ea3fae57f8e9f2467415389e988e3c53a18
Issue introduced in 5.10 with commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 and fixed in 5.15.172 with commit 3898393b5483c8aa2efd7cb13aa70e22078ab022
Issue introduced in 5.10 with commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 and fixed in 6.1.117 with commit fd4e062fbc07156f8e9d73212d347c744572677e
Issue introduced in 5.10 with commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 and fixed in 6.6.61 with commit 8ed7a4a39c3f7cd9655af867e878fda512ae67ad
Issue introduced in 5.10 with commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 and fixed in 6.11.8 with commit cd4706d9ac0d8d3bab8dc9e50cc1187f6cfa43dd
Issue introduced in 5.10 with commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 and fixed in 6.12 with commit 71803c1dfa29e0d13b99e48fda11107cc8caebc7
Issue introduced in 5.9.2 with commit 4e57482e8440fac7137832629109730ea4b267aa
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-50295
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/arc/emac_main.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/30606ea3fae57f8e9f2467415389e988e3c53a18
https://git.kernel.org/stable/c/3898393b5483c8aa2efd7cb13aa70e22078ab022
https://git.kernel.org/stable/c/fd4e062fbc07156f8e9d73212d347c744572677e
https://git.kernel.org/stable/c/8ed7a4a39c3f7cd9655af867e878fda512ae67ad
https://git.kernel.org/stable/c/cd4706d9ac0d8d3bab8dc9e50cc1187f6cfa43dd
https://git.kernel.org/stable/c/71803c1dfa29e0d13b99e48fda11107cc8caebc7