vendor:
Windows
by:
Project Zero
7,8
CVSS
HIGH
Uninitialized Kernel Stack Memory Disclosure
119
CWE
Product Name: Windows
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
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 7 and Windows 10
2017
Uninitialized Kernel Stack Memory Disclosure
A vulnerability was discovered in the nt!NtGdiGetFontResourceInfoInternalW system call, which discloses portions of uninitialized kernel stack memory to user-mode clients. This is caused by the fact that for user-specified output buffer sizes up to 0x5c, a temporary stack-based buffer is used by the syscall for optimization. As opposed to the pool allocation, the stack memory area is not pre-initialized with zeros, and when it is copied back to user-mode in its entirety, its contents disclose leftover kernel stack bytes containing potentially sensitive information. The vulnerability is fixed in Windows 10, which has the memset() call at the beginning of the function.
Mitigation:
Upgrade to Windows 10 or later.