DISA STIGS Viewer

OL 9 must prevent code from being executed on file systems that are imported via Network File System (NFS).

Overview

Finding ID Version Rule ID IA Controls Severity
V-271642 OL09-00-002012 SV-271642r1092593_rule   Medium
Description
The "noexec" mount option causes the system not to execute binary files. This option must be used for mounting any file system not containing approved binary as they may be incompatible. Executing files from untrusted file systems increases the opportunity for nonprivileged users to attain unauthorized administrative access.
STIG Date
Oracle Linux 9 Security Technical Implementation Guide 2025-05-08

Details

Check Text (C-75692r1091636_chk)
If no NFS mounts are configured, this requirement is Not Applicable.

Verify that OL 9 has the "noexec" option configured for all NFS mounts with the following command:

$ cat /etc/fstab | grep nfs
192.168.22.2:/mnt/export /data nfs4 rw,nosuid,nodev,noexec,sync,soft,sec=krb5:krb5i:krb5p

If the system is mounting file systems via NFS and the "noexec" option is missing, this is a finding.
Fix Text (F-75599r1091637_fix)
Update each NFS mounted file system to use the "noexec" option on file systems that are being imported via NFS.