RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1472410 - /dev is mounted as a tmpfs and should be limited in size the same way that /dev/shm is.
Summary: /dev is mounted as a tmpfs and should be limited in size the same way that /...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Antonio Murdaca
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-18 16:20 UTC by Daniel Walsh
Modified: 2020-06-09 21:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-09 21:04:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
This patch might fix the issue. (461 bytes, patch)
2017-07-18 19:06 UTC, Daniel Walsh
no flags Details | Diff

Description Daniel Walsh 2017-07-18 16:20:27 UTC
There is a potential Denial of Service attack from a container against the host by using up 50% of available memory from writing to /dev.

Comment 1 Daniel Walsh 2017-07-18 16:22:01 UTC
Also needs to be fixed in Fedora.

Comment 3 Daniel Walsh 2017-07-18 19:04:20 UTC
This is really under docker.  But I am not sure it is real important.  Since /tmp size is controlled by memory cgroup, this would only allow a user to use 50% of available memory in his container.  If the admin does not set any memory limit on a container the processes inside could use 100% or memory.

Comment 4 Daniel Walsh 2017-07-18 19:06:27 UTC
Created attachment 1300623 [details]
This patch might fix the issue.

Comment 5 Mrunal Patel 2017-07-18 19:09:21 UTC
Yeah, that should work. Do we want to make it configurable though like the --shm-size flag in docker?

Comment 6 Daniel Walsh 2017-07-18 19:17:17 UTC
I don't think it would ever grow to that big of a size unless the user is doing something very wrong, the only things that should be in /dev are devicenodes.

Comment 7 Vivek Goyal 2017-07-18 19:43:18 UTC
Giving a container with a tmpfs limited with size makes sense.

Comment 8 Tom Sweeney 2020-06-09 21:04:42 UTC
We have no plans to ship another version of Docker at this time. RHEL7 is in final support stages where only security fixes will get released.  Customers should move to use Podman which is available starting in RHEL 7.6.


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