Twenty Year Anniversary

Microsoft Windows Kernel win32k!PROXYPORT::SendRequest Memory Disclosure

Microsoft Windows Kernel win32k!PROXYPORT::SendRequest Memory Disclosure
Posted Mar 21, 2018
Authored by Google Security Research, mjurczyk

The Microsoft Windows kernel suffers from a 64-bit pool memory disclosure vulnerability in win32k!PROXYPORT::SendRequest.

tags | advisory, kernel
systems | windows
advisories | CVE-2018-0814
MD5 | c4d2ec2f03999cf0e9586f23b01f54a9

Microsoft Windows Kernel win32k!PROXYPORT::SendRequest Memory Disclosure

Change Mirror Download
Windows Kernel 64-bit stack memory disclosure in win32k!PROXYPORT::SendRequest 

CVE-2018-0814


We have discovered that the win32k!PROXYPORT::SendRequest function sends ALPC messages with portions of uninitialized memory from the local stack frame on Windows 7 64-bit (other versions were not tested).

The message is 0x20 bytes long, 8 of which are uninitialized. The layout of the memory area is as follows:

--- cut ---
00000000: 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 ................
00000010: 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 ................
--- cut ---

Where 00 denote bytes which are properly initialized, while ff indicate uninitialized values. Based on a brief analysis of the win32k!PROXYPORT::SendRequest function code, we suspect that the memory region is in fact a structure, where the 1st and 3rd fields are 32-bit wide, while the 2nd and 4th fields are 64-bit wide (e.g. pointers). Such layout would cause the compiler to insert the two 4-byte padding holes, in order to align the 64-bit fields to 8-byte boundaries. This would also explain why the bug hasn't previously manifested itself on 32-bit builds of Windows.

The buffer is typically read back with the NtReplyWaitReceivePort syscall by the splwow64.exe process, as observed during system runtime on our test machine:

--- cut ---
kd> k
# Child-SP RetAddr Call Site
00 fffff880`03841a98 fffff800`029a9c3b nt!memcpy+0x3
01 fffff880`03841aa0 fffff800`029a9f63 nt!AlpcpReceiveLegacyMessage+0x1ea
02 fffff880`03841b40 fffff800`029a9e33 nt!NtReplyWaitReceivePortEx+0x122
03 fffff880`03841be0 fffff800`0268d093 nt!NtReplyWaitReceivePort+0xf
04 fffff880`03841c20 00000000`772abdea nt!KiSystemServiceCopyEnd+0x13
05 00000000`01e9f928 00000000`ffc6a8a2 ntdll!NtReplyWaitReceivePort+0xa
06 00000000`01e9f930 00000000`771559cd splwow64!LPCConnMsgsServingThread+0x6a
07 00000000`01e9f9d0 00000000`7728a561 kernel32!BaseThreadInitThunk+0xd
08 00000000`01e9fa00 00000000`00000000 ntdll!RtlUserThreadStart+0x1d

kd> db rdx rdx+r8-1
fffff8a0`02fe4d60 20 00 00 00 bb bb bb bb-68 00 83 02 00 00 00 00 .......h.......
fffff8a0`02fe4d70 08 00 00 00 bb bb bb bb-88 00 83 02 00 00 00 00 ................
--- cut ---

As the splwow64.exe process runs with the privileges of the local user, we believe no special rights in the system are required to access the disclosed kernel memory. A proof-of-concept program is not provided for this issue, but it has been observed at normal system runtime, and is quite evident in the code.

Repeatedly triggering the vulnerability could allow local authenticated attackers to defeat certain exploit mitigations (kernel ASLR) or read other secrets stored in the kernel address space.

This bug is subject to a 90 day disclosure deadline. After 90 days elapse or a patch has been made broadly available, the bug report will become visible to the public.



Found by: mjurczyk

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

Want To Donate?


Bitcoin: 18PFeCVLwpmaBuQqd5xAYZ8bZdvbyEWMmU

File Archive:

August 2018

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    19 Files
  • 2
    Aug 2nd
    17 Files
  • 3
    Aug 3rd
    16 Files
  • 4
    Aug 4th
    1 Files
  • 5
    Aug 5th
    1 Files
  • 6
    Aug 6th
    19 Files
  • 7
    Aug 7th
    15 Files
  • 8
    Aug 8th
    9 Files
  • 9
    Aug 9th
    7 Files
  • 10
    Aug 10th
    10 Files
  • 11
    Aug 11th
    1 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    14 Files
  • 14
    Aug 14th
    18 Files
  • 15
    Aug 15th
    38 Files
  • 16
    Aug 16th
    5 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close