Bug 1329450 (CVE-2016-3697)

Summary: CVE-2016-3697 docker: privilege escalation via confusion of usernames and UIDs
Product: [Other] Security Response Reporter: Trevor Jay <tjay>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adimania, admiller, amurdaca, bleanhar, carnil, ccoleman, dmcphers, dwalsh, ichavero, jcajka, jchaloup, jialiu, jkeck, jokerman, lmeyer, lsm5, marianne, miminar, mmccomas, nalin, vbatts
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
It was found that Docker would launch containers under the specified UID instead of a username. An attacker able to launch a container could use this flaw to escalate their privileges to root within the launched container.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:50:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1329451, 1329452, 1329453, 1329454, 1329728    
Bug Blocks: 1391583    

Description Trevor Jay 2016-04-22 01:54:56 UTC
Container launch does not distinguish between numeric UIDs and string usernames. A malicious image can provide a username to UID mapping at a high privileged level. This means that innoculous looking launches such as:

    docker -u 1000 ...

actually result in the image processes running as root.

This ambiguity also confuses OpenShift's UID-based controls.

Comment 1 Trevor Jay 2016-04-22 02:00:48 UTC
Acknowledgments:

Name: Mrunal Patel (Red Hat)

Comment 4 Trevor Jay 2016-04-22 02:03:38 UTC
Created docker tracking bugs for this issue:

Affects: fedora-all [bug 1329454]

Comment 5 errata-xmlrpc 2016-05-12 15:17:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extras

Via RHSA-2016:1034 https://rhn.redhat.com/errata/RHSA-2016-1034.html

Comment 6 errata-xmlrpc 2016-11-04 09:07:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extras

Via RHSA-2016:2634 https://rhn.redhat.com/errata/RHSA-2016-2634.html