This Week in WebKit — October 24 - October 30, 2026
Featured
The payoff is a script-indexed, script-valued write past a 16-byte buffer in GPU memory. The bounds check never went missing; it just measured the wrong thing.
The worst interleaving is a UAF read whose bytes land in an outgoing IPC message. The fix is only safe while one quiet IPC assumption stays true.
The next identical draw fetches vertices past the end of the buffer, deterministically. No race needed, and three sibling caches were patched the same week.
Four ordinary DOM calls and one GC make getRootNode() read a freed host in the renderer. Why last month's fix for this exact bug never reached it is the real story.
The payoff is a reliable read of as-allocated GPU memory into a mappable buffer. Whose memory that was depends on how Metal recycles it.
A JS callback can change a string's width without changing a single character. The copy loop never re-checked, and plain JS controls the timing.
Security fixes
Notable development
-
[Site Isolation] UIProcess validation of the frame a context-menu request names
hardening WebKit UIProcess IPC
-
[JSC] `op_call_varargs_with_spread` new opcode
optimization JSC
-
`GraphicsContext::clipTransformedPath()` new API for transform-agnostic SVG clipping
feature WebCore graphics / GPU process IPC
-
[layout box merge] Layout boxes as private bases of renderers (refactor)
refactor WebCore layout
-
[JSC] BBQ `emitShuffle` v128 stack-move fix
bug JSC Wasm
-
[WebXR] Plane detection support (new feature)
feature WebCore WebXR
-
WebCodecs `VideoDecoderConfig` rotation and flip (new feature)
feature WebCore WebCodecs
-
WebGPU IPC texel-copy layout, adapter options and limits serialization (refactor)
refactor WebKit WebGPU IPC
-
WebGPU IPC bind-group-layout entry serialization (refactor)
refactor WebKit WebGPU IPC
Other security-relevant changes
- [WebGPU Buffer] (UAF)
9d1ae07— Fixes a use-after-free read in WebGPU Buffer::takeSlowIndexValidationPath, where the priorData Vector could be freed while a noCopy blit source was still in flight. The Vector is now retained in a completed handler on the staging command buffer, mirroring the earlier 320118 fix. - [WebGPU Buffer] (validator bypass)
cb21dfb— Fixes a validator bypass in drawIndexedValidated: the max index across the whole writeBuffer payload was treated as validated although only the drawn range was checked, allowing out-of-bounds vertex fetches in the GPU process. Now caps at the smallest vertex buffer count. - [WebGPU draw validation] (validator bypass)
fb81a00— Adds baseVertex to the drawIndexed validation cache key so a cached clamp check from baseVertex=0 can no longer be reused for a negative baseVertex. Before this, that reuse could cause out-of-bounds GPU vertex fetches. - [WebKit WebProcess GPU connection] (UAF)
a1936d4— Fixes a cross-thread UAF of GPUProcessConnection: worker-thread MSE changeType probing could ref() it after main-thread didClose() dropped it, with the final release on a WorkQueue. Adds a locked off-main accessor returning RefPtr and main-run-loop capability annotations. - [WebCore MediaPlayer] (race condition)
c483a02— Fixes a race where attemptSniffAndReload() cleared m_private outside the WebAudio process lock, letting the main thread free the engine while the render thread read it. Also drops stale sniff results from superseded loads that reset a newer load's engine state. - [WebCore IDB server / SQLiteIDBBackingStore] (UAF)
502ae04— Fixes a heap use-after-free in SQLiteIDBBackingStore teardown in the Networking process: m_cursors was destroyed before m_transactions, so ~SQLiteIDBTransaction wrote to freed memory via unregisterCursor(). Destroys m_transactions first in closeSQLiteDB(). - [JSC PropertyInlineCache] (UAF)
afbd43f— Fixes a UAF where stale FTL IC watchpoints outlived the symbol, prototype, and structure cells they reference after CodeBlock::jettison(). GC weak reconciliation now validates AccessCases and their identifier cells. - [WebGPU WGSL IOValidator / GlobalSorting] (validator bypass)
9589788— Fixes WGSL scoping so a local is not visible in its own initializer; a duplicate @binding could then pass validation and undersize the argument buffer, which the commit says allows forging a shader device pointer. The duplicate-binding ASSERT is now a release-build error. - [WebKit ApplePay (macOS UIProcess)] (UAF)
c388678— Fixes a UIProcess use-after-free in WebPaymentCoordinatorProxy (macOS Apple Pay) introduced by 285111@main: the window-close observer captured a RefPtr, creating a retain cycle, and a stale active coordinator could be freed under didReachFinalState(). Now captures weakly and protects the coordinator across that path; adds a fake payment sheet test harness. - [JSC DFG/FTL DirectTailCall] (UAF)
410ce8d— Fixes a JIT code UAF: a DFG/FTL DirectTailCall to a host function left the caller's CodeBlock unrooted, so a GC during the call could free its code before the host function returned. Tail calls to host functions now use the DirectCallLinkInfo path. - [WebCore form controls renderer] (UAF)
15e7145— Fixes a use-after-free in RenderTreeBuilder::FormControls::updatePseudoElement when recreating option::checkmark. A cached next-sibling renderer could be freed during destroy, then passed to attach(). Originally landed on Safari branch 316606.402@safari-7625-branch. - [WebCore JSAbortSignalOwner] (UAF)
4b552cc— Stops AbortSignal GC marking from calling a mutating WeakListHashSet query on m_sourceSignals; parallel marker threads could free ListHashSet nodes a peer was reading and write into already-freed nodes. Adds a non-mutating variant for the wrapper owner. - [WebCore style RuleSet / PageRuleCollector] (UAF)
1b03d89— Fixes a use-after-free in @page rule matching. RuleSet::m_pageRules stored raw StyleRulePage pointers with no owner, so removing a style sheet during a beforeprint handler could leave dangling pointers in a live resolver. Rule storage now holds owning Ref entries. - [WebGPU Buffer / executeBundles] (OOB read)
45270f2— Fixes an out-of-bounds GPU memory read in the GPU Process: reused indirect indexed draws in WebGPU executeBundles skipped index-buffer revalidation, so a writeBuffer() after encode could change index contents unchecked. Adds generation-keyed revalidation at commit time. - [WebCore SVG SVGAnimatedString] (UAF)
8efa54f— Fixes a use-after-free where a Trusted Types default createScriptURL callback could remove the owning iframe and force GC before trustedTypeCompliantString read the CSP from the freed Document. Holds a Ref on the script execution context at the SVGAnimatedString::setBaseVal call site; completes an earlier partial fix that missed this caller. - [WebKit UIProcess ProvisionalPageProxy] (hardening)
b7bb204— Hardens ProvisionalPageProxy::didStartProvisionalLoadForFrame by validating the WebContent-supplied URL against the Navigation's current request or the targeted back/forward item URL. Previously the UI process trusted this IPC URL when deciding on a process swap, so a forged URL could drive an incorrect swap decision. - [WebKit GPU process image decoder (AVF)] (TOCTOU)
5ec5cc9— Copies image data received from the content process into a new SharedBuffer instead of wrapping its shared memory in place via unsafeBuffer(), closing a double-fetch where renderer-writable memory could change while the GPU-process AVF decoder parsed it. - [WebCore CSSRule] (UAF)
34f6384— Fixes a GC-thread use-after-free in root(CSSRule*), where the marker thread walked parent links without synchronization while the main thread could free a parent rule mid-walk. Adds a per-rule opaque root lock and clears nested wrappers' dangling parent pointers in ~CSSStyleRule. - [JSC DFG safeToExecute] (OOB read)
0939b4d— Moves HasIndexedProperty into the array-only group in DFG safeToExecute so LICM stops hoisting it as unconditionally safe. Hoisted HasIndexedProperty Array::Int32 code could index an ArrayStorage butterfly out of bounds, per the test comments. - [WebCore DOM CollectionIndexCache] (UAF)
ebc83b8— Fixes a use-after-free: LabelsNodeList's WeakPtr cache nulls when its - [JSC DFG allocation sinking] (validator bypass)
6543b0c— Walks the full directCaller chain in DFG allocation sinking's shouldDemote() guard, so allocations in plain inlined frames nested under closure-call or varargs frames get demoted when the inline stack is invalid. Previously only the immediate InlineCallFrame was checked. - [WebCore DOM ContainerNodeAlgorithms] (lifetime fix)
3317c4c— Keeps a shadow host and its ancestors alive when JS holds only a node inside the host's shadow tree, so the host is no longer collected after removal. Described as a GC correctness fix and hardening for b/321943. Adds a stale-shadow-including-root crash regression test. - [NetworkProcess ResourceLoadStatisticsStore] (SQL injection)
d0daba1— Binds RegistrableDomain strings via bindText() in ResourceLoadStatisticsStore UPDATE/INSERT SQL instead of concatenating. A compromised WebContent process could rewrite WHERE clauses in observations.db. buildIntegerList() (formerly buildList()) now static_asserts arithmetic types. - [WebKit UIProcess WKUSDPreviewView] (race condition)
53ab83c— Adds a lock around WKUSDPreviewView::data, which is read on the main thread and the QuickLook background queue, closing a race. Also adds MESSAGE_CHECKs so didFinishLoadingDataForCustomContentProvider is accepted once per main-frame custom content provider load, blocking a compromised WebContent process from reassigning data mid-read, and adds a null guard on _customContentView. - [WebKit GPU media RemoteImageDecoderAVF] (UAF)
00e36a2— Fixes a heap use-after-free where clearFrameBufferCache() on the main thread mutated RemoteImageDecoderAVF::m_frameImages while the image decoder work queue read it in createFrameImageAtIndex(). Adds a lock around synchronous access to the ivar and a regression test for animated MP4 destroy-decoded-data crashes. - [libwebrtc RTP AV1 packetizer] (OOB read)
39d8ce5— Fixes a signed integer overflow in the AV1 packetizer's OBU fragmentation loop condition that allowed a heap out-of-bounds read. parseObus now rejects OBUs larger than INT_MAX - 5. Reachable via an oversized encoded frame passed through RTCRtpScriptTransform. - [WebGPU ExternalTexture] (lifetime fix)
ffbbd0d— Fixes ExternalTexture::undestroy() dropping open-encoder tracking on never-destroyed textures, which disarmed the BindGroup::updateExternalTextures() guard. Per the commit message, undestroy() now invalidates those encoders via makeSubmitInvalidClearingEncoders() instead. - [WebCore CoreLocationGeolocationProvider] (UAF)
e67f3f9— Fixes a UAF in the CoreLocation geolocation provider where a re-entrant authorization callback could destroy the Client still dereferenced by WebCLLocationManager. Client is now ref-counted and weakly held, and the delegate is detached synchronously in -stop. - [WebKit UIProcess WebPageProxy] (missing IPC validation)
0161a77— Adds MESSAGE_CHECK via isAssociatedWithPage() to ~20 UIProcess handlers taking FrameInfoData, so a compromised WebContent process can no longer make -[WKFrameInfo webView] return another tab's view. Previously, prompts and dialogs could be attributed to the wrong tab. - [WebKit UIProcess WebPageProxy] (validator bypass)
3ac7237— Fixes a UIProcess IPC validator bypass where DidStartProvisionalLoadForFrame with a null navigationID skipped URL validation, letting a compromised WebContent process spoof the URL bar. The patch now checks the URL against the pending API URL, committed URL, or baseURL (same protocol for non-http(s), same-origin otherwise) and adds a baseURL field to PageLoadState.