Earlier quoted context omitted.
What privileges does bhyve run under? Exploiting a properly sandboxed QEMU does give you access to some potentially interesting file descriptor but, unless you can use them to get kernel code execution, your process will not have access to any resources on the host that wouldn't be already accessible from inside the VM.
Doesn't running it with KVM enabled put you back into kernel space? I'm sure doing everything in userspace is safer, but TCG is nowhere near as performant...
Tale of two hypervisor bugs – Escaping from FreeBSD bhyve
41–47 of 47 posts
Re: Tale of two hypervisor bugs – Escaping from FreeBSD bhyve
#42Wondering if it directly or indirectly affects xhyve and Docker’s HyperKit.
Re: Tale of two hypervisor bugs – Escaping from FreeBSD bhyve
#43Earlier quoted context omitted.
Keep in mind that this is emulating old hardware. See: http://www.osdever.net/FreeVGA/vga/colorreg.htm If the size of the array changed, it would no longer be compatible with the hardware it's trying to emulate. I understand what you're trying to say and agree in general, but this is a good example of "the exception to the rule".
I guess I’m unhappy with the linkage between “this is an 8-bit value” and “this thing just happens to wrap at 256”; I would be much more satisfied if there was a clear “byte” rationale for the latter as well, which there very well might be but it’s not clear contextually. To put it differently, I’m fine with relying on the overflow behavior, but only when the semantics have an actual match. For example, I rely on it…
Re: Tale of two hypervisor bugs – Escaping from FreeBSD bhyve
#44Earlier quoted context omitted.
> politics or something of that sort I suppose you could classify "the patch doesn't work and breaks other things besides" that way.
HardenedBSD got the userland running fine. It was iirc mostly irrational fear by the FreeBSD team that someone's bad application would break.
Re: Tale of two hypervisor bugs – Escaping from FreeBSD bhyve
#45Earlier quoted context omitted.
Time it looks like. Future versions are getting it apparently. https://wiki.freebsd.org/ASLR
But > It is disabled by default. Why?
Re: Tale of two hypervisor bugs – Escaping from FreeBSD bhyve
#46Earlier quoted context omitted.
But > It is disabled by default. Why?
It is trivially bypassed and has some negative performance impact. So why enable it by default? It is left as an option for the paranoid and for "checkbox compliance" type applications.
Re: Tale of two hypervisor bugs – Escaping from FreeBSD bhyve
#47Earlier quoted context omitted.
It is trivially bypassed and has some negative performance impact. So why enable it by default? It is left as an option for the paranoid and for "checkbox compliance" type applications.
Trivially bypassed if you have an address leak…
https://dl.acm.org/doi/10.5555/3195638.3195686
https://www.vusec.net/projects/anc/
New timing attacks that break ASLR come out ~annually. These are hardware mechanisms that cannot be mitigated by software. ASLR is broken. (Nevermind ROP gadget compilers, etc.)