RHEL-07-021024 - The Red Hat Enterprise Linux operating system must mount /dev/shm with secure options.

Information

The 'noexec' mount option causes the system to not execute binary files. This option must be used for mounting any file system not containing approved binary files as they may be incompatible. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

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.

The 'nosuid' mount option causes the system to not execute 'setuid' and 'setgid' files with owner privileges. This option must be used for mounting any file system not containing approved 'setuid' and 'setguid' files. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

Solution

Configure the system so that /dev/shm is mounted with the 'nodev', 'nosuid', and 'noexec' options by adding /modifying the /etc/fstab with the following line:

tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_7_V3R15_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7(2), CAT|III, CCI|CCI-001764, Rule-ID|SV-204486r958804_rule, STIG-ID|RHEL-07-021024, STIG-Legacy|SV-95725, STIG-Legacy|V-81013, Vuln-ID|V-204486

Plugin: Unix

Control ID: 9000c6d88de93b0c1f046a75039c0e458fb896f80cfc0c631e8967eea0e58b51