PT-2018-16942 · Mingw W64+1 · Mingw-W64+1

Will Dormann

·

Published

2018-08-14

·

Updated

2019-10-09

·

CVE-2018-5392

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions mingw-w64 version 5.0.4
Description The issue concerns the production of Windows executables by mingw-w64 that claim to be compatible with Address Space Layout Randomization (ASLR), an exploit mitigation technique, but lack the necessary relocations table. This discrepancy makes the executables vulnerable to return-oriented programming (ROP) attacks, as they do not fully support ASLR despite containing the "Dynamic base" PE header. ASLR is designed to randomize the location of executables and libraries in memory, making it harder for attackers to predict where their malicious code will be loaded. However, for ASLR to function correctly, executables must include a relocations table, which is stripped by default in mingw-w64 generated executables.
Recommendations For mingw-w64 version 5.0.4, ensure that the relocations table is not stripped from the generated Windows executables to make them truly compatible with ASLR, thereby reducing their vulnerability to ROP attacks. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Access of Uninitialized Pointer

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2018-5392
ECHO-3985-4D70-6D87

Affected Products

Debian
Mingw-W64