1.159 RHEL-10-400360

Information

RHEL 10 must prevent files with the "setuid" and "setgid" bit set from being executed on file systems that contain user home directories.

GROUP ID: V-281089
RULE ID: SV-281089r1165622

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 nonprivileged users to attain unauthorized administrative access.

Solution

Configure RHEL 10 to prevent files with the "setuid" and "setgid" bit set from being executed on file systems that contain user home directories.

Modify "/etc/fstab" to use the "nosuid" option on the "/home" directory.

See Also

https://workbench.cisecurity.org/benchmarks/26403