Bug 1516205 (CVE-2017-16539)

Summary: CVE-2017-16539 docker: The DefaultLinuxSpec function does not block /proc/scsi pathnames
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
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, dwalsh, fkluknav, ichavero, jcajka, jchaloup, lsm5, marianne, nalin, santiago, vbatts
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-18 01:27:16 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:    
Bug Blocks: 1510354    

Description Andrej Nemec 2017-11-22 09:32:00 UTC
The DefaultLinuxSpec function in oci/defaults.go in Docker Moby through 17.03.2-ce does not block /proc/scsi pathnames, which allows attackers to trigger data loss (when certain older Linux kernels are used) by leveraging Docker container access to write a "scsi remove-single-device" line to /proc/scsi/scsi, aka SCSI MICDROP.

Upstream issue:

https://github.com/moby/moby/pull/35399

Upstream patch:

https://github.com/moby/moby/pull/35399/commits/a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1

References:

https://twitter.com/ewindisch/status/926443521820774401
https://marc.info/?l=linux-scsi&m=150985062200941&w=2
https://marc.info/?l=linux-scsi&m=150985455801444&w=2

Comment 2 Daniel Walsh 2017-11-22 14:10:51 UTC
SELinux blocks this attack vector.