nodev mount option is not enabled for /dev/shm directory
Description
Mounting is the attaching of an additional filesystem to the currently accessible filesystem of a computer. The /dev/shm directory is a shared memory in the form of a RAMDisk , more specifically as a world-writable directory that is stored in memory with a defined limit. .This directory is not meant for mounting block devices. Since it's a word-writable directory, it's recommended to enable nodev mount option for /dev/shm directory to prevent block devices from mounting on it.
Severity
important
Category
Linux - Mounting Options Security
Resolution
Follow the below steps to resolve the misconfiguration.
Edit the /etc/fstab file and add nodev to the fourth field (mounting options) for the /dev/shm partition.
Run the following command to remount /dev/shm :
mount -o remount,nodev /dev/shm
Potential issues that may arise after applying the resolution
Altering the existing security setting may create the following impact in your network operations.
Does remediation require reboot?
No
Vulnerability Manager Plus tracks security configurations and remediate misconfigurations in your network systems from a centralized console. View a list of all the security misconfigurations detected by Vulnerability Manager Plus.