Vulnerabilities · 2021 · Linux
CVE-2021-29657
Linux Kernel vulnerability
arch/x86/kvm/svm/nested.c in the Linux kernel before 5.11.12 has a use-after-free in which an AMD KVM guest can bypass access control on host OS MSRs when there are nested guests, aka CID-a58d9166a756. This occurs because of a TOCTOU race condition associated with a VMCB12 double fetch in nested_svm_vmrun.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12 · Exploit
- bugs.chromium.org/p/project-zero/issues/detail?id=2177 · Exploit
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a661 · Patch
- packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html · Third Party Advisory
- security.netapp.com/advisory/ntap-20210902-0008/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-29657
- cve.org/CVERecord?id=CVE-2021-29657
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.