Exploit database

Vulnerability

CVE-2026-64561

KVM: x86: Check for invalid/obsolete root *after* making MMU pages available

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · Linux

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

3 sources
horkimhab/cve-2026-64561
GH-8227b4a3f5d7bf247e5deb5d91599d90GitHubUnofficial GitHub sourcePreferred

CVE-2026-64561

2026-08-0713 files · 3 stars
hackspeak/cve-2026-64561
GH-5222e993bd8c472cb85010bdcd66588eGitHubUnofficial GitHub source

Zapscape (CVE-2026-64561) KVM/x86 shadow MMU UAF guest-to-host escape PoC mirror — V4bel/@v4bel, MIT; for authorized security testing

2026-08-0811 files · 2 stars
aoripus-ltd/zapscape-fix
GH-a7db19b80a234234592b174c39842904GitHubUnofficial GitHub source

Generic kernel live patch for the KVM/x86 shadow-MMU use-after-free (Zapscape, CVE-2026-64561)

2026-08-0736 files · 1 stars