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 194DD2FE06D for ; Tue, 19 Aug 2025 17:20:05 +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=1755624005; cv=none; b=ec18I4PEoyfLAG1yJYmQSANrPceFP/9oWmgDXbgJVjresxkk6Qqe/kqfEycqkW7cRj0xqKrb5UP6JkGftR1YyYAYmuoPoIUVG2jWdPEPuQMiQ/yt99YVniowA373ZWFI9tW7Ex0gDR9FfjXs+fDNIESPRnlVCJJTAG1Dqr4Bn+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624005; c=relaxed/simple; bh=cx7eHVowzsuPAH3G6si85bIqDGYA+P2gQDkoTOTsuPI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IyeV7RnF1UynxdwP5O3o4BoCYb4PZiP4jA7qCa9LU53XoTdTViA+qvOJxl+N5OG4Fl5GKDANNPfs9Uk5ixM08wQYOHMgv/vdSYRNGcnEm/HsOIOMdIHbEElJbO9C6uJheifNjXHOUHsn6vk1ZaRBPwsLet67K/cT6ghhne2aApA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gWoOcejT; 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="gWoOcejT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F50CC4CEF1; Tue, 19 Aug 2025 17:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624004; bh=cx7eHVowzsuPAH3G6si85bIqDGYA+P2gQDkoTOTsuPI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gWoOcejTwIUYetqszLaJNjlmfJ0zypSvdfQuMbOwrxyJd8Ry5IhdeJJhD6iEjTdTU dXWkcidlN60DvxAKhxb3IoFOJkmYXuXp4efYH9c7AVP1rvPUODRT+3LmWGImPGXO0J eK8mYQ5tTyf4M5Jvqp53y8tFch25co96DoNzTMK4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38560: x86/sev: Evict cache lines during SNP memory validation Date: Tue, 19 Aug 2025 19:18:07 +0200 Message-ID: <2025081906-CVE-2025-38560-d265@gregkh> X-Mailer: git-send-email 2.50.1 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=3049; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qjgTauMmKa52JUnb5J93Psb4Y6JvGkJlnWoN62wqjnk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNp5X21Vmk8Hrunvq/dV3xe9nLCy9qWX1/0Hx+rlKs //JZrGrdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEwt0Y5srHelzd4qzx+OLt Tr4bElVbnC9MCmdYsNW2/MG//kUbH2m4Fn5MMuz3u7vyDAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: x86/sev: Evict cache lines during SNP memory validation An SNP cache coherency vulnerability requires a cache line eviction mitigation when validating memory after a page state change to private. The specific mitigation is to touch the first and last byte of each 4K page that is being validated. There is no need to perform the mitigation when performing a page state change to shared and rescinding validation. CPUID bit Fn8000001F_EBX[31] defines the COHERENCY_SFW_NO CPUID bit that, when set, indicates that the software mitigation for this vulnerability is not needed. Implement the mitigation and invoke it when validating memory (making it private) and the COHERENCY_SFW_NO bit is not set, indicating the SNP guest is vulnerable. The Linux kernel CVE team has assigned CVE-2025-38560 to this issue. Affected and fixed versions =========================== Fixed in 6.1.148 with commit 1fec416c03d0a64cc21aa04ce4aa14254b017e6a Fixed in 6.6.102 with commit 1fb873971e23c35c53823c62809a474a92bc3022 Fixed in 6.12.42 with commit aed15fc08f15dbb15822b2a0b653f67e76aa0fdf Fixed in 6.15.10 with commit a762a4c8d9e768b538b3cc60615361a8cf377de8 Fixed in 6.16.1 with commit f92af52e6dbd8d066d77beba451e0230482dc45b Fixed in 6.17-rc2 with commit 7b306dfa326f70114312b320d083b21fa9481e1e 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-2025-38560 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/boot/cpuflags.c arch/x86/boot/startup/sev-shared.c arch/x86/coco/sev/core.c arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/sev.h arch/x86/kernel/cpu/scattered.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/1fec416c03d0a64cc21aa04ce4aa14254b017e6a https://git.kernel.org/stable/c/1fb873971e23c35c53823c62809a474a92bc3022 https://git.kernel.org/stable/c/aed15fc08f15dbb15822b2a0b653f67e76aa0fdf https://git.kernel.org/stable/c/a762a4c8d9e768b538b3cc60615361a8cf377de8 https://git.kernel.org/stable/c/f92af52e6dbd8d066d77beba451e0230482dc45b https://git.kernel.org/stable/c/7b306dfa326f70114312b320d083b21fa9481e1e