Skip to content
Memory corruption Advisory Advanced CVE-2018-4196

(Pwn2Own) Apple macOS Dock Service DSSetDesktopForDisplayAndSpace Uninitialized Pointer Privilege Escalation Vulnerability

An uninitialized pointer in the macOS Dock service's handling of Mach messages could be exploited by a local attacker with low-privileged code execution to run arbitrary code as the Dock process. The vulnerability was fixed by Apple.

MWR Labs - Alex Plaskett Georgi Geshev Fabian Beterke Follow

Originally disclosed on Zero Day Initiative

Medium 4.4 View original

This vulnerability allows local attackers to execute arbitrary code on vulnerable installations of Apple macOS. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

MWR Labs - Alex Plaskett Georgi Geshev Fabian Beterke, on the Zero Day Initiative

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 Dock service failed to initialize a pointer before using it when processing Mach messages, leading to use of uninitialized memory.

Impact

A local attacker who can already run low-privileged code could execute arbitrary code with the privileges of the Dock process, potentially escalating privileges.

What the attacker needed

Local access to the target system; ability to execute low-privileged code

The fix

Apple issued an update to correct this 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 report has not been written yet. The Original tab links to the source.

This bug is in a part of macOS that manages the Dock (the bar at the bottom of your screen). When the Dock receives certain messages, it uses a pointer (a memory address) without setting it first, which can let an attacker who already has a foothold on the machine run their own code with the Dock's permissions. Apple fixed it in an update.

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 MWR Labs - Alex Plaskett Georgi Geshev Fabian Beterke

View all

1 more disclosed report, best first.

More from Zero Day Initiative

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.