Exploit of coreaudiod type confusion gains code execution on macOS
The authors claim they can achieve arbitrary code execution in the coreaudiod daemon on macOS by exploiting CVE-2024-54529.
Security & privacy Google Project Zero 30 Jan 2026 Attack Real-world evidence
Published as “Breaking the Sound Barrier, Part II: Exploiting CVE-2024-54529”
Why it matters
Demonstrates a practical privilege-escalation path on recent macOS versions using a type-confusion bug.
Summary
The author builds on a previously disclosed type-confusion bug (CVE-2024-54529) in the coreaudiod daemon. By using a custom object dumper and property-list heap spraying, they locate an uninitialized 6-byte gap in an ngne object that can be leveraged to control a pointer chain. After crashing and restarting coreaudiod, the sprayed data is reallocated into the ngne object, allowing a fake vtable to be placed and a ROP chain to be executed, giving full control of the daemon on macOS Intel. The exploit is demonstrated on macOS Sequoia 15.0.1 and works reliably under those conditions.
What they found 2
- The exploit achieves arbitrary code execution in coreaudiod.
“With everything in place, the exploit successfully executes the ROP chain, giving me control of the coreaudiod process.”
- The smallest HALS_Object in macOS Sequoia is 0x70 bytes, preventing out-of-bounds read primitives.
“In the latest macOS version available during my research (macOS Sequoia 15.0.1), the smallest object type, stap , was 0x70 bytes.”
Caveats 5
- The exploit only works on Intel macOS; Apple Silicon would require signed pointers.
- It relies on a crash-restart loop and specific malloc zone behavior, which may not be reliable in all environments.
- This exploit was written for macOS running on Intel CPUs. On a system with Apple Silicon, exploitation using the same technique would require the ability to correctly sign pointers that make up the pointer chain and ROP gadgets.
- The ngne objects I could create were 776 bytes in size, which placed them squarely in the malloc_tiny memory region. This was a critical problem because, as a security mitigation, macOS’s memory allocator securely zeroes out any memory in the malloc_tiny zone upon allocation.
- Larger ngne objects-over 1100 bytes-could get created and would be placed in the malloc_small region, which is not zeroed on allocation. The catch? I couldn’t find any user-accessible API to trigger their creation.
What’s new here 4
- First end-to-end exploit for CVE-2024-54529 on macOS.
- Discovery and use of an uninitialized memory gap in the ngne object as a primitive.
- Heap-spray via persisted property-list files that survive daemon restarts.
- Custom object-dumper tool for inspecting CoreAudio heap layouts.