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

Apple OS X Gen6Accelerator IOGen575Shared::new_texture Local Privilege Escalation Vulnerability

A kernel driver for the Apple Intel HD 3000 graphics chip dereferences a null pointer when handling a crafted IOConnectCallMethod request, and because the null page can be mapped on OS X the attacker can control the data read from it. This lets a local attacker redirect a call through an attacker-controlled pointer, leading to kernel code execution and local privilege escalation.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A vulnerability exists in the communication functionality of the Apple Intel HD 3000 Graphics kernel driver. A specially crafted message can cause a vulnerability resulting in local privilege escalation.

Piotr Bania, on Cisco Talos

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

How it worked

Root cause

Likely the driver dereferences a null pointer supplied in the request and then uses the resulting attacker-influenced value to compute a call target without validating it.

Impact

A local attacker could escalate privileges to kernel level, and the researchers report they successfully exploited it on OS X 10.11.

What the attacker needed

Local access to the machine; ability to map the null page; vulnerable AppleIntelHD3000Graphics driver

How it was found

  1. Send a specially crafted IOConnectCallMethod request to the AppleIntelHD3000Graphics driver.
  2. Trigger the faulting code path in IOGen575Shared::new_texture.
  3. Map the null page and place forged data there so the driver reads attacker-controlled values.
  4. Forge the input so the size check is skipped and the call pointer instruction is reached with an attacker-controlled pointer.

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 driver is a low-level program that runs with the highest privileges in the operating system. This graphics driver trusted a memory address that pointed at nothing (a null pointer), and on this version of OS X a normal user could place their own data at that address. By doing so, the attacker could make the driver jump to code of their choosing and take full control of the 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 Piotr Bania

View all

94 more disclosed reports, best first.

More from Cisco Talos

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.