CVE-2021-29657

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

21 Nov 2024, 06:01

Type Values Removed Values Added
References () http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html - Third Party Advisory, VDB Entry () http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html - Third Party Advisory, VDB Entry
References () https://bugs.chromium.org/p/project-zero/issues/detail?id=2177 - Exploit, Mailing List, Patch, Third Party Advisory () https://bugs.chromium.org/p/project-zero/issues/detail?id=2177 - Exploit, Mailing List, Patch, Third Party Advisory
References () https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12 - Exploit, Patch, Vendor Advisory () https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12 - Exploit, Patch, Vendor Advisory
References () https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134 - Patch, Third Party Advisory () https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134 - Patch, Third Party Advisory
References () https://security.netapp.com/advisory/ntap-20210902-0008/ - Third Party Advisory () https://security.netapp.com/advisory/ntap-20210902-0008/ - Third Party Advisory

Information

Published : 2021-07-22 17:15

Updated : 2024-11-21 06:01


NVD link : CVE-2021-29657

Mitre link : CVE-2021-29657

CVE.ORG link : CVE-2021-29657


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-367

Time-of-check Time-of-use (TOCTOU) Race Condition

CWE-416

Use After Free