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

published high CVSS 3.1 · 7.8

KVM: x86/mmu: Zap _all_ roots when unmapping gfn range in TDP MMU

Published
26 Feb 2025, 01:54:11 UTC
Updated
05 Aug 2026, 08:48:44 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb7cccd397f310739fb85383033e95580f99927e0 to < af47248407c0c5ae52a752af1ab5ce5b0db91502 · b7cccd397f310739fb85383033e95580f99927e0 to < 0c8a8da182d4333d9bbb9131d765145568c847b2 · b7cccd397f310739fb85383033e95580f99927e0 to < 8cf6f98ab1d16d5e607635a0c21c4231eb15367e · b7cccd397f310739fb85383033e95580f99927e0 to < d62007edf01f5c11f75d0f4b1e538fc52a5b1982 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.13 (affected) · 0 to < 5.13 (unaffected · semver) · 5.15.33 through 5.15.* (unaffected · semver) · 5.16.19 through 5.16.* (unaffected · semver) · 5.17.2 through 5.17.* (unaffected · semver) · 5.18 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 AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-abi-stablelistsnoarch Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-coreaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-coreppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-cores390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-corex86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-cores390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-corex86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-develaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-develppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-devels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-develx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-moduless390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extraaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrappc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extras390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrax86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-aarch64aarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-ppc64leppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-s390xs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-x86_64x86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-develaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-develppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-devels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-develx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-docnoarch Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modulesaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modulesppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-moduless390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modulesx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extraaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrappc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extras390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrax86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolsaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolsppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolss390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolsx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdumps390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-cores390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-devels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-moduless390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-modules-extras390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 5.14.0-162.6.1.el9_1 RHSA-2022:8267
Red Hat Enterprise Linux RHEL-9 bpftoolppc64le Advisory build 5.14.0-162.6.1.el9_1 RHSA-2022:8267
Red Hat Enterprise Linux RHEL-9 bpftools390x Advisory build 5.14.0-162.6.1.el9_1 RHSA-2022:8267
Red Hat Enterprise Linux RHEL-9 bpftoolx86_64 Advisory build 5.14.0-162.6.1.el9_1 RHSA-2022:8267

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: KVM: x86/mmu: Zap _all_ roots when unmapping gfn range in TDP MMU Zap both valid and invalid roots when zapping/unmapping a gfn range, as KVM must ensure it holds no references to the freed page after returning from the unmap operation. Most notably, the TDP MMU doesn't zap invalid roots in mmu_notifier callbacks. This leads to use-after-free and other issues if the mmu_notifier runs to completion while an invalid root zapper yields as KVM fails to honor the requirement that there must be _no_ references to the page after the mmu_notifier returns. The bug is most easily reproduced by hacking KVM to cause a collision between set_nx_huge_pages() and kvm_mmu_notifier_release(), but the bug exists between kvm_mmu_notifier_invalidate_range_start() and memslot updates as well. Invalidating a root ensures pages aren't accessible by the guest, and KVM won't read or write page data itself, but KVM will trigger e.g. kvm_set_pfn_dirty() when zapping SPTEs, and thus completing a zap of an invalid root _after_ the mmu_notifier returns is fatal. WARNING: CPU: 24 PID: 1496 at arch/x86/kvm/../../../virt/kvm/kvm_main.c:173 [kvm] RIP: 0010:kvm_is_zone_device_pfn+0x96/0xa0 [kvm] Call Trace: <TASK> kvm_set_pfn_dirty+0xa8/0xe0 [kvm] __handle_changed_spte+0x2ab/0x5e0 [kvm] __handle_changed_spte+0x2ab/0x5e0 [kvm] __handle_changed_spte+0x2ab/0x5e0 [kvm] zap_gfn_range+0x1f3/0x310 [kvm] kvm_tdp_mmu_zap_invalidated_roots+0x50/0x90 [kvm] kvm_mmu_zap_all_fast+0x177/0x1a0 [kvm] set_nx_huge_pages+0xb4/0x190 [kvm] param_attr_store+0x70/0x100 module_attr_store+0x19/0x30 kernfs_fop_write_iter+0x119/0x1b0 new_sync_write+0x11c/0x1b0 vfs_write+0x1cc/0x270 ksys_write+0x5f/0xe0 do_syscall_64+0x38/0xc0 entry_SYSCALL_64_after_hwframe+0x44/0xae </TASK>

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

8

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 - Exploitation requires local access to /dev/kvm to create a VM and issue memslot updates (KVM_SET_USER_MEMORY_REGION) while concurrently unmapping guest backing memory; it is not reachable via network packets or pure guest execution without host VMM control. AC:L - The attacker controls both sides of the race—memslot delete/move triggering kvm_mmu_zap_all_fast (which yields in kvm_tdp_mmu_zap_invalidated_roots) and munmap/madvise triggering mmu_notifier_invalidate_range_start—so the race can be induced reliably without depending on external conditions. PR:L - Triggering requires only an unprivileged local account able to open /dev/kvm (e.g., kvm-group membership or nested-virt deployments), not real root/CAP_SYS_ADMIN in the init namespace. UI:N - The attacker directly drives the ioctls and memory unmap operations; no separate victim user action is required. S:U - This is a host userspace-to-host-kernel privilege escalation via KVM ioctls, not a guest-to-host escape; the impact remains within the host kernel’s security authority. C:H - The bug is a use-after-free on host page/SPTE state (kvm_set_pfn_dirty on PFNs after mmu_notifier completion), which can be leveraged for arbitrary kernel memory disclosure via heap reuse. I:H - The same UAF on freed page structures during delayed invalid-root zapping provides a path to arbitrary kernel writes and control-flow hijacking once the freed memory is reallocated. A:H - The UAF reliably produces kernel WARN/oops paths (e.g., kvm_is_zone_device_pfn on pages with zero refcount) and can crash or hang the host even when not fully exploited.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp 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 b7cccd397f310739fb85383033e95580f99927e0 to < af47248407c0c5ae52a752af1ab5ce5b0db91502 (affected · git)b7cccd397f310739fb85383033e95580f99927e0 to < 0c8a8da182d4333d9bbb9131d765145568c847b2 (affected · git)b7cccd397f310739fb85383033e95580f99927e0 to < 8cf6f98ab1d16d5e607635a0c21c4231eb15367e (affected · git)b7cccd397f310739fb85383033e95580f99927e0 to < d62007edf01f5c11f75d0f4b1e538fc52a5b1982 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.13 (affected)0 to < 5.13 (unaffected · semver)5.15.33 through 5.15.* (unaffected · semver)5.16.19 through 5.16.* (unaffected · semver)5.17.2 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-416 CWE-416 Use After Free (CISA-ADP · adp)

References

4

Provider assertions

2

Linux · cna

KVM: x86/mmu: Zap _all_ roots when unmapping gfn range in TDP MMU

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
20785650fc52c9dc11dc183ae80d61eacd368871e9a2261cd52ca4c8dc54c3f8
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