Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47110
HistoryMar 15, 2024 - 8:14 p.m.

CVE-2021-47110 x86/kvm: Disable kvmclock on all CPUs on shutdown

2024-03-1520:14:19
Linux
www.cve.org
1
linux kernel
vulnerability
x86
kvm
kvmclock
memory corruption
hibernate
hypervisor
clocksource

8 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/x86/include/asm/kvm_para.h",
      "arch/x86/kernel/kvm.c",
      "arch/x86/kernel/kvmclock.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "9084fe1b3572",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "3b0becf8b1ec",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "1df2dc09926f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "c02027b5742b",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/x86/include/asm/kvm_para.h",
      "arch/x86/kernel/kvm.c",
      "arch/x86/kernel/kvmclock.c"
    ],
    "versions": [
      {
        "version": "5.4.125",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.43",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.10",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

8 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%