Skip to content
Memory corruption Write-up Advanced

An iOS zero-click radio proximity exploit odyssey

A buffer overflow in the iOS kernel's AWDL (Apple Wireless Direct Link) protocol parser allowed an attacker within radio range to trigger kernel memory corruption and potentially run arbitrary code with no user interaction. The author demonstrated that a single memory corruption vulnerability could be exploited to gain complete control over an iPhone 11 Pro.

Ian Beer Follow

Published on googleprojectzero.blogspot.com

Quoting @halvarflake's Offensivecon keynote from February 2020:

Ian Beer (@i41nbeer), on googleprojectzero.blogspot.com

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

How it worked

Root cause

Likely a missing or incorrect bounds check on a length field in a TLV (Type-Length-Value) structure, leading to an out-of-bounds memmove in IO80211AWDLPeer::parseAwdlSyncTreeTLV.

What the attacker needed

Attacker within radio range; victim device with AWDL enabled

The fix

The vulnerability was fixed as CVE-2020-3843 on January 28th 2020 in iOS 13.1.1/MacOS 10.15.3.

How it was found

  1. Enable AirDrop on two MacOS laptops to make them join an AWDL network.
  2. Use a kernel debugger to edit the SyncTree TLV sent by one laptop to make it very large.
  3. Observe the other laptop kernel panic due to an out-of-bounds memmove.

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

AWDL is a wireless protocol that Apple devices use to talk directly to each other, for example for AirDrop. The code that processes incoming AWDL messages had a bug where it copied too much data into a fixed-size buffer, which can crash the device or let an attacker run their own code. The attacker only needs to be physically nearby, not on the same Wi-Fi network.

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 Apple

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.