Skip to content

About

CVE-2026-112611: OOB Write in CoreGraphics (PDF ShadingType 5) via /N and /C0 array mismatch. Causes heap overflow (DoS). The Python PoC generates the malicious PDF, while the C-code uses a SIGSEGV handler to map the faulting memory and confirm the write primitive.

Resources

Stars

117 stars

Watchers

4 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVE-2026-112611 & H9 VideoToolbox: From OOB Write to Controlled RCE Primitive

Overview

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.

Vulnerability Details (CVE-2026-112611)

  • Component: CoreGraphics (PDF Parser)
  • Type: Out-of-Bounds (OOB) Write
  • Root Cause: Array mismatch between /N and /C0 parameters in PDF ShadingType 5.
  • Original Impact: Heap overflow (DoS).
  • Current Impact: Controlled write into a user-mapped landing zone.

Exploit Chain Architecture (V239)

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:

  1. Crash Survival & Recovery: Utilizes sigsetjmp/siglongjmp with SA_SIGINFO to catch SIGSEGV/SIGBUS during CoreGraphics execution. This allows the process to survive the corrupted internal state of the PDF parser and continue the exploit chain.
  2. Landing Zone Control (ASLR Defeat for Mapped Memory): The harness uses mach_vm_allocate with VM_FLAGS_FIXED and a multi-candidate brute-force approach to map a 256MB RWX (Read-Write-Execute) landing zone at 0x136000000. This bypasses the OS allocator's randomization and ensures the OOB write lands in our controlled memory.
  3. 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.
  4. Userland ASLR Bypass (H9 VideoToolbox): We successfully resolve the base address and ASLR slide of H9.videoencoder using _dyld_get_image_header.
  5. Direct-Call Primitive (Level-Below): We bypass higher-level API checks and invoke internal H9 functions (like ST_RPS_Retrieve) directly with crafted RPSData structures, achieving a controlled half-word read/write primitive.

Current Status & Roadblock

  • ✅ 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).

Disclaimer

This code is provided for educational and security research purposes only. Do not use against devices you do not own.

About

CVE-2026-112611: OOB Write in CoreGraphics (PDF ShadingType 5) via /N and /C0 array mismatch. Causes heap overflow (DoS). The Python PoC generates the malicious PDF, while the C-code uses a SIGSEGV handler to map the faulting memory and confirm the write primitive.

Resources

Stars

117 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages