KVM: x86: Check for invalid/obsolete root *after* making MMU pages available
2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.1.183, Kernel 5.15.218, Kernel 6.18.42 and 10 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.16 <6.1.183, >=5.9 <5.15.218, >=6.13 <6.18.42, >=6.19 <7.1.6, >=6.2 <6.6.148, >=6.7 <6.12.101, =7.2, >=f95eec9bed76d42194c23153cb1cc8f186bf91cb <2abd5287f08319fa35764566b15c6e22cb1068db, >=f95eec9bed76d42194c23153cb1cc8f186bf91cb <35e77467610c4a37cb0ff54ee56b85f73b1f5700, >=f95eec9bed76d42194c23153cb1cc8f186bf91cb <62ef67af1878fa2cd066642f2f59e33ade95f637, >=f95eec9bed76d42194c23153cb1cc8f186bf91cb <65c4f7a1028cf01a93a2762d679c289810ede990, >=f95eec9bed76d42194c23153cb1cc8f186bf91cb <bce0d3c26e2c761a4bf43c8949f333fc7374eb2d, >=f95eec9bed76d42194c23153cb1cc8f186bf91cb <f3477a6a4164f15287444eda685b5f6405dbd1e5, =5.9, >=f95eec9bed76d42194c23153cb1cc8f186bf91cb <0026dbb7de8ea76e97d6edf42fc3cc084564e2bf | 6.1.183, 5.15.218, 6.18.42, 7.1.6, 6.6.148, 6.12.101, 2abd5287f08319fa35764566b15c6e22cb1068db, 35e77467610c4a37cb0ff54ee56b85f73b1f5700, 62ef67af1878fa2cd066642f2f59e33ade95f637, 65c4f7a1028cf01a93a2762d679c289810ede990, bce0d3c26e2c761a4bf43c8949f333fc7374eb2d, f3477a6a4164f15287444eda685b5f6405dbd1e5, 0026dbb7de8ea76e97d6edf42fc3cc084564e2bf |
| linux-kernel: Kernel | >=5.16.0 <6.1.183, >=5.9.0 <5.15.218, >=6.13.0 <6.18.42, >=6.19.0 <7.1.6, >=6.2.0 <6.6.148, >=6.7.0 <6.12.101 | 6.1.183, 5.15.218, 6.18.42, 7.1.6, 6.6.148, 6.12.101 |
Exploit evidence
2 public sources
Vendor advisories
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket