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 C05D61E7658 for ; Wed, 4 Sep 2024 19:57:06 +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=1725479826; cv=none; b=Lxa8y2zlg5ZaqRRn/hgDgVKgRJIj2lqxyXbDyuhtnXQlyc6HHbzO9AQUZn5WiMBXoIuNmmn0gaT1yfwrvhb/yqoiQ41PhgZIre18OVw3vQPl5WWMiFDBwxtbkl/zT5CcDCddec1043Zsg0ma50UFXHeYtIzwN68i++5fMA4fGVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479826; c=relaxed/simple; bh=Fu94T1QnOmUCrMUtT1vDAWmMLRcHcnwjgtbznsxCrE4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MvVqgJrVRlO5mgeCzJlNiXdoV+6rhayTJgTEFkvVdlpjRZCaubJLNxQqjMgiZjQTTJBmL6Gdfu62PE0WnNvx3ykxdBCb+RJbRM6iJGKD/iawrWTFjfbrDPY4njBPU3OZswuDe3t98dM3zgucab/T2MOzd0+yJoJK/HA6ApVmrDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ef1kYye+; 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="Ef1kYye+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFDE1C4CEC2; Wed, 4 Sep 2024 19:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479826; bh=Fu94T1QnOmUCrMUtT1vDAWmMLRcHcnwjgtbznsxCrE4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ef1kYye+uW/WtAGtgnv6VWn7ROgFnMZCFCUOEC8lHOfA4RlNwsCs/1yWTba1s+36b JUiFwJWZ6XtMStIgV8dmyreRA2QJ7QcFY7V/nJWwcLl3xTLVJL3Gx6RAyvDNfIt+KQ cMptTFOlPcoYFAyFMSXzsX9xMsOlsHfnH/Ms0cxM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44984: bnxt_en: Fix double DMA unmapping for XDP_REDIRECT Date: Wed, 4 Sep 2024 21:56:49 +0200 Message-ID: <2024090445-CVE-2024-44984-43ea@gregkh> X-Mailer: git-send-email 2.46.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=3613; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Fu94T1QnOmUCrMUtT1vDAWmMLRcHcnwjgtbznsxCrE4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3dtfqTYyb7PzkgtzFS99eSYYGtp1ue3Ai/h6LdOTKG 1wJjy13dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBExP0Y5tkYMBn9/uihKXKk 8wrTynsHkvs65BnmB4XXmL7a25yVIb2w5teLhsNsiYdYAQ== 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: bnxt_en: Fix double DMA unmapping for XDP_REDIRECT Remove the dma_unmap_page_attrs() call in the driver's XDP_REDIRECT code path. This should have been removed when we let the page pool handle the DMA mapping. This bug causes the warning: WARNING: CPU: 7 PID: 59 at drivers/iommu/dma-iommu.c:1198 iommu_dma_unmap_page+0xd5/0x100 CPU: 7 PID: 59 Comm: ksoftirqd/7 Tainted: G W 6.8.0-1010-gcp #11-Ubuntu Hardware name: Dell Inc. PowerEdge R7525/0PYVT1, BIOS 2.15.2 04/02/2024 RIP: 0010:iommu_dma_unmap_page+0xd5/0x100 Code: 89 ee 48 89 df e8 cb f2 69 ff 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9 31 f6 31 ff 45 31 c0 e9 ab 17 71 00 <0f> 0b 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9 RSP: 0018:ffffab1fc0597a48 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff99ff838280c8 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffab1fc0597a78 R08: 0000000000000002 R09: ffffab1fc0597c1c R10: ffffab1fc0597cd3 R11: ffff99ffe375acd8 R12: 00000000e65b9000 R13: 0000000000000050 R14: 0000000000001000 R15: 0000000000000002 FS: 0000000000000000(0000) GS:ffff9a06efb80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000565c34c37210 CR3: 00000005c7e3e000 CR4: 0000000000350ef0 ? show_regs+0x6d/0x80 ? __warn+0x89/0x150 ? iommu_dma_unmap_page+0xd5/0x100 ? report_bug+0x16a/0x190 ? handle_bug+0x51/0xa0 ? exc_invalid_op+0x18/0x80 ? iommu_dma_unmap_page+0xd5/0x100 ? iommu_dma_unmap_page+0x35/0x100 dma_unmap_page_attrs+0x55/0x220 ? bpf_prog_4d7e87c0d30db711_xdp_dispatcher+0x64/0x9f bnxt_rx_xdp+0x237/0x520 [bnxt_en] bnxt_rx_pkt+0x640/0xdd0 [bnxt_en] __bnxt_poll_work+0x1a1/0x3d0 [bnxt_en] bnxt_poll+0xaa/0x1e0 [bnxt_en] __napi_poll+0x33/0x1e0 net_rx_action+0x18a/0x2f0 The Linux kernel CVE team has assigned CVE-2024-44984 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 578fcfd26e2a and fixed in 6.6.48 with commit fa4e6ae38574 Issue introduced in 6.6 with commit 578fcfd26e2a and fixed in 6.10.7 with commit 95a305ba259b Issue introduced in 6.6 with commit 578fcfd26e2a and fixed in 6.11-rc5 with commit 8baeef7616d5 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-44984 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/broadcom/bnxt/bnxt_xdp.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/fa4e6ae38574d0fc5596272bee64727d8ab7052b https://git.kernel.org/stable/c/95a305ba259b685780ed62ea2295aa2feb2d6c0c https://git.kernel.org/stable/c/8baeef7616d5194045c5a6b97fd1246b87c55b13