Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-46978

published high CVSS 3.1 · 7.8

KVM: nVMX: Always make an attempt to map eVMCS after migration

Published
28 Feb 2024, 08:13:09 UTC
Updated
23 May 2026, 15:18:50 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0faceb7d6dda6f370ff1fa0464d7180f7e5cb417 to < c8bf64e3fb77cc19bad146fbe26651985b117194 · f2c7ef3ba9556d62a7e2bb23b563c6510007d55c to < 200a45649ab7361bc80c70aebf7165b64f9a6c9f · f2c7ef3ba9556d62a7e2bb23b563c6510007d55c to < bd0e8455b85b651a4c77de9616e307129b15aaa7 · f2c7ef3ba9556d62a7e2bb23b563c6510007d55c to < f5c7e8425f18fdb9bdb7d13340651d7876890329 · 5.10.13 to < 5.10.38 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.11 (affected) · 0 to < 5.11 (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
linux — linux_kernel0faceb7d6dda to < c8bf64e3fb77 · f2c7ef3ba955 to < 200a45649ab7 · f2c7ef3ba955 to < bd0e8455b85b · f2c7ef3ba955 to < f5c7e8425f18 · 5.11 · 0 to < 5.11* · 5.10.38 through 5.11* · 5.12.5 through 5.12* · 5.13 and later · Other versions: unknown Affected Not stated CISA-ADP
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
Show 2 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
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: nVMX: Always make an attempt to map eVMCS after migration When enlightened VMCS is in use and nested state is migrated with vmx_get_nested_state()/vmx_set_nested_state() KVM can't map evmcs page right away: evmcs gpa is not 'struct kvm_vmx_nested_state_hdr' and we can't read it from VP assist page because userspace may decide to restore HV_X64_MSR_VP_ASSIST_PAGE after restoring nested state (and QEMU, for example, does exactly that). To make sure eVMCS is mapped /vmx_set_nested_state() raises KVM_REQ_GET_NESTED_STATE_PAGES request. Commit f2c7ef3ba955 ("KVM: nSVM: cancel KVM_REQ_GET_NESTED_STATE_PAGES on nested vmexit") added KVM_REQ_GET_NESTED_STATE_PAGES clearing to nested_vmx_vmexit() to make sure MSR permission bitmap is not switched when an immediate exit from L2 to L1 happens right after migration (caused by a pending event, for example). Unfortunately, in the exact same situation we still need to have eVMCS mapped so nested_sync_vmcs12_to_shadow() reflects changes in VMCS12 to eVMCS. As a band-aid, restore nested_get_evmcs_page() when clearing KVM_REQ_GET_NESTED_STATE_PAGES in nested_vmx_vmexit(). The 'fix' is far from being ideal as we can't easily propagate possible failures and even if we could, this is most likely already too late to do so. The whole 'KVM_REQ_GET_NESTED_STATE_PAGES' idea for mapping eVMCS after migration seems to be fragile as we diverge too much from the 'native' path when vmptr loading happens on vmx_set_nested_state().

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0faceb7d6dda6f370ff1fa0464d7180f7e5cb417 to < c8bf64e3fb77cc19bad146fbe26651985b117194 (affected · git)f2c7ef3ba9556d62a7e2bb23b563c6510007d55c to < 200a45649ab7361bc80c70aebf7165b64f9a6c9f (affected · git)f2c7ef3ba9556d62a7e2bb23b563c6510007d55c to < bd0e8455b85b651a4c77de9616e307129b15aaa7 (affected · git)f2c7ef3ba9556d62a7e2bb23b563c6510007d55c to < f5c7e8425f18fdb9bdb7d13340651d7876890329 (affected · git)5.10.13 to < 5.10.38 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.11 (affected)0 to < 5.11 (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
linux linux_kernel 0faceb7d6dda to < c8bf64e3fb77 (affected · git)f2c7ef3ba955 to < 200a45649ab7 (affected · git)f2c7ef3ba955 to < bd0e8455b85b (affected · git)f2c7ef3ba955 to < f5c7e8425f18 (affected · git)5.11 (affected)0 to < 5.11* (affected · semver)5.10.38 through 5.11* (affected · semver)5.12.5 through 5.12* (affected · semver)5.13 and later (affected · semver)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

4

Provider assertions

3

Linux · cna

KVM: nVMX: Always make an attempt to map eVMCS after migration

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
af7f19acc6f3d6d837505e3a53d50f11b50fbd9d4a81fac3ae4dff87825a5392
Ingested
23 Sep 2026, 07:57:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected