Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3D7D63ACA42 for ; Sun, 18 Oct 2026 15:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338844; cv=none; b=H20d9CDJmsthx3A/S2jvMCXZjzL8p6P0PXgm4C1Zqp0q2DWef9mVOPXDfnIrGnqukEv2iwJatGXyEtRLjn7+mrFULlWv4qanO+rArMxwzGYLNSrVv2cZSmIw60qZFifexwu6Oij9orjao1siJdvAAcUD1JiIyLY2LXMKSezIwuI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338844; c=relaxed/simple; bh=gf09H/OFJax2Z66g3wH3ayU6DZ8iGdEUV8fh5yxm7kY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f+1p0u3Zfrb5U2b3o1sLCiC8rhBUwEOYl7d5NfdE/9pJaCAkb0238L1B2CKg/p4rmAo5UvtqgH03NSGDagTSahHkCSUdxm3d90EFp/g1j46qEhu/fb/1xV2f8UsYv1oAyLe8bMkT4+ZUJhyjzyg4tfIDawARDoLgSES9GMHzgl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cPgMcy16; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cPgMcy16" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26DFB1F000C4; Sun, 18 Oct 2026 15:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792338841; bh=UblzB2BYp/Bxg/YWbS6grNo03ZCYW4o8tDJHr1ByvgI=; h=From:To:Cc:Subject:Date:Reply-To; b=cPgMcy162aAtObPaqrB8JcKYqDGl54ixGdEnvZ+azwhrW8dAaW3zmEK7mLNdbQccI u5GBPRV2XF8+lvvkZPhYa3Wi+mvC61ZQgAXnQHEszrXH6oYI0UbfgGo2qt2xFUIZvn vibovboKVspCtKE4XHhGUQPgcbm6Gj6mDQvWvqdk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98718: KVM: SEV: Do cache maintenance on the source VM *before* clearing SEV state Date: Sun, 18 Oct 2026 17:44:53 +0200 Message-ID: <2026101808-CVE-2026-98718-578d@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2742; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l0o1iaocIzH0ziR0N524HkbuGDmjmTKKJAft1VVzIJg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXnpcvL15+lrBf549az1OsT/5z8R0x+Oo67Hrbi5mS YmlYseudMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEBIwZFlxUWbaRbYodv8rF zOy2bL/nU7qNoxkW7Co3l1q0Sqtyyqv6BV35Ketk7mbvAgA= 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: KVM: SEV: Do cache maintenance on the source VM *before* clearing SEV state Explicitly flush caches after intra-host migration before clearing "SEV active" on the source VM, as doing cache maintenance afterwards creates a tiny window where memory reclaim could return memory to the host without performing a cache flush, e.g. as pointed out by Sashiko: CPU1 in sev_migrate_from(): src->active = false; CPU2 running concurrent unmap: Since active is false, the automatic cache flush in sev_guest_memory_reclaimed is skipped. The host frees and reallocates the page. CPU1 in sev_migrate_from(): sev_writeback_caches(src_kvm); Executes a hardware cache flush (wbnoinvd), which writes the guest's old dirty ciphertext over the new page owner's data. The Linux kernel CVE team has assigned CVE-2026-98718 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.55 with commit 37dfb676fafd1eef36fe0bb649607afbb0d5521b and fixed in 6.18.56 with commit 8b7d4f68fef96cebe0b6dbb6e5607772337f7369 Issue introduced in 7.2.9 with commit d4cc2dff12116a700add601c0262132cc26e1b2c and fixed in 7.2.10 with commit de83ff6a4d8f3618473bedb3c4400020c22e8a8a Issue introduced in 7.3-rc5 with commit 93de2a6a4b91b72607136dd656edf03fb399d27f and fixed in 7.3-rc6 with commit 973ea70393e885e540f714904e51bc6cac80e3d7 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-2026-98718 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/svm/sev.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/8b7d4f68fef96cebe0b6dbb6e5607772337f7369 https://git.kernel.org/stable/c/de83ff6a4d8f3618473bedb3c4400020c22e8a8a https://git.kernel.org/stable/c/973ea70393e885e540f714904e51bc6cac80e3d7