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 BDF8576026 for ; Thu, 18 Jul 2024 07:04:13 +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=1721286253; cv=none; b=oyEu5ca0D0viJis0wZ5g+wd5lKmF9mGJ5y2glj8MAgio3LF/Je3Cqi4yX4tW4X+PWAsGJeW1z5mLZfzv97Ewa8mo9F7ghqBAazhICfKLMPAUHzXwIsA0eiU+wt7FICWLq00LfjiBINi3iIayM7bYfzxUyy9EEOkx2r8bbMfn6IQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721286253; c=relaxed/simple; bh=JfRHjEFHg7upk+zGZi4bsIBxdwRfqydIN7freU63/gE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S0xOCq4WWCbrIzBtP/UZ3SmEPMYgn8vaAvVBSTrL8zndjNMbbPCZLvoXI/395WqtZR0A+dIv0gS4X0ZiigZ2zClqmuLjvdUd9idQZqaswai02ePwJW0xnelAU3dFbA25NalmT3HEJ2ALR3IYOoSdI0rDQ0QQ0BDJikK9GnVRo74= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IaG/QeNW; 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="IaG/QeNW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB3D1C116B1; Thu, 18 Jul 2024 07:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721286253; bh=JfRHjEFHg7upk+zGZi4bsIBxdwRfqydIN7freU63/gE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IaG/QeNWHuc2b5CAtYmpWvlZZwO1yy/gmUr6KG1ICLAfjHLe5bPSXs/+SWvT4vw+g WZujlao6L3BEI+MoTMmtPELzlFXQI72XRvrwZdopKPLxZ2rUZ18HRZAacxKqAkO/QT HeY03KpNlwdYhYHoETm7zwp1pNWwtgZcYhCPmWmU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41011: drm/amdkfd: don't allow mapping the MMIO HDP page with large pages Date: Thu, 18 Jul 2024 09:04:08 +0200 Message-ID: <2024071807-CVE-2024-41011-616d@gregkh> X-Mailer: git-send-email 2.45.2 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=2360; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JfRHjEFHg7upk+zGZi4bsIBxdwRfqydIN7freU63/gE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkz9qW7Xs65uGvbcb3uGeJKXRtSt90X77103tS6cV1ds cPZOzt/dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVC8zzOEX2L5xfnvEomMT PFe+17PhXMG4qp9hwd7InoNXqnOWSKVP6U/LX8MkwNRXAgA= 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: drm/amdkfd: don't allow mapping the MMIO HDP page with large pages We don't get the right offset in that case. The GPU has an unused 4K area of the register BAR space into which you can remap registers. We remap the HDP flush registers into this space to allow userspace (CPU or GPU) to flush the HDP when it updates VRAM. However, on systems with >4K pages, we end up exposing PAGE_SIZE of MMIO space. The Linux kernel CVE team has assigned CVE-2024-41011 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit d8e408a82704 and fixed in 6.1.91 with commit 89fffbdf535c Issue introduced in 5.3 with commit d8e408a82704 and fixed in 6.6.31 with commit 4b4cff994a27 Issue introduced in 5.3 with commit d8e408a82704 and fixed in 6.8.10 with commit 6186c9356088 Issue introduced in 5.3 with commit d8e408a82704 and fixed in 6.9 with commit be4a2a81b6b9 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-41011 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/gpu/drm/amd/amdkfd/kfd_chardev.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/89fffbdf535ce659c1a26b51ad62070566e33b28 https://git.kernel.org/stable/c/4b4cff994a27ebf7bd3fb9a798a1cdfa8d01b724 https://git.kernel.org/stable/c/6186c93560889265bfe0914609c274eff40bbeb5 https://git.kernel.org/stable/c/be4a2a81b6b90d1a47eaeaace4cc8e2cb57b96c7