header-logo
Suggest Exploit
vendor:
Windows 7
by:
Mateusz Jurczyk
5,3
CVSS
MEDIUM
win32k!NtGdiGetOutlineTextMetricsInternalW System Call Buffer Overflow
119
CWE
Product Name: Windows 7
Affected Version From: Windows 7 32-bit
Affected Version To: Windows 7 32-bit
Patch Exists: YES
Related CWE: CVE-2016-3298
CPE: o:microsoft:windows_7:::-
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Windows
2016

win32k!NtGdiGetOutlineTextMetricsInternalW System Call Buffer Overflow

The win32k!NtGdiGetOutlineTextMetricsInternalW system call corresponds to the documented GetOutlineTextMetrics API function, and is responsible for returning information about the outline text metrics associated with a specific Device Context. The output data is passed to the client via a OUTLINETEXTMETRIC structure, which contains fields of various basic types (LONG, WCHAR, BYTE, ...), as well as other embedded structures. Due to the mixture of fields of various widths, the structure has several padding holes which do not correspond to any specific fields, but are required for the correct alignment of the data inside. Since the kernel-mode buffer is not pre-initialized upon allocation, and the holes are also not explicitly initialized in the system call, they end up containing junk data (from previous pool allocations), which is then leaked to the user-mode application.

Mitigation:

Microsoft has released a security update to address this vulnerability.
Source

Exploit-DB raw data: