← Rules Catalog
mediumfilesystemverified rollback-safe

Mount /var with nosuid option

mount-var-nosuid · RHEL ≥ 8 · 1 impl

Description

The /var filesystem must be mounted with the nosuid option to prevent setuid and setgid binaries from being executed from the variable data tree.

Rationale

/var holds variable data such as caches, spools, and logs that should never contain setuid/setgid executables. The nosuid mount option prevents an attacker who can write to /var from staging a setuid binary there to escalate privileges.

Check → Remediate

Checkmount_option
mount_point:
/var
options:
nosuid
Remediatemount_option_set
mount_point:
/var
options:
nosuid

Framework references

CIS

rhel9 1.1.2.4.3rhel8 1.1.2.4.3rhel10 1.1.2.4.3

NIST 800-53

CM-6AC-6

Live verification

rhel9:check
#mount#var#nosuid#security