UBTU-22-213020 - Ubuntu 22.04 LTS must implement address space layout randomization to protect its memory from unauthorized code execution.

Information

Some adversaries launch attacks with the intent of executing code in nonexecutable regions of memory or in prohibited memory locations. Security safeguards employed to protect memory include, for example, data execution prevention and address space layout randomization. Data execution prevention safeguards can either be hardware-enforced or software-enforced with hardware providing the greater strength of mechanism.

Examples of attacks are buffer overflow attacks.

Solution

Remove the 'kernel.randomize_va_space' entry found in the '/etc/sysctl.conf' file or any file located in the '/etc/sysctl.d/' directory.

Reload the system configuration files for the changes to take effect by using the following command:

$ sudo sysctl --system

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_22-04_LTS_V2R2_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-16, CAT|II, CCI|CCI-002824, Rule-ID|SV-260474r958928_rule, STIG-ID|UBTU-22-213020, Vuln-ID|V-260474

Plugin: Unix

Control ID: e23dfb7a8ed4b7d371c65cdae2587c0a23de67587b81eca7472a33b19bf7aabd