ALMA-09-044900 - AlmaLinux OS 9 must implement address space layout randomization (ASLR) to protect its memory from unauthorized code execution.

Information

ASLR makes it more difficult for an attacker to predict the location of attack code they have introduced into a process' 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 (ROP) techniques.

Solution

Configure the system to enable ASLR with the following command:

$ echo 'kernel.randomize_va_space = 2' > /etc/sysctl.d/60-aslr.conf

Reload settings from all system configuration files with the following command:

$ sysctl --system

See Also

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

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-16, CAT|II, CCI|CCI-002824, Rule-ID|SV-269452r1050335_rule, STIG-ID|ALMA-09-044900, Vuln-ID|V-269452

Plugin: Unix

Control ID: da2435e3a93a11334641c77cbfb5dca48c0927c81a4521e518bef3a2e9cf7bf0