(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
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.
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.