Randomize the address of the kernel image (KASLR)
An XCCDF Rule
Description
In support of Kernel Address Space Layout Randomization (KASLR), this randomizes the physical
address at which the kernel image is decompressed and the virtual address where the kernel
image is mapped.
The configuration that was used to build kernel is available at /boot/config-*
.
To check the configuration value for CONFIG_RANDOMIZE_BASE
, run the following command:
grep CONFIG_RANDOMIZE_BASE /boot/config-*
For each kernel installed, a line with value "y" should be returned.
warning alert: Warning
There is no remediation for this besides re-compiling the kernel with the appropriate value for the config.
Rationale
An unpredictable kernel address makes it more difficult to succeed with exploits that rely on knowledge of the location of kernel code internals.
- ID
- xccdf_org.ssgproject.content_rule_kernel_config_randomize_base
- Severity
- Medium
- Updated