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 0DC752571A0 for ; Tue, 4 Aug 2026 06:23:37 +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=1785824618; cv=none; b=B8C94tsxi59klhM5q5/8uAFapAgUgC19lZP9QElPLK1iM2hljPpQPOPl6HQYvwQKutwhVYA15PgBmlHYqEB0nJnyUwQQxfho09PHO9emu0xVMU+EOHkzV6VWf0kf9QAgjeNpIpuDr10kM9DaQa27KC0E8Fqk7yH2MIvd4o4YCI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785824618; c=relaxed/simple; bh=lvduakXQCE5R+pAFiRw0iR7jcV2meF888l58xAQaMbk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rolsP75+qyduobdZK9ysKnHqviRiKf3HxOU6PQPMST/RAe/V4A4Vqiv5OicMgLhURMllGkpQmIWr7/oOl5xyUOY7gsiFtzm37MA/+F9fJ7XtBC1eMQ1ooI3iRZHhkY3qCtAAMDShzh5BTdQgofE3sS93xCs3z6KiGcI7GjzXtSg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ca9TE0F/; 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="ca9TE0F/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B97B1F000E9; Tue, 4 Aug 2026 06:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785824616; bh=XvIsRtisHZb5BFgY2WfTbRM3olNejXVuqyjl8i1LfgM=; h=From:To:Cc:Subject:Date:Reply-To; b=ca9TE0F/+ePy+DLO+xtnMOqIc3TQwCNyOSFCKyunqV8rdxc2Oc75mzHHR64WWFguS FLsIWaQiOPujyRPe9RelxivrtRVu5ihYEg76aFTr5qYVTlxX/WzIYlBps0B/tF4V9K prrVsCKxOWBZHMkjIxpcc7V10kbVGW4EXd6vJo0Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64561: KVM: x86: Check for invalid/obsolete root *after* making MMU pages available Date: Tue, 4 Aug 2026 08:22:02 +0200 Message-ID: <2026080401-CVE-2026-64561-d0d4@gregkh> X-Mailer: git-send-email 2.55.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=3483; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6UKhlYfT71BeeLcOWG1w67oFQE+dOex5LtBuf3sFgL8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmFrZxz//+PCt9+pok/eOYN58cBFYKt95mia3Om+rZdy z924cqUjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIixHDgjMbuZbcsuJffVU8 unPSydMZ/QdOWzEsOLr03KSXdh9Lv0ptOtyswTbP+u41LgA= 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: x86: Check for invalid/obsolete root *after* making MMU pages available Check for a "stale" page fault, i.e. for an invalid and/or obsolete root, after making MMU pages available for the shadow MMU. If reclaiming shadow pages zaps an in-use root, i.e. marks it invalid, then KVM will attempt to map memory into an invalid root. On its own, populating an invalid root is "fine", but because child shadow pages inherit their parent's role, any children created during the map/fetch will be created as invalid pages, thus violating KVM's invariant that invalid pages are never on the list of active MMU pages. Note, the underlying flaw has existed since KVM first started tracking invalid roots in 2008 (commit 2e53d63acba7, "KVM: MMU: ignore zapped root pagetables"), but the true badness only came along in 2020 (Linux 5.9) with the invariant that invalid shadow pages can't be on the list of active pages. Note #2, inheriting role.invalid when creating child shadow pages is also far from ideal; that flaw will be addressed separately. The Linux kernel CVE team has assigned CVE-2026-64561 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit f95eec9bed76d42194c23153cb1cc8f186bf91cb and fixed in 6.6.148 with commit 35e77467610c4a37cb0ff54ee56b85f73b1f5700 Issue introduced in 5.9 with commit f95eec9bed76d42194c23153cb1cc8f186bf91cb and fixed in 6.12.101 with commit 0026dbb7de8ea76e97d6edf42fc3cc084564e2bf Issue introduced in 5.9 with commit f95eec9bed76d42194c23153cb1cc8f186bf91cb and fixed in 6.18.42 with commit f3477a6a4164f15287444eda685b5f6405dbd1e5 Issue introduced in 5.9 with commit f95eec9bed76d42194c23153cb1cc8f186bf91cb and fixed in 7.1.6 with commit bce0d3c26e2c761a4bf43c8949f333fc7374eb2d Issue introduced in 5.9 with commit f95eec9bed76d42194c23153cb1cc8f186bf91cb and fixed in 7.2-rc5 with commit 2abd5287f08319fa35764566b15c6e22cb1068db 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-64561 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/mmu.c arch/x86/kvm/mmu/paging_tmpl.h 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/35e77467610c4a37cb0ff54ee56b85f73b1f5700 https://git.kernel.org/stable/c/0026dbb7de8ea76e97d6edf42fc3cc084564e2bf https://git.kernel.org/stable/c/f3477a6a4164f15287444eda685b5f6405dbd1e5 https://git.kernel.org/stable/c/bce0d3c26e2c761a4bf43c8949f333fc7374eb2d https://git.kernel.org/stable/c/2abd5287f08319fa35764566b15c6e22cb1068db