Re:QEMU heap overflow flaw while processing certain ATAPI co...
by Titanous on Monday July 27, 2015 @12:57PM
(#9956413)
Note that without a separate Linux privilege escalation exploit, running QEMU in a least-privilege "container" for each VM should help stem the bleeding.
[ Parent
| on HN ]
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by wglb on Monday July 27, 2015 @01:25PM
(#9956616)
How often is that how it is run?
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by rwmj on Monday July 27, 2015 @01:27PM
(#9956633)
All the time if you use libvirt. Also libvirt adds SELinux protection on platforms that support SELinux.
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by eeZi on Monday July 27, 2015 @01:51PM
(#9956801)
> All the time if you use libvirt.
Does it? Afaik libvirt requires AppArmor/SELinux for this.
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by rwmj on Monday July 27, 2015 @01:58PM
(#9956847)
cgroups and SELinux protections are separate. See: https://libvirt.org/cgroups.html Also: https://libvirt.org/drvqemu.html#security
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by eeZi on Monday July 27, 2015 @02:13PM
(#9956939)
But cgroups do not provide isolation, just better resource management.
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by rwmj on Monday July 27, 2015 @02:24PM
(#9957012)
If you bother to read the second link I posted, you'll see that cgroups does both (some) isolation and resource management. It's a layered scheme however and you absolutely should be using SELinux which is where the really comprehensive confinement happens.
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by eeZi on Monday July 27, 2015 @02:51PM
(#9957203)
I read both links, and the "isolation" provided by cgroups alone will not prevent exploitation of this bug (or any other, for that matter).
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by rwmj on Monday July 27, 2015 @03:01PM
(#9957257)
You can flat out wrong about this, as you have been in your other answers. I am an upstream libvirt committer so I do know a fair bit about what libvirt can do. The fact is that the isolation of cgroups will prevent various denial of service bugs, and also access to non-whitelisted devices.
It is nowhere near as comprehensive as SELinux isolation, as I clearly said way up there in my initial response -- which is also the reason why when you use Docker on RHEL, most of the security comes from the additional SELinux protections Red Hat have added.
Re:QEMU heap overflow flaw while processing certain ATAPI co...
by eeZi on Monday July 27, 2015 @03:46PM
(#9957557)
I agree with you that cgroups protect against denial of service attacks, and that the device whitelist provides some additional security (I actually did not know about the latter, so thanks! TIL). Thinking about it, if you exclusively use block devices for storage, this is a lot better than I expected.
But still, this is nowhere from a "a least-privilege container for each VM" as you suggested.
(I'm a heavy libvirt user myself - thank you for your work on it!)