This repository contains an advanced exploit chain targeting iOS (tested on iOS 26.4.0 / newjail). What started as a simple Out-of-Bounds (OOB) write in CoreGraphics has been evolved into a highly reliable, controlled memory corruption primitive. By combining a PDF ShadingType 5 vulnerability with direct-call primitives in H9.videoencoder, we demonstrate a path toward Userland RCE.
- Component: CoreGraphics (PDF Parser)
- Type: Out-of-Bounds (OOB) Write
- Root Cause: Array mismatch between
/Nand/C0parameters in PDF ShadingType 5. - Original Impact: Heap overflow (DoS).
- Current Impact: Controlled write into a user-mapped landing zone.
We have moved far beyond a simple denial-of-service. The Python PoC generates the malicious PDF, while the C-code harness orchestrates a complex memory layout strategy:
- Crash Survival & Recovery:
Utilizes
sigsetjmp/siglongjmpwithSA_SIGINFOto catchSIGSEGV/SIGBUSduring CoreGraphics execution. This allows the process to survive the corrupted internal state of the PDF parser and continue the exploit chain. - Landing Zone Control (ASLR Defeat for Mapped Memory):
The harness uses
mach_vm_allocatewithVM_FLAGS_FIXEDand a multi-candidate brute-force approach to map a 256MB RWX (Read-Write-Execute) landing zone at0x136000000. This bypasses the OS allocator's randomization and ensures the OOB write lands in our controlled memory. - Deterministic Crash-in-Zone:
Through COORD calibration, we reliably force the PDF parser to fault inside our 256MB spray. The fault addresses (e.g.,
0x136b3c5538) are deterministic and repeatable. - Userland ASLR Bypass (H9 VideoToolbox):
We successfully resolve the base address and ASLR slide of
H9.videoencoderusing_dyld_get_image_header. - Direct-Call Primitive (Level-Below):
We bypass higher-level API checks and invoke internal
H9functions (likeST_RPS_Retrieve) directly with craftedRPSDatastructures, achieving a controlled half-word read/write primitive.
- ✅ CVE-2026-112611 is successfully triggered.
- ✅ 256MB RWX Landing Zone is mapped exactly at
0x136000000. - ✅ Crash-in-Zone is achieved (fault lands inside the spray).
- ✅ Process Survival (no more immediate
SIGKILL).
This code is provided for educational and security research purposes only. Do not use against devices you do not own.