RHEL 10 must implement address space layout randomization (ASLR) to protect its memory from unauthorized code execution.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
|---|---|---|---|---|---|---|
| medium | V-281315 | SRG-OS-000433-GPOS-00193 | RHEL-10-701130 | SV-281315r1167095_rule | 2026-03-11 | 1 |
Description
ASLR makes it more difficult for an attacker to predict the location of attack code they have introduced into a process's address space during an attempt at exploitation. Additionally, ASLR makes it more difficult for an attacker to know the location of existing code to repurpose it using return-oriented programming techniques.
ℹ️ Check
Verify RHEL 10 is implementing ASLR.
Check the status of the "kernel.randomize_va_space" kernel parameter with the following command:
$ sudo sysctl kernel.randomize_va_space
kernel.randomize_va_space = 2
If "kernel.randomize_va_space" is not set to "2" or is missing, this is a finding.
✔️ Fix
Configure RHEL 10 to implement ASLR.
Create the drop-in if it does not already exist:
$ sudo vi /etc/sysctl.d/99-kernel_randomize_va_space.conf
Add the following line to the file:
kernel.randomize_va_space = 2
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system