# 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 ho…

- Severity: High 7.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-07-22T16:44:33.000Z
- Modified: 2026-06-17T03:48:06.127Z
- Weaknesses: CWE-367, CWE-416
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: from 5.10 before 5.10.28; from 5.11 before 5.11.12

## Every score

- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.9 Medium `AV:L/AC:M/Au:N/C:C/I:C/A:C`

## References

- <http://packetstormsecurity.com/files/163324/KVM-nested_svm_vmrun-Double-Fetch.html> (exploit, third-party-advisory, vdb-entry)
- <https://bugs.chromium.org/p/project-zero/issues/detail?id=2177> (exploit, mailing-list, patch, third-party-advisory)
- <https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.11.12> (exploit, patch, vendor-advisory)
- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a58d9166a756a0f4a6618e4f593232593d6df134> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210902-0008/> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-29657](https://www.cve.org/CVERecord?id=CVE-2021-29657), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-29657](https://nvd.nist.gov/vuln/detail/CVE-2021-29657), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29657 · Whole record: https://cve.day/CVE-2021-29657.json · Rebuilt by cve.day 2026-11-25T22:58:02.835Z
