Skip to content
Memory corruption Write-up Advanced

Windows zero‑day CVE‑2019‑1132 exploited in targeted attacks

A NULL pointer dereference in the Windows win32k.sys component allowed an attacker to escalate privileges from a normal user to SYSTEM. The exploit was used in targeted attacks and could execute code in kernel mode.

welivesecurity.com

Published on welivesecurity.com

In June 2019, ESET researchers identified a zero-day exploit being used in a highly targeted attack in Eastern Europe.

The author, on welivesecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing NULL check in the win32k!xxxMNOpenHierarchy function, which allowed a crafted menu state to cause a NULL pointer dereference and subsequent kernel memory corruption.

Impact

The exploit could escalate privileges to SYSTEM, but it only works on older Windows versions because since Windows 8 a user process cannot map the NULL page, and Microsoft back-ported this mitigation to Windows 7 x64.

What the attacker needed

Local access to a vulnerable Windows system; ability to run code as a normal user; Windows version that allows mapping the NULL page

How it was found

  1. Create two windows and set up popup menu objects with hooks.
  2. Display a menu and send messages to open the first item, triggering the hook.
  3. Use a hook to detect when the initial menu is created but the sub-menu is not yet created.
  4. Send a message to cancel the first menu while its sub-menu is still pending.
  5. Leak the kernel address of the second window's tagWND structure.
  6. Craft a fake tagPOPUPMENU object at the NULL page and send a message to the sub-menu to trigger the vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a flaw in a core part of Windows that manages windows and menus. A normal program could trick this component into using a null (empty) memory address as if it were a real object, which let the attacker run code with the highest system privileges.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.