Apple CVMServer Patch Introduced Root-Level Sandbox Escape on macOS
Attack Tradecraft · 2 sources · Updated 4mo ago · First seen Jun 16, 2022

Researchers reported that Apple’s fix for CVE-2021-30724 in the root-privileged CVMServer daemon introduced a new flaw, tracked as CVE-2022-26721, that could be reached from the Safari renderer sandbox on macOS. The bug stemmed from uninitialized cleanup metadata left behind when a bounds check aborted processing, creating a path for attacker-controlled munmap operations on arbitrary memory pages inside the service.
Theori showed the issue could be turned into root code execution by shaping heap contents, using a binary-search-style oracle to infer CVMServer memory layout, and overwriting dyld private-memory function pointers. A proof of concept reportedly read /var/db/SystemKey, which can be used to decrypt macOS keychain files, underscoring the impact of the sandbox escape and privilege-escalation chain. Apple addressed the vulnerability in macOS 12.4 by replacing malloc with calloc to ensure the descriptor buffer was zero-initialized.


