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-47277

published

kvm: avoid speculation-based attacks from out-of-range memslot accesses

Published
21 May 2024, 14:20:04 UTC
Updated
11 May 2026, 13:51:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux8a7ae055f3533b520401c170ac55e30628b34df5 to < 3098b86390a6b9ea52657689f08410baf130ceff · 8a7ae055f3533b520401c170ac55e30628b34df5 to < 740621309b25bbf619b8a0ba5fd50a8e58989441 · 8a7ae055f3533b520401c170ac55e30628b34df5 to < 361ce3b917aff93123e9e966d8608655c967f438 · 8a7ae055f3533b520401c170ac55e30628b34df5 to < 22b87fb17a28d37331bb9c1110737627b17f6781 · 8a7ae055f3533b520401c170ac55e30628b34df5 to < bff1fbf0cf0712686f1df59a83fba6e31d2746a0 · 8a7ae055f3533b520401c170ac55e30628b34df5 to < 7af299b97734c7e7f465b42a2139ce4d77246975 · 8a7ae055f3533b520401c170ac55e30628b34df5 to < ed0e2a893092c7fcb4ff7ba74e5efce53a6f5940 · 8a7ae055f3533b520401c170ac55e30628b34df5 to < da27a83fd6cc7780fea190e1f5c19e87019da65c · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.25 (affected) · 0 to < 2.6.25 (unaffected · semver) · 4.4.273 through 4.4.* (unaffected · semver) · 4.9.273 through 4.9.* (unaffected · semver) · 4.14.237 through 4.14.* (unaffected · semver) · 4.19.195 through 4.19.* (unaffected · semver) · 5.4.126 through 5.4.* (unaffected · semver) · 5.10.44 through 5.10.* (unaffected · semver) · 5.12.11 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 evaluationALAS2-2021-1685 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2022-002 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2022-004 Fixed Not stated Amazon Linux assessment
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2-2021-1685
Show 76 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaults390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-rtx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaults390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-rtx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaults390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-rtx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-azurex86_64 Advisory build 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SUSE / openSUSE SLE-12-SP5 kernel-azure-basex86_64 Advisory build 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SUSE / openSUSE SLE-12-SP5 kernel-azure-develx86_64 Advisory build 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultaarch64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-defaults390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseaarch64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-bases390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-basex86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develaarch64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-devels390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-extrax86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgrafts390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-devels390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-default-mans390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-develnoarch Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-devel-azurenoarch Advisory build 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SUSE / openSUSE SLE-12-SP5 kernel-devel-rtnoarch Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-docsnoarch Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-macrosnoarch Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildaarch64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-builds390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-rtx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-rt-basex86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-rt-develx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-rt_debugx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-rt_debug-develx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-sourcenoarch Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-source-azurenoarch Advisory build 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SUSE / openSUSE SLE-12-SP5 kernel-source-rtnoarch Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kernel-symsaarch64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-symsppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-symss390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-symsx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kernel-syms-azurex86_64 Advisory build 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SUSE / openSUSE SLE-12-SP5 kernel-syms-rtx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_219-defaultppc64le Advisory build 1-8.3.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_219-defaults390x Advisory build 1-8.3.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_219-defaultx86_64 Advisory build 1-8.3.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaults390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-rtx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2-2021-1685
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2-2021-1685
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2-2021-1685
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.4-2022-004

Description

In the Linux kernel, the following vulnerability has been resolved: kvm: avoid speculation-based attacks from out-of-range memslot accesses KVM's mechanism for accessing guest memory translates a guest physical address (gpa) to a host virtual address using the right-shifted gpa (also known as gfn) and a struct kvm_memory_slot. The translation is performed in __gfn_to_hva_memslot using the following formula: hva = slot->userspace_addr + (gfn - slot->base_gfn) * PAGE_SIZE It is expected that gfn falls within the boundaries of the guest's physical memory. However, a guest can access invalid physical addresses in such a way that the gfn is invalid. __gfn_to_hva_memslot is called from kvm_vcpu_gfn_to_hva_prot, which first retrieves a memslot through __gfn_to_memslot. While __gfn_to_memslot does check that the gfn falls within the boundaries of the guest's physical memory or not, a CPU can speculate the result of the check and continue execution speculatively using an illegal gfn. The speculation can result in calculating an out-of-bounds hva. If the resulting host virtual address is used to load another guest physical address, this is effectively a Spectre gadget consisting of two consecutive reads, the second of which is data dependent on the first. Right now it's not clear if there are any cases in which this is exploitable. One interesting case was reported by the original author of this patch, and involves visiting guest page tables on x86. Right now these are not vulnerable because the hva read goes through get_user(), which contains an LFENCE speculation barrier. However, there are patches in progress for x86 uaccess.h to mask kernel addresses instead of using LFENCE; once these land, a guest could use speculation to read from the VMM's ring 3 address space. Other architectures such as ARM already use the address masking method, and would be susceptible to this same kind of data-dependent access gadgets. Therefore, this patch proactively protects from these attacks by masking out-of-bounds gfns in __gfn_to_hva_memslot, which blocks speculation of invalid hvas. Sean Christopherson noted that this patch does not cover kvm_read_guest_offset_cached. This however is limited to a few bytes past the end of the cache, and therefore it is unlikely to be useful in the context of building a chain of data dependent accesses.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

6

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 8a7ae055f3533b520401c170ac55e30628b34df5 to < 3098b86390a6b9ea52657689f08410baf130ceff (affected · git)8a7ae055f3533b520401c170ac55e30628b34df5 to < 740621309b25bbf619b8a0ba5fd50a8e58989441 (affected · git)8a7ae055f3533b520401c170ac55e30628b34df5 to < 361ce3b917aff93123e9e966d8608655c967f438 (affected · git)8a7ae055f3533b520401c170ac55e30628b34df5 to < 22b87fb17a28d37331bb9c1110737627b17f6781 (affected · git)8a7ae055f3533b520401c170ac55e30628b34df5 to < bff1fbf0cf0712686f1df59a83fba6e31d2746a0 (affected · git)8a7ae055f3533b520401c170ac55e30628b34df5 to < 7af299b97734c7e7f465b42a2139ce4d77246975 (affected · git)8a7ae055f3533b520401c170ac55e30628b34df5 to < ed0e2a893092c7fcb4ff7ba74e5efce53a6f5940 (affected · git)8a7ae055f3533b520401c170ac55e30628b34df5 to < da27a83fd6cc7780fea190e1f5c19e87019da65c (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.25 (affected)0 to < 2.6.25 (unaffected · semver)4.4.273 through 4.4.* (unaffected · semver)4.9.273 through 4.9.* (unaffected · semver)4.14.237 through 4.14.* (unaffected · semver)4.19.195 through 4.19.* (unaffected · semver)5.4.126 through 5.4.* (unaffected · semver)5.10.44 through 5.10.* (unaffected · semver)5.12.11 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

3

Linux · cna

kvm: avoid speculation-based attacks from out-of-range memslot accesses

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
95f48f494c653f89fbb352ff41e9e1c58f2bb80c5bcc6d2ede73098c4bd2dca6
Ingested
23 Sep 2026, 07:57:11 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