Bug 1329450 (CVE-2016-3697) - CVE-2016-3697 docker: privilege escalation via confusion of usernames and UIDs
Summary: CVE-2016-3697 docker: privilege escalation via confusion of usernames and UIDs
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2016-3697
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1329451 1329452 1329453 1329454 1329728
Blocks: 1391583
TreeView+ depends on / blocked
 
Reported: 2016-04-22 01:54 UTC by Trevor Jay
Modified: 2021-02-17 03:59 UTC (History)
21 users (show)

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.
Clone Of:
Environment:
Last Closed: 2019-06-08 02:50:53 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1034 0 normal SHIPPED_LIVE Moderate: docker security, bug fix, and enhancement update 2016-05-12 19:15:01 UTC
Red Hat Product Errata RHSA-2016:2634 0 normal SHIPPED_LIVE Moderate: docker security and bug fix update 2016-11-03 20:51:48 UTC

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


Note You need to log in before you can comment on or make changes to this bug.