OL07-00-021024 - The Oracle Linux operating system must mount /dev/shm with secure options - noexec fstab

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

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_V2R9_STIG.zip

Item Details

References: 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: 0ba1758649fe31e1b9d65b1a0b0a47347718a95a8ffc32959ea14e0de4bb5521