Vulnerability Discussion
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 nonprivileged users to attain unauthorized administrative access.
Check
Note: If no NFS mounts are configured, this requirement is Not Applicable.
Verify AlmaLinux OS 9 has the "nodev" option configured for all NFS mounts with the following command:
$ grep nfs /etc/fstab
192.168.1.9:/mnt/export /backups nfs4 rw,nosuid,nodev,noexec,sync,soft,sec=krb5p:krb5i:krb5
If the system is mounting file systems via NFS and the "nodev" option is missing, this is a finding.
Fix
Update each NFS mounted file system to use the "nodev" option on file systems that are being imported via NFS.