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

18 Oct 2021, 12:55

Type Values Removed Values Added
References (CONFIRM) https://security.netapp.com/advisory/ntap-20210902-0008/ - (CONFIRM) https://security.netapp.com/advisory/ntap-20210902-0008/ - Third Party Advisory

02 Sep 2021, 09:15

Type Values Removed Values Added
References
  • (CONFIRM) https://security.netapp.com/advisory/ntap-20210902-0008/ -

11 Aug 2021, 14:24

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : 6.9
v3 : 7.4
CWE CWE-367
CWE-416
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
References (CONFIRM) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134 - (CONFIRM) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134 - Patch, Third Party Advisory
References (MISC) http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html - (MISC) http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html - Third Party Advisory, VDB Entry
References (MISC) https://bugs.chromium.org/p/project-zero/issues/detail?id=2177 - (MISC) https://bugs.chromium.org/p/project-zero/issues/detail?id=2177 - Exploit, Mailing List, Patch, Third Party Advisory
References (CONFIRM) https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12 - (CONFIRM) https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12 - Exploit, Patch, Vendor Advisory

22 Jul 2021, 17:22

Type Values Removed Values Added
New CVE

Information

Published : 2021-07-22 17:15

Updated : 2023-12-10 13:55


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