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

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.

lilang wu moony Li Follow

Originally disclosed on Zero Day Initiative

Medium 4.4 View original

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.

lilang wu moony Li of Trend Micro, 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 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.

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.