SV-248594r1208708_rule
V-248594
SRG-OS-000433-GPOS-00193
OL08-00-010430
CAT II
10
Configure the system to enable ASLR with the following command:
$ echo 'kernel.randomize_va_space = 2' | sudo tee /etc/sysctl.d/99-kernel_randomize_va_space.conf
Remove any configurations that conflict with the above from the following locations:
/run/sysctl.d/*.conf
/usr/local/lib/sysctl.d/*.conf
/usr/lib/sysctl.d/*.conf
/lib/sysctl.d/*.conf
/etc/sysctl.conf
/etc/sysctl.d/*.conf
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify Oracle Linux is implementing ASLR with the following command:
$ sysctl kernel.randomize_va_space
kernel.randomize_va_space = 2
Check that the configuration files are present to enable this kernel parameter:
$ sudo grep -rs kernel.randomize_va_space /run/sysctl.d/*.conf /usr/local/lib/sysctl.d/*.conf /usr/lib/sysctl.d/*.conf /lib/sysctl.d/*.conf /etc/sysctl.conf /etc/sysctl.d/*.conf
/etc/sysctl.d/99-kernel_randomize_va_space.conf:kernel.randomize_va_space = 2
If "kernel.randomize_va_space" is not set to "2", or is missing, this is a finding.
If conflicting results are returned, this is a finding.
V-248594
False
OL08-00-010430
Verify Oracle Linux is implementing ASLR with the following command:
$ sysctl kernel.randomize_va_space
kernel.randomize_va_space = 2
Check that the configuration files are present to enable this kernel parameter:
$ sudo grep -rs kernel.randomize_va_space /run/sysctl.d/*.conf /usr/local/lib/sysctl.d/*.conf /usr/lib/sysctl.d/*.conf /lib/sysctl.d/*.conf /etc/sysctl.conf /etc/sysctl.d/*.conf
/etc/sysctl.d/99-kernel_randomize_va_space.conf:kernel.randomize_va_space = 2
If "kernel.randomize_va_space" is not set to "2", or is missing, this is a finding.
If conflicting results are returned, this is a finding.
M
5416