You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full: This check ensures that non-executable stack is enabled. 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. Use the compiler flags '-z noexecstack' to enable this.
Platform & applicability
Platform: Unix
Applicable to: Linux (ELF) binaries
Not applicable to: Windows
User-facing strings
Fail: The non-executable stack is not enabled for this binary, so '{0}' can have a vulnerability of execution of the data written on the stack. Ensure you are compiling with the flag '-z noexecstack' to address this.
Pass: The non-executable stack flag was present, so '{0}' is protected.
Rule Proposal: Enable Non-Executable Stack
Rule metadata
Rule descriptions
Platform & applicability
User-facing strings
Links/Additional Information
https://linux.die.net/man/8/execstack
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-z (check z argument)
Implementation Notes
How to resolve
-z noexecstack
The text was updated successfully, but these errors were encountered: