Hacker News new | ask | show | jobs
by sscaryterry 22 days ago
> This is an issue in the kernel networking stack.

Exactly, its not a firecracker issue. Using firecracker without a jailer is like setting your password to "password".

2 comments

Hang on, what are you getting at?
They ran it without a jailer, and exploited a bug in the linux socket code. Firecracker was just how they invoked/worked with /dev/kvm. It is not a firecracker bug. Its sensationalist nonsense.
It's very much a Firecracker thing. KVM is part of the Firecracker stack, and getting code execution behind the jailer is still effectively game-over; it's just a somewhat higher degree-of-difficulty game-over. It's a drastically worse place than you would have been last year, when there wasn't a known plausible way to get even that far.

This is a really good bug and nobody should downplay it.

Huh, so the assertion here that this is a break past the KVM boundary broadly, then?

Also - re: the jailer, do you have more info on that being popped?

The jailer is just a seccomp sandbox. It's not a novel defense system. Sandboxes get broken all the time.
GP said

> They ran it without a jailer

And you said

> getting code execution behind the jailer is still effectively game-over

So I’m really confused, which is it?

Both, maybe? I mean: whether or not they broke the jailer, we know the jailer is breakable; it wouldn't really even be newsworthy to have an LPE that breaks the Firecracker jailer.
Did they break the jailer? I thought from these comments they disabled it.

then the breach happens in KVM? Isn’t KVM its own software repo, and firecracker sits on top? How is this firecracker and not a KvM thing

I deeply love my idiot comment about not using password for your password generated useful stuff. Kudos to everyone here who rescued my idiocy. Now to change my luggage combination.
sounds like saying it's a Ubuntu thing because you can install firecracker and use kvm to me.

the truth is there plenty more kvm escapes that will be found.

I'm sure there will be! They've been extremely rare to date, because KVM is itself a relatively simple piece of code, but everything's up for grabs now.
It’s a TOCTOU in the paravirtualized networking stack in KVM. This is very much both a Firecracker and KVM issue. The whole point of Firecracker is a small guest host boundary but there is a TOCTOU in the network adapter over virtio? Not confidence inducing.
As a virtualization dev who has worked on half a dozen virtual devices, this is an absolutely embarrassing failure for the KVM ecosystem. A basic TOCTOU bug in the guest host boundary in the paravirtualized network driver is just outright incompetence and the fact it’s been there since 2008, an entire 18 years is insane. Anyone who has worked on KVM or deployed it in production should be asking a lot of questions about how they missed a bug as straight forward as a TOCTOU on the guest host boundary.