Firecracker VM Escape: PwnEscape Part 2 pwn.ai · 258 points · 110 comments · HN ...

@best30

Firecracker VM Escape: PwnEscape Part 2 pwn.ai · 258 points · 110 comments · HN thread

TL;DR PwnAI describes Part 2 of its PwnEscape research: using a previously found host memory primitive, the team located a Firecracker process's vCPU thread on the host and redirected its return from KVM_RUN so the VMM executed a write(2) call, emitting a marker string as root on the host. The chain relies on a Linux virtio-net checksum bug disclosed weeks earlier (fixed upstream), and the test ran without Firecracker's jailer.

  • Starting from a guest-controlled page, a chain of resolvers finds the EPT root, the host page-table root, the Firecracker load bias, and the saved pt_regs frame of an active vCPU thread.
  • The saved registers were modified so that on return from KVM_RUN, Firecracker executed write(2, "N8V23M2\n", 8) and then returned cleanly to its original ioctl path.
  • Firecracker stayed running, guest SSH remained responsive, and the temporary stack changes were restored; the host capture showed exactly eight bytes on stderr.
  • Tested on Firecracker v1.16.1, x86-64, host kernel 7.0.0-1011-aws, guest kernel 6.18.44+, launched directly as root without the jailer.
  • The article itself says the jailer and seccomp/namespace containment were not tested, so a production deployment would need separate assessment.
  • Commenters note the underlying bug is in the Linux kernel networking stack (virtio-net checksum offload), fixed upstream about a month before this post.

Discussion The thread is long and divided. Much of it debates how serious the result is: some argue it is a kernel networking bug that Firecracker merely hosted, others argue that getting code execution past the jailer is effectively game over and that the Firecracker stack is implicated. A large side discussion covers formally verified microkernels (NOVA, seL4) versus Xen and KVM. Several commenters question the write-up's rigor and suspect LLM-generated prose, while others defend it as an important and well-described result. Replies are often sharp and skeptical, with some dismissive jabs.

  • Serious bug, but mainly a Linux kernel networking flaw (many): Several commenters stress that the root cause is the virtio-net checksum offload missing a sanity check in the kernel, so the escape is a kernel bug that happened to be exercised through Firecracker. They note the test ran without the jailer and say a jailed deployment would be harder to exploit.
  • Getting past the jailer is still effectively game over (some): tptacek and others argue that a Firecracker-level escape still matters, because the jailer can be broken by a further local privilege escalation and the kernel attack surface is large. They say this is a much worse position than before the bug was known.
  • Write-up lacks rigor and reads like LLM output (some): Some commenters say the proof of concept only passes physical addresses to /dev/mem and does not show the claimed exploit, and that the article is light on details and feels AI-generated. Others reply that the content is informative regardless of how it was written.
  • Not a new vulnerability; already disclosed weeks ago (a few): One commenter notes the underlying PwnEscape bug was disclosed and patched weeks earlier, so this post is a follow-up on exploitation rather than new news.
  • Microkernels like NOVA or seL4 are the better direction (a few): A thread argues that tiny formally verified hypervisors such as NOVA are the right architecture. Others reply that formal verification alone does little, and that attack surface reduction matters more.
  • Dismissive of the exploit's novelty (a few): A minority argues that with root on the host, a debugger could do the same thing, so the exploit adds little. This view is contested in replies.

Links from the comments

#firecracker #kvm #virtualization #linuxKernel #privilegeEscalation #microVM