7.1high
x86/kvm: Disable kvmclock on all CPUs on shutdown
- Severity
- 7.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 9% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1e977aa12dd4f80688b1f243762212e75c6d7fe8 before 9084fe1b3572664ad276f427dce575f580c9799a, from 1e977aa12dd4f80688b1f243762212e75c6d7fe8 before 3b0becf8b1ecf642a9edaf4c9628ffc641e490d6, from 1e977aa12dd4f80688b1f243762212e75c6d7fe8 before 1df2dc09926f61319116c80ee85701df33577d70, from 1e977aa12dd4f80688b1f243762212e75c6d7fe8 before c02027b5742b5aa804ef08a4a9db433295533046, 2.6.26 Not affected: before 2.6.26, from 5.4.125 up to 5.4.*, from 5.10.43 up to 5.10.*, from 5.12.10 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | before 5.4.125, from 5.5 before 5.10.43, from 5.11 before 5.12.10, 5.13 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: x86/kvm: deshabilite kvmclock en todas las CPU al apagar Actualmente, deshabilitamos kvmclock desde el enlace machine_shutdown() y esto solo sucede para la CPU de arranque. Necesitamos deshabilitarlo para todas las CPU para protegernos contra la corrupción de la memoria, por ejemplo, al restaurar desde la hibernación. Tenga en cuenta que escribir '0' en kvmclock MSR no borra la ubicación de la memoria, solo evita que el hipervisor actualice la ubicación, por lo que durante un breve período después de la escritura y mientras la CPU aún está activa, el reloj permanece utilizable y correcto, por lo que no lo necesitamos. para cambiar a alguna otra fuente de reloj.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47110 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47110 changed 2026-06-17 | Public domain |