4.3 Enable Randomized Virtual Memory Region Placement

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Set the system flag to force randomized virtual memory region placement.

*Rationale*

Randomly placing virtual memory regions will make it difficult to write memory page
exploits as the memory placement will be consistently shifting.

Solution

Add the following line to the /etc/sysctl.conf file.kernel.randomize_va_space = 2

See Also

https://benchmarks.cisecurity.org/tools2/linux/CIS_Ubuntu_12.04_LTS_Server_Benchmark_v1.1.0.pdf