OL07-00-021024 - The Oracle 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_Oracle_Linux_7_V2R14_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7(2), CAT|III, CCI|CCI-001764, Rule-ID|SV-221747r853676_rule, STIG-ID|OL07-00-021024, STIG-Legacy|SV-108337, STIG-Legacy|V-99233, Vuln-ID|V-221747

Plugin: Unix

Control ID: a2a6a89fabce05bf615173550af2a0063e2ba95e663348d1d24003e22c174da4