KVM: x86: Unconditionally reset MMU context when emulating INIT
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Unconditionally reset MMU context when emulating INIT Force an MMU reset when emulating an INIT even if paging was already disabled, as the MMU page role includes guest_mode (L2), i.e. an INIT while L2 is running with CR0.PG=0 will result in KVM running L1 with a stale MMU context. Alternatively, the reset could be scoped strictly to paging being enabled or L2 being active, but SMM is also encoded in the page role. Even though it _should_ be impossible for the vCPU to be INIT'd while SMM is active, there's zero value in not handling SMM. At that point, the only scenario where KVM _doesn't_ need to reset the MMU context is on an INIT with the vCPU running in Real Mode or Unpaged Protect Mode, and while INIT in those modes is somewhat common, it's far from a hot path and re-initializing the MMU is not expensive, especially when the role isn't changing (KVM elides most of the re-configuration in that case). Note, like the Fixes commit, this bug only affects nested SVM as INIT is an unconditional intercept on VMX, i.e. it's impossible to emulate INIT while L2 is active. Temporarily keep the guest TLB flush when CR0.PG is being cleared even though it is fully redundant with the flush that is emitted on all INIT events (KVM itself only does RESET when a vCPU is being created, i.e. when CR0.PG must be '0').
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 6425c590d0cc6914658a630a40b7f8226aa028c3, before 97be39acdbd7f33fdd8d8ca900d16fbd05482683; from ed129ec9057f89d615ba0c81a4984a90345a1684, before 1c59317eba381503abdf38251a687d0e772abbec; from ed129ec9057f89d615ba0c81a4984a90345a1684, before 87bd6507186c6357fb9267ab5aca869c57f0ef54; from ed129ec9057f89d615ba0c81a4984a90345a1684, before f55a3e4e08dc004b4bab7c1e9323d7e7e96e266a; from ed129ec9057f89d615ba0c81a4984a90345a1684, before 24f644ea26c2ebb7b14c3baa2aa92d37fde3095f; from ed129ec9057f89d615ba0c81a4984a90345a1684, before d47bae9eb33b3ca0843a0954b7d0cafb354c99b0; and 4 more | 97be39acdbd7f33fdd8d8ca900d16fbd05482683; 1c59317eba381503abdf38251a687d0e772abbec; 87bd6507186c6357fb9267ab5aca869c57f0ef54; f55a3e4e08dc004b4bab7c1e9323d7e7e96e266a |
| Linux Linux | Software | 6.1 | not recorded |
The 8.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Changed | The attacker can get beyond the vulnerable program and affect other parts of the system. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 2.0 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 6.0 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 7 sources for this flaw, none tagged as a vendor patch.