SV-257817r1069383_rule
V-257817
SRG-OS-000433-GPOS-00192
RHEL-09-213110
CAT II
10
If /proc/cpuinfo shows that one or more processors do not enable ExecShield (lack the "nx" feature flag), verify that the NX/XD feature is not disabled in the BIOS or UEFI. If it is disabled, enable it.
If the noexec option is present on the kernel command line, update the GRUB 2 bootloader configuration to remove it by running the following command:
$ sudo grubby --update-kernel=ALL --remove-args=noexec
Verify ExecShield is enabled on 64-bit RHEL 9 systems.
Run the following command:
$ grep ^flags /proc/cpuinfo | grep -Ev '([^[:alnum:]])(nx)([^[:alnum:]]|$)'
If any output is returned, this is a finding.
Next, run the following command:
$ sudo grubby --info=ALL | grep args | grep -E '([^[:alnum:]])(noexec)([^[:alnum:]])'
If any output is returned, this is a finding.
V-257817
False
RHEL-09-213110
Verify ExecShield is enabled on 64-bit RHEL 9 systems.
Run the following command:
$ grep ^flags /proc/cpuinfo | grep -Ev '([^[:alnum:]])(nx)([^[:alnum:]]|$)'
If any output is returned, this is a finding.
Next, run the following command:
$ sudo grubby --info=ALL | grep args | grep -E '([^[:alnum:]])(noexec)([^[:alnum:]])'
If any output is returned, this is a finding.
M
5551