{"id":"CVE-2021-29657","state":"PUBLISHED","title":"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, ","description":"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.","publishedAt":"2021-07-22T16:44:33.000Z","updatedAt":"2024-08-03T22:11:06.370Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","https://security.netapp.com/advisory/ntap-20210902-0008/"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:21.578Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/29xxx/CVE-2021-29657.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-29657","state":"PUBLISHED","datePublished":"2021-07-22T16:44:33.000Z","dateUpdated":"2024-08-03T22:11:06.370Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-03-31T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","tags":["x_refsource_MISC"]},{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","tags":["x_refsource_MISC"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","tags":["x_refsource_CONFIRM"]},{"url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0008/","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-09-02T08:06:31.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-29657","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html"},{"name":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","refsource":"MISC","url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177"},{"name":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","refsource":"CONFIRM","url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134"},{"name":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","refsource":"CONFIRM","url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12"},{"name":"https://security.netapp.com/advisory/ntap-20210902-0008/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20210902-0008/"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0008/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T22:11:06.370Z"}}]}}}