Safari WebKit Bugs Enabled Arbitrary Read/Write via JIT and Type Confusion
Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen May 24, 2021

Researchers detailed two Safari WebKit exploitation paths that turned renderer memory corruption into reliable arbitrary read/write primitives on macOS and iOS. Google Project Zero showed how CVE-2020-9802, a JavaScriptCore JIT flaw, could be exploited starting from addrof and fakeobj primitives, then bypass WebKit mitigations including StructureID randomization, the Gigacage, and PACCage. The write-up demonstrated leaking a valid StructureID with a fake JSArray and then abusing TypedArray handling in the DFG JIT to escape the Gigacage and gain fast, stable arbitrary memory access.
Theori separately analyzed a Safari AudioWorklet type confusion introduced in Safari 14.1, where WebKit failed to verify that a returned JavaScript object was a JSAudioWorkletProcessor. That missing type check allowed attacker-controlled objects to be confused and used to corrupt JSArray butterfly pointers, again yielding addrof, fakeobj, and arbitrary read/write capabilities. The exploit reportedly worked on iOS 14.6 and macOS 11.4 even after the source patch was public, highlighting patch-gap risk and reinforcing concerns that existing WebKit hardening measures could still be bypassed in practice.


