vendor:
N/A
by:
Qualys, Inc.
7,5
CVSS
HIGH
Stack Clash
121
CWE
Product Name: N/A
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: CVE-2017-1084
CPE: N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2017
FreeBSD_CVE-2017-FGPE.c
FreeBSD_CVE-2017-FGPE.c is a program for CVE-2017-1084 which is a stack clash vulnerability. It is a type of vulnerability which allows an attacker to overwrite the stack guard page and gain control of the program execution flow. This program is written in C language and it is compiled with -O0. It is a free software which is distributed under the GNU General Public License. It uses mmap() and setrlimit() functions to allocate memory and set the resource limit respectively. It also uses clash_smash_no_jump() function to overwrite the stack guard page. The program prints the character at the last page and the final distance.
Mitigation:
The best way to mitigate this vulnerability is to use a non-executable stack and heap. This can be done by using the -z execstack and -z noexecstack compiler flags. Also, the stack guard page size should be increased to make it more difficult for an attacker to overwrite it.