{"api_version":"1","generated_at":"2026-04-23T02:35:38+00:00","cve":"CVE-2021-29657","urls":{"html":"https://cve.report/CVE-2021-29657","api":"https://cve.report/api/cve/CVE-2021-29657.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-29657","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29657"},"summary":{"title":"CVE-2021-29657","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-07-22 17:15:00","updated_at":"2023-05-19 16:51:00"},"problem_types":["CWE-416","CWE-367"],"metrics":[],"references":[{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","name":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","refsource":"CONFIRM","tags":[],"title":"kernel/git/torvalds/linux.git - Linux kernel source tree","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","name":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","refsource":"MISC","tags":[],"title":"2177 - \n \n \n project-zero -\n \n \n Project Zero - \n \n Monorail","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","name":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","refsource":"MISC","tags":[],"title":"KVM nested_svm_vmrun Double Fetch ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","name":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","refsource":"CONFIRM","tags":[],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20210902-0008/","name":"https://security.netapp.com/advisory/ntap-20210902-0008/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-29657 Linux Kernel Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29657","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29657","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"29657","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-29657","qid":"180529","title":"Debian Security Update for linux (CVE-2021-29657)"},{"cve":"CVE-2021-29657","qid":"198365","title":"Ubuntu Security Notification for Linux kernel (OEM) vulnerabilities (USN-4948-1)"},{"cve":"CVE-2021-29657","qid":"900292","title":"CBL-Mariner Linux Security Update for kernel 5.10.52.1"},{"cve":"CVE-2021-29657","qid":"900304","title":"CBL-Mariner Linux Security Update for kernel 5.10.57.1"},{"cve":"CVE-2021-29657","qid":"900319","title":"CBL-Mariner Linux Security Update for kernel 5.10.60.1"},{"cve":"CVE-2021-29657","qid":"901480","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (6554-1)"},{"cve":"CVE-2021-29657","qid":"902864","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (5046)"},{"cve":"CVE-2021-29657","qid":"905925","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (5046-1)"}]},"source_records":{"cve_program":{"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":[{"refsource":"MISC","name":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","url":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html"},{"refsource":"MISC","name":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177"},{"refsource":"CONFIRM","name":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134"},{"refsource":"CONFIRM","name":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20210902-0008/","url":"https://security.netapp.com/advisory/ntap-20210902-0008/"}]}},"nvd":{"publishedDate":"2021-07-22 17:15:00","lastModifiedDate":"2023-05-19 16:51:00","problem_types":["CWE-416","CWE-367"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.4,"baseSeverity":"HIGH"},"exploitabilityScore":1.4,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":6.9},"severity":"MEDIUM","exploitabilityScore":3.4,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.28","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.11.12","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"29657","Ordinal":"204867","Title":"CVE-2021-29657","CVE":"CVE-2021-29657","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"29657","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"29657","Ordinal":"2","NoteData":"2021-07-22","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"29657","Ordinal":"3","NoteData":"2021-09-02","Type":"Other","Title":"Modified"}]}}}