The Red Hat Enterprise Linux operating system must mount /dev/shm with the nodev option.

From Red Hat Enterprise Linux 6 Security Technical Implementation Guide

Part of SRG-OS-000368-GPOS-00154

Associated with: CCI-001764

SV-96159r1_rule The Red Hat Enterprise Linux operating system must mount /dev/shm with the nodev option.

Vulnerability discussion

The "nodev" mount option causes the system to not interpret character or block special devices. Executing character or block special devices from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

Check content

Verify that the "nodev" option is configured for /dev/shm. Check that the operating system is configured to use the "nodev" option for /dev/shm with the following command: # cat /etc/fstab | grep /dev/shm | grep nodev tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0 If the "nodev" option is not present on the line for "/dev/shm", this is a finding. Verify "/dev/shm" is mounted with the "nodev" option: # mount | grep "/dev/shm" | grep nodev If no results are returned, this is a finding.

Fix text

Configure the "/etc/fstab" to use the "nodev" option for all lines containing "/dev/shm".

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer