Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1551818 - (CVE-2017-1002102) CVE-2017-1002102 kubernetes: Malicious containers can delete any file from the node
CVE-2017-1002102 kubernetes: Malicious containers can delete any file from th...
Status: MODIFIED
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180306,repor...
: Security
Depends On: 1554539 1536576 1553541 1554168 1554169 1554170 1554171 1554573
Blocks: 1536902
  Show dependency treegraph
 
Reported: 2018-03-05 19:29 EST by Jason Shepherd
Modified: 2018-06-29 18:34 EDT (History)
25 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
This vulnerability allows containers using a secret, configMap, projected, or downwardAPI volume to trigger deletion of arbitrary files and directories on the nodes where they are running. An attacker could use this flaw to delete arbitrary file or directories on node host.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0475 normal SHIPPED_LIVE Important: Red Hat OpenShift Container Platform security update 2018-03-12 19:40:44 EDT

  None (edit)
Description Jason Shepherd 2018-03-05 19:29:27 EST
A symlink race in the openShift node process allows a malicious container to trick the node into deleting any file.

Every sync iteration, the atomic writer code walks the volume looking for files that shouldn't be there or files that have changed.  When it finds files that shouldn't be there, it adds them to a list. Once it's finished walking the tree, it sorts the list lexicographically then starts at the end (to make sure that files are removed before the directories that contain them) and removes them one by one.

Because (a) the volume isn't mounted read-only by the runtime and (b) there is a time between finding the file and deleting the file, a malicious container can set up conditions to win a race such that the file to be deleted is removed and replaced with a symlink (to a node file to be deleted) between the time that the kubelet finds the file and the time it deletes it.
Comment 1 Jason Shepherd 2018-03-05 19:32:37 EST
Acknowledgments:

Name: Joel Smith (Red Hat)
Comment 4 errata-xmlrpc 2018-03-12 15:38:43 EDT
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 3.3
  Red Hat OpenShift Container Platform 3.4
  Red Hat OpenShift Container Platform 3.5
  Red Hat OpenShift Container Platform 3.6
  Red Hat OpenShift Container Platform 3.7

Via RHSA-2018:0475 https://access.redhat.com/errata/RHSA-2018:0475
Comment 5 Jason Shepherd 2018-03-12 18:39:32 EDT
Created kubernetes tracking bugs for this issue:

Affects: fedora-all [bug 1554539]
Comment 6 Jason Shepherd 2018-03-12 20:21:09 EDT
Created origin tracking bugs for this issue:

Affects: fedora-all [bug 1554573]

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