Apple macOS libATSServer Heap-based Buffer Overflow Privilege Escalation Vulnerability
A heap-based buffer overflow exists in the FODBWriteToAnnex method of Apple macOS libATSServer because user-supplied data length is not validated before copying into a heap buffer. A local attacker who can already run low-privileged code could use this to execute code in the context of the current user.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges 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 FODBWriteToAnnex method copies user-supplied data into a heap buffer without checking its length first.
Impact
A local attacker with low-privileged code execution could escalate to running code in the context of the current user; the text does not claim full system compromise.
What the attacker needed
Local low-privileged code execution
The fix
Apple issued an update to correct 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 report has not been written yet. The Original tab links to the source.
A buffer overflow happens when a program copies more data into a fixed-size memory area than it can hold, so the extra data spills into neighbouring memory. Here a macOS system library does this with data it is given, and a program already running on the machine could abuse the spill to run its own code as the logged-in user. The attacker needs local access first, so this is not something reachable from the internet.
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.