cbcvebase.
CVE-2021-29657
published 2021-07-22

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…

PriorityP337high7.4CVSS 3.1
AVLACHPRNUINSUCHIHAH
EPSS
0.41%
34.0th percentile
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

9 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 5.10.28-1 (bookworm)linux 5.10.28-1 (bookworm)
linuxlinux_kernel>= 0 < 5.10.28-15.10.28-1
linuxlinux_kernel>= 0 < 5.10.28-15.10.28-1
linuxlinux_kernel>= 0 < 5.10.28-15.10.28-1
linuxlinux_kernel>= 0 < 5.10.28-15.10.28-1
linuxlinux_kernel>= 5.10 < 5.10.285.10.28
linuxlinux_kernel>= 5.11 < 5.11.125.11.12
msrccbl2_kernel_5.10.78.1-1_on_cbl_mariner_2.0
msrccm1_kernel_5.10.60.1-1_on_cbl_mariner_1.0

CVSS provenance

nvdv3.17.4HIGHCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.9MEDIUMAV:L/AC:M/Au:N/C:C/I:C/A:C
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian7.4HIGH
vendor_msrc7.4HIGH
vendor_redhat7.4HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.