JavaScriptCore tracks every opcode's metadata in a table. The offsets were 32-bit. Nobody checked what happens past four billion.

We generated 44.7 million call opcodes in a single function — pure JavaScript, no APIs, no clicks — and opened it in Safari on an iPhone. The renderer hit its resource guard and took the whole app down. On macOS, the same page went further: memory pressure cascaded until the kernel's watchdog fired and the Mac rebooted.

This is the story of CVE-2026-64784, fixed in iOS/macOS 26.6.2 (17 August 2026) — and of the fuzzing mindset that finds this bug class: extreme scale beats malformed input.

Discovery credit: Janggoon Lee (Out of Bounds) and OpenAI Codex Security. This is a reproduction and teaching analysis of the public fix, not an original finding.
From this CVE to the full chain
WebKit Exploitation on ARM64
JavaScriptCore internals, Fuzzilli fuzzing, exploit primitives, and the DarkSword iOS n-day chain on real iPhones — the exact advisory → commit → root-cause → PoC workflow from this post, hands-on with cloud labs.
Pre-register →

The bug

When JSC parses JavaScript, the bytecompiler emits an unlinked code block plus a metadata table: one record per opcode that needs runtime bookkeeping (calls, property loads, and friends). At link time, UnlinkedMetadataTable::finalize() computes where each record lands in the final buffer — accumulating offsets in 32-bit unsigned integers, unchecked.

Feed it enough metadata-bearing opcodes and the running offset wraps past 232. The linker then reads and writes metadata at wrapped offsets: out-of-bounds against the real allocation. Apple: “Processing maliciously crafted web content may lead to an unexpected Safari crash” — an OOB access fixed with improved bounds checking (Bugzilla 317632).

The fix

97df94ead028 (319678@main) does it the right way: CheckedArithmetic for the offset math, finalize() returns bool, and BytecodeGenerator::generate() propagates the failure as an OOM during parsing — JavaScript just sees a RangeError.

The PoC

The upstream regression test doubles as the trigger:

javascriptlet n = 44739242;
let s = 'a();'.repeat(n);      // ~180 MB, ~44.7M call opcodes
let f = new Function('a', s);
f(function() { });             // vulnerable: overflow / fixed: RangeError

Each a(); emits one call opcode with a substantive metadata record. ~45M of them is enough to wrap a 32-bit offset. Our standalone page (poc/index.html) wraps this with staged beacons (building-source → compiling → calling → survived-patched) so a hosting server sees exactly how far the engine got before dying.

Reproduction on iOS

Setup: a vPhone guest on our device-lab (iPhone17,3, iOS 26.1 23B85 — one release line before the fix), the PoC served from the lab host bridge, Safari navigated to it via the guest's serial shell (uiopen --url).

Observed, 2026-11-05:

  • Beacons stop after calling — the engine never returned from f().
  • CrashReporter on the guest: ExcUserFault_MobileSafari-2026-11-05-053730.ips — bug_type 308, EXC_GUARD (GUARD_TYPE_USER) with termination namespace WEBKIT. The renderer exceeded its resource guard; MobileSafari went down with it.
  • The phone itself stayed up. iOS contained the blast radius to the app — precisely the advisory's wording.

iOS 26.1 — Safari takes the hit, the phone survives

PoC page open in Safari on iOS 26.1, served from the lab host 192.168.64.1, showing the 'arming' beacon Safari dropped to a blank black screen with a spinner after the WebContent renderer was terminated

Left: the PoC open in Safari on iOS 26.1 (served from the device-lab host, 192.168.64.1) — the page reaches “arming” before the engine stops responding. Right: with the WebContent renderer killed (EXC_GUARD, WEBKIT namespace), Safari drops to a blank black screen — iOS contained the crash to the app, and the device kept running.

The macOS epilogue

Same page, desktop Safari on macOS 26.6.1: the ~180 MB source plus the bytecode and metadata explosion drove the system into terminal memory pressure. watchdogd stopped checking in; 91 seconds later the kernel fired a watchdog-timeout panic (bug_type 210) and the Mac rebooted. The panic backtrace is all memorystatus, jetsamCoalition, pageout_* — resource exhaustion, not kernel memory corruption.

macOS 26.6.1 — out of memory, then a watchdog reboot

macOS Force Quit dialog: Your system has run out of application memory, with the PoC page loaded behind it

Moments before the panic: macOS warns “Your system has run out of application memory” as the ~180 MB source and the bytecode/metadata explosion exhaust RAM.

macOS Problem Report: Your computer was restarted because of a problem — watchdog timeout panic log

The aftermath: the macOS Problem Report — “Your computer was restarted because of a problem” — carrying the panic line watchdog timeout: no checkins from watchdogd in 91 seconds.

One page. On iOS it kills Safari. On macOS it reboots the machine.

The lesson

This bug class — 32-bit offset arithmetic over attacker-scalable counts — is one of the most reliable patterns in engine fuzzing:

  1. Find a size/offset computation whose scale the attacker controls (statement count, element count, string length).
  2. Push the count past 232 with generated input.
  3. Watch for the wrap: undersized allocation, wrapped seek, wrapped metadata offsets.

Fuzzers find these when they generate extreme scale, not just extreme values. Your corpus should include “millions of a normal thing”, not only “weird bytes”. It's the same family as the ImageIO integer overflows we've covered before — just inside the JS engine's parser instead of an image decoder.

Timeline

  • 2026-08-17 — fixed in iOS/iPadOS 26.6.2, macOS Tahoe 26.6.2 (bulletin 148281)
  • 2026-08-23 — fix commit public on WebKit main
  • 2026-11-05 — reproduced by us on iOS 26.1 (vPhone) and macOS 26.6.1

References

  • Apple advisory: support.apple.com/en-us/148281
  • Fix commit: WebKit/WebKit@97df94ead028
  • WebKit Bugzilla: bug 317632
  • Upstream regression test: JSTests/stress/unlinked-metadata-table-finalize-overflow.js
Learn JavaScriptCore exploitation hands-on
This advisory → Bugzilla → commit → root-cause → PoC → differential-validation workflow is taught hands-on in the Mobile Hacking Lab WebKit Exploitation on ARM64 course — JSC internals, Fuzzilli fuzzing, exploit primitives, and the full DarkSword iOS chain, with cloud labs and real iPhones.
Pre-register for the course →