Bug 1516205 (CVE-2017-16539) - CVE-2017-16539 docker: The DefaultLinuxSpec function does not block /proc/scsi pathnames
Summary: CVE-2017-16539 docker: The DefaultLinuxSpec function does not block /proc/scs...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-16539
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:
Blocks: 1510354
TreeView+ depends on / blocked
 
Reported: 2017-11-22 09:32 UTC by Andrej Nemec
Modified: 2019-09-29 14:25 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-04-18 01:27:16 UTC
Embargoed:


Attachments (Terms of Use)

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.


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