Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A74225634 for ; Tue, 19 Nov 2024 01:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980075; cv=none; b=d+xJW/gfX8fRyeILXoIEWKQ1A+18jJ72m8ZMAajjJlqHVL/sRao+y1iiJd4bIeO2qZniQOt+6t+6CzVZiBnVHnKvTNKI8TFi9nIjR+DEg4o8+/lIrpijBd0gPdvGx4NUCbdlZC58AbhQI8seTnSBJSks35edA5uK52kbyRKo2zg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980075; c=relaxed/simple; bh=srmaaZtXsvnxb7f1TG+5gygPI7H+ybjmITzPZB4k1Qg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=llnb6nrMfu++qRYDw4LMwl4CpvWJmE8sR4Qp+OolPi6r34HjXK7A0TYjjNvQMNkmRrQuQNqYtL10PKqempqEdEIZpMQvlXh/cBXyWouP7U6ffbPMeSr0DZuEYTxVJMf+/sNM9+gqctvk1r+cRtJ20y/RZSIj/RSsim08J4pIt30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SLBhIxFY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="SLBhIxFY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCC39C4CECC; Tue, 19 Nov 2024 01:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980075; bh=srmaaZtXsvnxb7f1TG+5gygPI7H+ybjmITzPZB4k1Qg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SLBhIxFYmABTyQmGH81D+jDa5ynmSQ0kNDSNXvJxJdA2ERgbJPety+zqgp1dEyO+g 2t36dqiuucLVYMxy/1TJT/gAfK95CExe4Pj8D29egdcSopH29OaYvqCl0RHOtGxh33 mNZIb5lzzFCep+BACbwff8e91lm3BXUvjGFIDRdc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50295: net: arc: fix the device for dma_map_single/dma_unmap_single Date: Tue, 19 Nov 2024 02:32:50 +0100 Message-ID: <2024111959-CVE-2024-50295-1201@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=srmaaZtXsvnxb7f1TG+5gygPI7H+ybjmITzPZB4k1Qg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr86UXW5i3lJ61dnkt93e3zUi/3Yyvfq80TalcsrqW xVHN6mad8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE/j9mmGfKZS7o9JJ9mWxY lePMGiZpy4IrHAwLNljKNv/vdrts1XRrvxC3VbqCav05AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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 f959dcd6ddfd and fixed in 5.10.230 with commit 30606ea3fae5 Issue introduced in 5.10 with commit f959dcd6ddfd and fixed in 5.15.172 with commit 3898393b5483 Issue introduced in 5.10 with commit f959dcd6ddfd and fixed in 6.1.117 with commit fd4e062fbc07 Issue introduced in 5.10 with commit f959dcd6ddfd and fixed in 6.6.61 with commit 8ed7a4a39c3f Issue introduced in 5.10 with commit f959dcd6ddfd and fixed in 6.11.8 with commit cd4706d9ac0d Issue introduced in 5.10 with commit f959dcd6ddfd and fixed in 6.12 with commit 71803c1dfa29 Issue introduced in 4.4.276 with commit 209fcdad5706 Issue introduced in 4.9.276 with commit 7c4a0c1e82d2 Issue introduced in 4.14.240 with commit dd47d2fe0639 Issue introduced in 4.19.198 with commit c58022e95bd6 Issue introduced in 5.4.134 with commit 6c50a56d2bce Issue introduced in 5.9.2 with commit 4e57482e8440 Issue introduced in 5.10.52 with commit f8763ab3fb86 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