Skip to content
Memory corruption Advisory Advanced CVE-2016-0184

Direct3D Use After Free RCE Vulnerability (CVE-2016-0184)

The Windows GDI component failed to properly handle objects in memory, leaving a use-after-free condition. An attacker who exploited it could take control of the affected system, including installing programs, changing or deleting data, or creating accounts with full user rights.

Henry Li Follow

Originally disclosed on Microsoft

Critical View original

Description

A remote code execution vulnerability exists when the Windows GDI component fails to properly handle objects in memory. An attacker who successfully exploited the vulnerability could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights. There are multiple ways an attacker could exploit the vulnerability: In a web-based attack scenario, an attacker could host a specially crafted website designed to exploit the vulnerability and then convince a user to view the website. An attacker would have no way to force users to view the attacker-controlled content. Instead, an attacker would have to convince users to take action, typically by getting them to click a link in an email or instant message that takes users to the attacker's website or by opening an attachment sent through email. In a file-sharing attack scenario, an attacker could provide a specially crafted document file designed to exploit the vulnerability and then convince a user to open the document file. The security update addresses the vulnerability by correcting how the Windows GDI component handles objects in the memory.

Microsoft Graphics Component

Microsoft Graphics Component

The original report as published on the Microsoft Security Response Center, by Henry Li (zenhumany) of Trend Micro. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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

How it worked

Root cause

Likely a use-after-free in the Windows GDI component, where an object in memory was used after being freed without proper handling.

Impact

An attacker could take control of the affected system, install programs, view, change or delete data, or create new accounts with full user rights; users with fewer rights could be less impacted.

What the attacker needed

Victim visits a malicious website; or victim opens a crafted document; user interaction required

How it was found

  1. Host a specially crafted website that exploits the vulnerability.
  2. Convince the user to visit that website, for example via a link in an email or instant message.
  3. Alternatively, send a specially crafted document file and convince the user to open it.

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 report has not been written yet. The Original tab links to the source.

A part of Windows that draws graphics on screen sometimes keeps using a chunk of memory after it has already been freed. If an attacker can control what lands in that freed space, they can make the program run their own instructions instead of the intended ones. This is called a use-after-free bug, and here it could let an attacker run code on the victim's machine.

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.

More by Henry Li

View all

2 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

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.