STIGUI
V-258848CAT II — Medium severitySV-258848r958928_rule

The Photon operating system must implement address space layout randomization to protect its memory from unauthorized code execution.

Rule version PHTN-40-000160 · STIG v2 · 2026-08-26

Discussion

Some adversaries launch attacks with the intent of executing code in nonexecutable regions of memory or in memory locations that are prohibited. 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.

Check

At the command line, run the following command to verify address space layout randomization is enabled:

# cat /proc/sys/kernel/randomize_va_space

If the value of "randomize_va_space" is not "2", this is a finding.

Fix

Navigate to and open:

/etc/sysctl.d/zz-stig-hardening.conf

Add or update the following line:

kernel.randomize_va_space=2

At the command line, run the following command to load the new configuration:

# /sbin/sysctl --load /etc/sysctl.d/zz-stig-hardening.conf

Note: If the file zz-stig-hardening.conf does not exist, it must be created.

Identifiers

Group ID
V-258848
Group title
SRG-OS-000433-GPOS-00193
Rule ID
SV-258848r958928_rule
Check ID
C-62588r933603_chk
Fix ID
F-62497r933604_fix