{"id":"CVE-2021-29657","aliases":["CVE-2021-29657"],"related":[],"kind":"vulnerability","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 ho…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El archivo arch/x86/kvm/svm/nested.c en el kernel de Linux versiones anteriores a 5.11.12, presenta un uso de memoria previamente liberada en el que un invitado KVM de AMD puede omitir el control de acceso en los MSR del SO anfitrión cuando se presentan invitados anidados, también se conoce como CID-a58d9166a756. Esto ocurre debido a una condición de carrera TOCTOU asociada con un doble fetch VMCB12 en la función nested_svm_vmrun","source":"nvd"}],"published":"2021-07-22T16:44:33.000Z","modified":"2026-06-17T03:48:06.127Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","score":6.9,"rating":"MEDIUM"}],"cwes":["CWE-367","CWE-416"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"5.10.28"},{"status":"affected","introduced":"5.11","fixed":"5.11.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html","tags":["third-party-advisory","vdb-entry","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2177","tags":["exploit","mailing-list","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134","tags":["patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12","tags":["exploit","patch","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0008/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29657","url":"https://www.cve.org/CVERecord?id=CVE-2021-29657","licence":"CVE Terms of Use","modified":"2024-08-03T22:11:06.370Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29657","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29657","licence":"Public domain","modified":"2026-06-17T03:48:06.127Z"}],"updatedAt":"2026-11-25T22:58:02.835Z","epss":{"score":0.00416,"percentile":0.3791,"date":"2026-12-01T12:00:22.000Z"}}