GEN003540 - The system must implement non-executable program stacks - 'kernel.randomize_va_space'

Information

A common type of exploit is the stack buffer overflow. An application receives, from an attacker, more data than it is prepared for and stores this information on its stack, writing beyond the space reserved for it. This can be designed to cause execution of the data written on the stack. One mechanism to mitigate this vulnerability is for the system to not allow the execution of instructions in sections of memory identified as part of the stack.

Solution

Examine /etc/sysctl.conf for 'kernel.exec-shield' and 'kernel.randomize_va_space' entries and if found remove them. The system default of '1' enables these modules.

See Also

http://iasecontent.disa.mil/stigs/zip/U_RedHat_5_V1R18_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Group-ID|V-11999, Rule-ID|SV-27414r1_rule, STIG-ID|GEN003540, Vuln-ID|V-11999

Plugin: Unix

Control ID: 06d7846bcb0857383a18e890f860f5d3f35424c4b2759f1d9c8391c4787f036e