Firecracker VM Escape: PwnEscape Part 2 pwn.ai · 95 points · 52 comments · HN th...
HN Best 200 @best
Firecracker VM Escape: PwnEscape Part 2 pwn.ai · 95 points · 52 comments · HN thread
TL;DR PwnAI researchers describe a chain that turns a guest VM foothold into code execution as root on the host running Firecracker v1.16.1. They found the Firecracker process via the EPT and host page tables, located the saved registers of a live vCPU thread in KVM_RUN, and redirected it to call write(2) on the host, producing a marker string on Firecracker's stderr while the VM stayed up. The chain builds on the earlier PwnEscape memory primitive, which is tied to a virtio-net checksum bug fixed upstream in Linux about a month earlier.
- The guest used a previously established host memory primitive to find its own guest page in host memory via EPT translation, then reverse-mapped it to the Firecracker process page tables and recovered the load bias of the Firecracker binary under ASLR.
- The frame finder located the pt_regs frame of an active vCPU thread blocked in ioctl(KVM_RUN), validated by syscall state, instruction pointer, stack pointer and caller return address.
- The payload overwrote saved RIP, RDI, RSI, RDX and RSP so that on return from KVM_RUN Firecracker executed write(2, marker, 8), then a xor eax,eax; ret gadget to restore a clean return value and resume the original path.
- Host capture showed exactly eight bytes ('N8V23M2\n') on stderr; Firecracker kept running, guest SSH stayed responsive, and the temporary stack words were restored.
- The test ran without the Firecracker jailer, so privileges, namespaces and seccomp were not in effect; the authors say a production deployment needs separate assessment.
- Targets were Firecracker v1.16.1 on x86-64, host kernel 7.0.0-1011-aws and guest kernel 6.18.44+.
Discussion The thread mixes technical critique with a long side discussion of hypervisor design. Many commenters stress that the demo ran without the jailer, so the real blast radius in production is smaller, and that a further local privilege escalation in the host kernel would still be needed for full host control. Another group pushes microhypervisors such as NOVA and seL4 as safer foundations than Linux/KVM, with some back-and-forth on formal verification and how much it really buys. There is also debate over whether the piece is LLM-generated, whether it is a duplicate or new, and whether the underlying bug was already known, with a reply noting the vulnerability was disclosed weeks earlier. The mood is engaged and skeptical rather than alarmed.
- Jailer-confined deployments would limit this, so the flaw is mainly in kernel networking (many): Several commenters note the PoC skipped the jailer and that real hosts would need a second privilege escalation. They argue the root cause is the Linux virtio-net checksum handling, not Firecracker itself.
- Microhypervisors like NOVA or seL4 are the better architecture (some): Some commenters argue for a tiny formally verified kernel under the VMs instead of Linux and KVM. Others reply that formal verification gives limited security on its own and the real surface lies in the layers built on top.
- Article reads as LLM-generated and light on detail (a few): A few commenters call the text LLM slop and say it lacks specifics. Others reply that the authors discovered the bug and the content is substantive and on-topic.
- Not a new vulnerability, already disclosed and fixed upstream (some): One commenter notes this is an exploitation writeup of the PwnEscape bug disclosed weeks earlier. Another links the upstream Linux fix and explains the virtio-net checksum offload mechanism behind it.
- Hardware isolation may need software backup like gVisor (a few): One commenter asks whether reliance on hardware isolation for untrusted agent code should shift toward patchable software isolation such as gVisor.
- Own sandboxes built on Firecracker or zones add some protection (a few): Operators describe their own setups, such as a Firecracker-style microVM on illumos running in a zone, and say the extra layer helps even though escapes remain possible.
Links from the comments
- Earlier HN discussion of the PwnEscape vulnerability from several weeks before.
- Upstream Linux commit fixing the bug, shared by a commenter.
- The PwnEscape Part 1 write-up that introduces the underlying memory primitive.
- AWS security bulletin, which a commenter says lists Firecracker-based services as not affected.
- Project page for the NOVA microhypervisor, referenced in the debate on microkernel-based virtualization.
#firecracker #kvm #virtualization #privilegeEscalation #linuxKernel #microVM