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 A41CA1EB9EF for ; Mon, 21 Oct 2024 18:54:43 +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=1729536883; cv=none; b=c8GRsSaDt1/Hrk4l6wjdZnTAtxMVh5lCC3XyBGdWkrw/kydYEMjUCHAHV6NqmxfGs2LLNwduUuw9/VpAWI/kO2KiBpqBWNPEq61AVk4DQxGne/wrBXiWabmGXwKV+aWYlGalOzxFfwsKNJx7lYkKhTQ11V+E6I99P1NaPI5f9Qw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729536883; c=relaxed/simple; bh=8dg8me0Ts0HJdVs0K0UepASc6smxN/UQq4R56HGbl5I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IZmboFdNbQwaWmIRwH5ZVslYH5xJJi6mnLnbmo2a3eVPFSbVDLX+/FLAB027t0hHN9Ee/Dm3YbAYJ8ldhl/keo3PA0sWPT3ux20qS94W1TUW82t3qvJKwH2Xf/b5Lbmckmht8MMnE+yxDOgK+W829xMxek65BXAUuI49rtbeoVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=elLa9Kj8; 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="elLa9Kj8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1257DC4CEC3; Mon, 21 Oct 2024 18:54:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729536883; bh=8dg8me0Ts0HJdVs0K0UepASc6smxN/UQq4R56HGbl5I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=elLa9Kj8fFqBaK4dWpIjYt6PIs82znrqXF0UawHhYisDd36sr/r2j++1jsEaUjYvE RNFH88khS6tzh9Zeq8uXmAmoT3sB0twHl20N3oohpduPwracvc+Do7nhJHfyAhddX4 xroJ21a5TCivrbyYc38s1zo25J7KJlUjh/aeoofQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50017: x86/mm/ident_map: Use gbpages only where full GB page should be mapped. Date: Mon, 21 Oct 2024 20:54:21 +0200 Message-ID: <2024102110-CVE-2024-50017-f157@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=2683; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8dg8me0Ts0HJdVs0K0UepASc6smxN/UQq4R56HGbl5I=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlii4PWX++fcql3b8a8o0ZbO07u+BF9/HnvAR82wdXmv wpvLwy83BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATWZjEMJMxIvHFiwuqeqc3 rSrbmB7g5TmxQY9hfiij3PKgJtME7tLc0qkKjb0cpy/rAgA= 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: x86/mm/ident_map: Use gbpages only where full GB page should be mapped. When ident_pud_init() uses only GB pages to create identity maps, large ranges of addresses not actually requested can be included in the resulting table; a 4K request will map a full GB. This can include a lot of extra address space past that requested, including areas marked reserved by the BIOS. That allows processor speculation into reserved regions, that on UV systems can cause system halts. Only use GB pages when map creation requests include the full GB page of space. Fall back to using smaller 2M pages when only portions of a GB page are included in the request. No attempt is made to coalesce mapping requests. If a request requires a map entry at the 2M (pmd) level, subsequent mapping requests within the same 1G region will also be at the pmd level, even if adjacent or overlapping such requests could have been combined to map a full GB page. Existing usage starts with larger regions and then adds smaller regions, so this should not have any great consequence. The Linux kernel CVE team has assigned CVE-2024-50017 to this issue. Affected and fixed versions =========================== Fixed in 6.10.14 with commit d80a99892f7a Fixed in 6.11.3 with commit a23823098ab2 Fixed in 6.12-rc1 with commit cc31744a2945 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-50017 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: arch/x86/mm/ident_map.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/d80a99892f7a992d103138fa4636b2c33abd6740 https://git.kernel.org/stable/c/a23823098ab2c277c14fc110b97d8d5c83597195 https://git.kernel.org/stable/c/cc31744a294584a36bf764a0ffa3255a8e69f036