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 0EEAB481A3 for ; Wed, 1 May 2024 05:31: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=1714541466; cv=none; b=HWdqp84rYgiyWts4w2gGCTw8zBSF5OYbmTJ3P+3IjiHY+2x/PdftruYMTkPZK+IUjKyteV3AHGdX9Vpy2KYonyOFEaO5ovPh8tYdTDphsanSeYQOCrj2S0NhkoEHTFF7+fpqxdIDG3eFWdXJ9IY9R9omiR3DdE4KPVfuyiBruXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541466; c=relaxed/simple; bh=rO8q7twWPzXqBaZ0iHavxZDpP/kJmPtrLAXTqEIAXYE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E5NdtEagPYT6hXw+Np7Bh4jck1lm7PjBSSjuqzJ2FELy/ghXlyqwUyPnw7WDFRoVY79HhLdQ3jt3nCQsWu38rFb5wiFzxfmocRflGJfVkeKGiR9+oR6EGLzsvNaRC0r4ZIcEf7XdyVDwX3hBCfGbcuBKU7huh2fb1qeVFOH/ehI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E2YR6gdZ; 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="E2YR6gdZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B13DC113CC; Wed, 1 May 2024 05:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541465; bh=rO8q7twWPzXqBaZ0iHavxZDpP/kJmPtrLAXTqEIAXYE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E2YR6gdZf0z3jS4NWldKyjdNeLav1D2kWeBJli3MuVLvlO8knNCdRU3TuVij9vp91 nRTH9tgYE/ZiQYe80iaUCKnTXHrABhFEIxRmZC4w1UgukZ3kLdPgWrzxLhB6E9P46T v0Dpuk89iO8JhkPqDipfD2kD93PNyUu7+XFBUOEo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26990: KVM: x86/mmu: Write-protect L2 SPTEs in TDP MMU when clearing dirty status Date: Wed, 1 May 2024 07:30:51 +0200 Message-ID: <2024050143-CVE-2024-26990-0a1f@gregkh> X-Mailer: git-send-email 2.44.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=2474; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rO8q7twWPzXqBaZ0iHavxZDpP/kJmPtrLAXTqEIAXYE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGl5vZ/60++XdZ9dkdL4+9Wf/jlv+Hbo0ofaOMyIr4E yc+vzHX6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJPDzOsGDzlOuM3Rzbsysf dP7cpBG8vknoRwvDPJ3LDIt7vPh2nf986uK7oNd83xZ4nAYA 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: KVM: x86/mmu: Write-protect L2 SPTEs in TDP MMU when clearing dirty status Check kvm_mmu_page_ad_need_write_protect() when deciding whether to write-protect or clear D-bits on TDP MMU SPTEs, so that the TDP MMU accounts for any role-specific reasons for disabling D-bit dirty logging. Specifically, TDP MMU SPTEs must be write-protected when the TDP MMU is being used to run an L2 (i.e. L1 has disabled EPT) and PML is enabled. KVM always disables PML when running L2, even when L1 and L2 GPAs are in the some domain, so failing to write-protect TDP MMU SPTEs will cause writes made by L2 to not be reflected in the dirty log. [sean: massage shortlog and changelog, tweak ternary op formatting] The Linux kernel CVE team has assigned CVE-2024-26990 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 5982a5392663 and fixed in 6.6.29 with commit cdf811a93747 Issue introduced in 6.4 with commit 5982a5392663 and fixed in 6.8.8 with commit e20bff0f1b2d Issue introduced in 6.4 with commit 5982a5392663 and fixed in 6.9-rc5 with commit 2673dfb591a3 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-26990 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/kvm/mmu/tdp_mmu.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/cdf811a937471af2d1facdf8ae80e5e68096f1ed https://git.kernel.org/stable/c/e20bff0f1b2de9cfe303dd35ff46470104a87404 https://git.kernel.org/stable/c/2673dfb591a359c75080dd5af3da484b89320d22