CVE-2021-47110

x86/kvm: Disable kvmclock on all CPUs on shutdown

State
Published
Severity
Not scored
Published
Mar 15, 2024
Updated
May 11, 2026
Reserved
Mar 4, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

x86/kvm: Disable kvmclock on all CPUs on shutdown

Currenly, we disable kvmclock from machine_shutdown() hook and this only happens for boot CPU. We need to disable it for all CPUs to guard against memory corruption e.g. on restore from hibernate.

Note, writing '0' to kvmclock MSR doesn't clear memory location, it just prevents hypervisor from updating the location so for the short while after write and while CPU is still alive, the clock remains usable and correct so we don't need to switch to some other clocksource.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1e977aa12dd4f80688b1f243762212e75c6d7fe8 to before 9084fe1b3572664ad276f427dce575f580c9799aAffected
  • 1e977aa12dd4f80688b1f243762212e75c6d7fe8 to before 3b0becf8b1ecf642a9edaf4c9628ffc641e490d6Affected
  • 1e977aa12dd4f80688b1f243762212e75c6d7fe8 to before 1df2dc09926f61319116c80ee85701df33577d70Affected
  • 1e977aa12dd4f80688b1f243762212e75c6d7fe8 to before c02027b5742b5aa804ef08a4a9db433295533046Affected
LinuxLinux
  • 2.6.26Affected
  • before 2.6.26Not affected
  • 5.4.125 through 5.4.*Not affected
  • 5.10.43 through 5.10.*Not affected
  • 5.12.10 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.