vendor:
Windows 10
by:
Project Zero
8,3
CVSS
HIGH
win32k!NtQueryCompositionSurfaceBinding System Call Disclosure
200
CWE
Product Name: Windows 10
Affected Version From: Windows 10 32-bit
Affected Version To: Windows 10 32-bit
Patch Exists: YES
Related CWE: N/A
CPE: o:microsoft:windows_10
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!NtQueryCompositionSurfaceBinding System Call Disclosure
The win32k!NtQueryCompositionSurfaceBinding system call discloses portions of uninitialized kernel stack memory to user-mode clients. The output buffer, and the corresponding temporary stack-based buffer in the kernel are 0x308 bytes in size. The first 4 and the trailing 0x300 bytes are zero'ed out at the beginning of the function, however, the remaining 4 bytes at offset 0x4 are never touched, and so they contain whatever data was written there by the previous system call. These 4 bytes are then subsequently leaked to the user-mode caller. Exploitation of this bug is further facilitated by the fact that the contents of the buffer are copied back to user-mode even if the syscall fails.
Mitigation:
Microsoft has released a patch to address this vulnerability.