RHEL-09-213110 - RHEL 9 must implement nonexecutable data to protect its memory from unauthorized code execution.

Information

ExecShield uses the segmentation feature on all x86 systems to prevent execution in memory higher than a certain address. It writes an address as a limit in the code segment descriptor, to control where code can be executed, on a per-process basis. When the kernel places a process's memory regions such as the stack and heap higher than this address, the hardware prevents execution in that address range. This is enabled by default on the latest Red Hat and Fedora systems if supported by the hardware.

Solution

Update the GRUB 2 bootloader configuration.

Run the following command:

$ sudo grubby --update-kernel=ALL --remove-args=noexec

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V2R2_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-16, CAT|II, CCI|CCI-002824, Rule-ID|SV-257817r958928_rule, STIG-ID|RHEL-09-213110, Vuln-ID|V-257817

Plugin: Unix

Control ID: b5b89092781620e814ac2bb6e08cb8218d35c7b429a841fb4b89f7a6b8ece33f