CVE-2021-46977
published high CVSS 3.1 · 7.8KVM: VMX: Disable preemption when probing user return MSRs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4be5341026246870818e28b53202b001426a5aec to < 31f29749ee970c251b3a7e5b914108425940d089 · 4be5341026246870818e28b53202b001426a5aec to < 5adcdeb57007ccf8ab7ac20bf787ffb6fafb1a94 · 4be5341026246870818e28b53202b001426a5aec to < e3ea1895df719c4ef87862501bb10d95f4177bed · 4be5341026246870818e28b53202b001426a5aec to < 5104d7ffcf24749939bea7fdb5378d186473f890 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.5 (affected) · 0 to < 5.5 (unaffected · semver) · 5.10.38 through 5.10.* (unaffected · semver) · 5.11.22 through 5.11.* (unaffected · semver) · 5.12.5 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
Description
In the Linux kernel, the following vulnerability has been resolved: KVM: VMX: Disable preemption when probing user return MSRs Disable preemption when probing a user return MSR via RDSMR/WRMSR. If the MSR holds a different value per logical CPU, the WRMSR could corrupt the host's value if KVM is preempted between the RDMSR and WRMSR, and then rescheduled on a different CPU. Opportunistically land the helper in common x86, SVM will use the helper in a future commit.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable probe runs during KVM_CREATE_VCPU in vmx_create_vcpu, reachable only via local /dev/kvm ioctls (KVM_CREATE_VM then KVM_CREATE_VCPU), not from network packets or guest-only operations. AC:L - An attacker with KVM access can repeatedly create vCPUs while running concurrent vCPU threads and forcing migrations via affinity/load, so they can drive both the probe and the conditions that leave differing MSR values on CPUs; success does not depend on a victim-controlled state. PR:L - The kernel imposes no capability check on /dev/kvm; access is only file permission based, and common deployments (kvm group, nested virt, crosvm) grant this to unprivileged users, so root/admin is not required. UI:N - Exploitation requires only attacker-issued KVM ioctls; no separate victim action such as mounting a filesystem or opening a crafted file is needed. S:U - The attacker is already host userspace with KVM access; impact remains under the host kernel authority rather than a guest-to-host escape across a VM boundary. C:H - User-return MSRs (including LSTAR/TSC_AUX) can still hold guest values while kernel code runs, and the probe's raw WRMSR bypasses user-return tracking, so attacker-controlled guest MSR contents can be planted on another host CPU and enable SYSCALL-path hijacking and arbitrary host memory disclosure. I:H - Planting attacker-influenced syscall MSRs (especially LSTAR) onto a host CPU redirects subsequent host SYSCALL entry, which is exploitable for control-flow hijacking and arbitrary host integrity compromise beyond a simple per-CPU TSC_AUX mixup. A:H - Corrupting host user-return MSRs (wrong LSTAR/STAR/TSC_AUX) reliably breaks host syscall handling or CPU identity and can cause kernel oopses, panics, or hard system failure on the affected CPU.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4be5341026246870818e28b53202b001426a5aec to < 31f29749ee970c251b3a7e5b914108425940d089 (affected · git)4be5341026246870818e28b53202b001426a5aec to < 5adcdeb57007ccf8ab7ac20bf787ffb6fafb1a94 (affected · git)4be5341026246870818e28b53202b001426a5aec to < e3ea1895df719c4ef87862501bb10d95f4177bed (affected · git)4be5341026246870818e28b53202b001426a5aec to < 5104d7ffcf24749939bea7fdb5378d186473f890 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.5 (affected)0 to < 5.5 (unaffected · semver)5.10.38 through 5.10.* (unaffected · semver)5.11.22 through 5.11.* (unaffected · semver)5.12.5 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
3Linux · cna
KVM: VMX: Disable preemption when probing user return MSRs
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e6f7e72406700af42a2077057bbd4c1f221c66aefafbcd93e06d986e123fac8a
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record