Researcher shows a KVM guest-to-host escape on AMD hosts, fixed in 6.12.118, 6.18.64 and 7.3.5
Terra Security researcher Oren Yomtov found a flaw in KVM, the hypervisor built into the Linux kernel, that let a guest reach and modify host memory on AMD processors with nested virtualization enabled. The fix shipped on 17 November in stable 7.3.5 and the 6.18.64 and 6.12.118 long-term kernels.
Why it matters
According to DigitalOcean, Terra showed the read on one of its droplets: first the host's kernel version banner, then about 127GB of host RAM, read-only. It showed the write, 32 chosen bytes into a live host kernel page, on a bare-metal AMD server with no other customers attached. The bug sat in the kernel for just under four years.
The cause is a stale pointer. When a reset signal pulls a virtual CPU out of a nested VM, KVM skipped refreshing the pointer to the guest's page table and kept naming a page it had already freed. The 2022 fix for CVE-2022-3344 repaired one problem and missed this pointer.
Terra brought the issue through DigitalOcean's bug bounty programme. DigitalOcean says it validated the exploit on its own hosts and prepared a live patch, which lets it fix a running hypervisor kernel without waiting on a full reboot cycle.