
Crash-only reproducer for CVE-2026-112689 in Apple's H.264 hardware decoder
Crash-only reproducer for a kernel heap out-of-bounds write in Apple's hardware-accelerated H.264 decoder. The vulnerability is in the Memory Management Control Operation (MMCO) handling of the Decoded Picture Buffer (DPB).
This repository contains no memory disclosure, privilege escalation, or exploit code.
The H.264 specification defines MMCO operation 6 ("assign long-term frame
index to current picture"), which writes to DPB[long_term_frame_idx].
The kernel video decoder allocates the DPB array with
max_num_ref_frames entries (typically 16) but does not validate that
long_term_frame_idx < max_num_ref_frames before indexing.
An attacker-controlled H.264 bitstream can set long_term_frame_idx to any
value 0–255 via MMCO operation 6 in the slice header's
dec_ref_pic_marking() syntax. Combined with MMCO operation 4 (which raises
max_long_term_frame_idx to permit the index), this results in a
kernel heap out-of-bounds write past the end of the DPB array.
Slice header
└─ dec_ref_pic_marking()
├─ MMCO op 4: max_long_term_frame_idx_plus1 = lt_idx + 1
└─ MMCO op 6: long_term_frame_idx = lt_idx ← OOB when lt_idx ≥ DPB size
└─ kernel DPB[lt_idx] = current_frame ← heap OOB write
| Platform | Affected | Fixed |
|---|---|---|
| iOS | 26.0 – 26.3 | 26.4 |
| iPadOS | 26.0 – 26.3 | 26.4 |
| macOS | Sequoia 26.0 – 26.3 | 26.4 |
The app performs two tests:
Guard (in-bounds only): Decodes an IDR frame followed by P-frames
with MMCO long_term_frame_idx values of 0, 5, and 15 — all within the
16-entry DPB. This confirms the decoder accepts well-formed MMCO without
errors.
Trigger (OOB write): Decodes an IDR frame followed by P-frames with
long_term_frame_idx values of 0, 15, 16, 20, 31, 64, 128, 255.
Values ≥ 16 exceed the DPB array bounds. On unpatched kernels, all
indices decode successfully — the kernel writes past the DPB without
any bounds check, corrupting adjacent heap memory.
The trigger button is gated behind a successful guard run.
CVE-2026-112689-poc/
├── MMCODPBProbe.xcodeproj/
│ └── project.pbxproj
├── Sources/
│ └── MMCODPBProbe.m ← bitstream construction + test logic + app UI
├── README.md
├── .gitattributes
└── .gitignore
MMCODPBProbe.xcodeproj in Xcode.Alternatively, compile from the command line:
xcrun -sdk iphoneos clang -framework UIKit -framework CoreFoundation \
-arch arm64 -mios-version-min=17.0 -fobjc-arc \
Sources/MMCODPBProbe.m -o MMCODPBProbe
Independent reproduction for authorized security research. This is not an Apple release. If referencing this work, please credit the original vulnerability reporters.