UPDATED 08:03 EDT / JUNE 19 2014

Docker containers spring a leak: Already fixed in 1.0 release

small__4531321407Researchers have discovered a flaw in Docker that allows rogue programs to break out of their containers and access files on the host operating system, although it’s now been fixed with the latest update.

Linux containerization involves sticking multiple, cordoned-off applications on the same host operating system instance, unlike virtualization, which runs a new OS for each virtual machine. The tech has rapidly become very popular due to its performance advantages over virtualization, but there are some question marks over the security of this approach – which is one reason why the likes of AWS and Google have a limit of one Docker container per VM on their clouds.

According to the researchers who found the exploit, it “demonstrates that any given Docker image someone is asking you to run in your Docker setup can access ANY file on your host, e.g. dumping hosts /etc/shadow or other sensitive info, compromising security of the host and any other docker VM’s on it.”

The flaw affects version 0.11 of the Docker Engine runtime and packaging technology, but doesn’t affect version 0.12, which was released alongside Docker 1.0 last week.

“The proof of concept exploit relies on a kernel capability that allows a process to open any file in the host based on its inode. On most systems, the inode of the / (root) filesystem is 2. With this information and the kernel capability it is possible to walk the host’s filesystem tree until you find the object you wish to open and then extract sensitive information like passwords,” wrote Docker in a blog post after the flaw was published.

“In earlier Docker Engine releases (pre-Docker Engine 0.12) we dropped a specific list of kernel capabilities, ( a list which did not include this capability), and all other kernel capabilities were available to Docker containers. In Docker Engine 0.12 (and continuing in Docker Engine 1.0) we drop all kernel capabilities by default. Essentially, this changes our use of kernel capabilities from a blacklist to a whitelist.”

Docker is advising users to run the containerization tech along with SE Linux or AppArmor to ensure further containment. It also says to map groups of mutually-trusted containers to seperate machines.

“Please remember, however, that at this time we don’t claim that Docker Engine out-of-the-box is suitable for containing untrusted programs with root privileges,” the company added.

photo credit: itmpa via photopin cc

A message from John Furrier, co-founder of SiliconANGLE:

Support our open free content by sharing and engaging with our content and community.

Join theCUBE Alumni Trust Network

Where Technology Leaders Connect, Share Intelligence & Create Opportunities

11.4k+  
CUBE Alumni Network
C-level and Technical
Domain Experts
15M+ 
theCUBE
Viewers
Connect with 11,413+ industry leaders from our network of tech and business leaders forming a unique trusted network effect.

SiliconANGLE Media is a recognized leader in digital media innovation serving innovative audiences and brands, bringing together cutting-edge technology, influential content, strategic insights and real-time audience engagement. As the parent company of SiliconANGLE, theCUBE Network, theCUBE Research, CUBE365, theCUBE AI and theCUBE SuperStudios — such as those established in Silicon Valley and the New York Stock Exchange (NYSE) — SiliconANGLE Media operates at the intersection of media, technology, and AI. .

Founded by tech visionaries John Furrier and Dave Vellante, SiliconANGLE Media has built a powerful ecosystem of industry-leading digital media brands, with a reach of 15+ million elite tech professionals. The company’s new, proprietary theCUBE AI Video cloud is breaking ground in audience interaction, leveraging theCUBEai.com neural network to help technology companies make data-driven decisions and stay at the forefront of industry conversations.