New Linux vulnerability affecting cgroups: can containers escape?
unit42.paloaltonetworks.com
New Linux vulnerability affecting cgroups: can containers escape?
1–10 of 86 posts
Re: New Linux vulnerability affecting cgroups: can containers escape?
#2"Fortunately, the default security hardenings in most container environments are enough to prevent container escape. Containers running with AppArmor or SELinux are protected. "
So, all that hard work on SELinux continues to pay off.
Re: New Linux vulnerability affecting cgroups: can containers escape?
#3Re: New Linux vulnerability affecting cgroups: can containers escape?
#4Important note on this: "Fortunately, the default security hardenings in most container environments are enough to prevent container escape. Containers running with AppArmor or SELinux are protected. " So, all that hard work on SELinux continues to pay off.
Re: New Linux vulnerability affecting cgroups: can containers escape?
#5Re: New Linux vulnerability affecting cgroups: can containers escape?
#6However, realistically, given the env that a container gives you, it certainly looks and feels like a security boundary. So are we just going to be stuck in this retroactive security cleanup mode forever? My point is that if it were designed from the ground up with the hard security boundary in mind, would we have ended up with containers in the first place? If not, is there any realistic way to go from where we are to where we should be?
The only other design I'm familiar with that sort of comes close are MicroVMs. Those have the downside of actually needing to run a VM though, and most (all?) cloud providers don't allow nested virtualization so you're stuck running on an enormous bare metal box.
Re: New Linux vulnerability affecting cgroups: can containers escape?
#7“Container” seems to be used throughout to mean “Docker container”. There are other types of containers.
Re: New Linux vulnerability affecting cgroups: can containers escape?
#8Important note on this: "Fortunately, the default security hardenings in most container environments are enough to prevent container escape. Containers running with AppArmor or SELinux are protected. " So, all that hard work on SELinux continues to pay off.
Sadly, many answers to questions related to selinux issues, or howto's start with: Disable selinux.
SELinux remains inscrutable and unusuable to the lay person. Microsoft had the same problem with Windows XP and especially after its service pack 2 when the Windows Firewall was introduced, that it was difficult to debug and applications didn't prompt to open ports or have an API to do so. So many a lay person posted on forums "disable firewall".
Users don't care why their tools don't work, they don't understand why or how to fix it. Technically complex SELinux audit tutorials are not helpful. There needs to be real, genuine attention to user experience an almost tutorial like CLI command. Something so simple anyone could safely make a program run. Whether that program is safe itself is another question, and users should be told that too.
Re: New Linux vulnerability affecting cgroups: can containers escape?
#9See how easy that was?
Re: New Linux vulnerability affecting cgroups: can containers escape?
#10This style of writing sucks, and the abuse of the meaningless term "container" does nothing to clear it up. To reduce this CVE to one sentence: a process running in the top level control group, which has the ability to create user namespace, can take over the machine, because the kernel fails to check for CAP_SYS_ADMIN. See how easy that was?