CCE-95431-3Platform: cpe:/o:amazon:linux:2, cpe:/o:centos:centos:7, cpe:/o:oracle:linux:7, cpe:/o:oracle:linux:8, cpe:/o:redhat:enterprise_linux:7, cpe:/o:redhat:enterprise_linux:8, cpe:/o:redhat:enterprise_linux:9 | Date: (C)2021-03-05 (M)2023-07-04 |
Description:
The nosuid mount option specifies that the filesystem cannot contain setuid files.
Rationale:
Setting this option on a file system prevents users from introducing privileged programs
onto the system and allowing non-root users to execute them.
Audit:
Verify that the nosuid option is set if a /dev/shm partition exists.
Run the following command and verify that nothing is returned:
# mount | grep -E 's/dev/shms' | grep -v nosuid
Remediation:
Edit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the
/dev/shm partition. See the fstab(5) manual page for more information.
Run the following command to remount /dev/shm :
# mount -o remount,nosuid /dev/shm
Notes:
Some distributions mount /dev/shm through other means and require /dev/shm to be
added to /etc/fstab even though it is already being mounted on boot. Others may
configure /dev/shm in other locations and may override /etc/fstab configuration. Consult
the documentation appropriate for your distribution.
Parameter:
[yes/no]
Technical Mechanism:
Edit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the
/dev/shm partition. See the fstab(5) manual page for more information.
Run the following command to remount /dev/shm :
# mount -o remount,nosuid /dev/shm
CCSS Severity: | CCSS Metrics: |
CCSS Score : 7.8 | Attack Vector: LOCAL |
Exploit Score: 1.1 | Attack Complexity: HIGH |
Impact Score: 6.0 | Privileges Required: LOW |
Severity: HIGH | User Interaction: NONE |
Vector: AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | Scope: CHANGED |
| Confidentiality: HIGH |
| Integrity: HIGH |
| Availability: HIGH |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:71964 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68582 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72877 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84204 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72330 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72771 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72668 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72982 |