WebKit JavaScriptCore flaw enabled out-of-bounds write and code execution path
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Apr 11, 2026

Researchers detailed CVE-2022-32792, a Safari/WebKit JavaScriptCore vulnerability in the B3ReduceStrength optimization phase that mishandled integer range analysis for sign-extension operations such as SExt8, SExt16, and SExt32. The flaw, disclosed after Manfred Paul exploited it at Pwn2Own, caused pre-patch code to treat sign extension as effectively preserving the original range, which could wrongly remove overflow and underflow checks from CheckAdd, CheckSub, and CheckMul operations in JIT-compiled code.
Apple fixed the issue in WebKit by adding IntRange::sExt and updating rangeFor so sign extension is modeled correctly. The published walkthrough showed how the bug could be turned from an Int32 underflow into a bounds-check bypass and out-of-bounds array access, then into corruption of adjacent array metadata; by overlapping double and object arrays, the exploit produced addrof and fakeobj primitives that could be extended to arbitrary read/write and eventual code execution in Safari/WebKit.


