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— WebGPU Buffer::takeSlowIndexValidationPath의 use-after-free read가 수정되었습니다. 기존에는 noCopy blit source가 아직 처리 중인 상태에서 priorData Vector가 해제될 수 있었습니다. 이제 staging command buffer의 completed handler가 이 Vector를 유지합니다. 앞서 적용된 320118 fix와 동일한 방식입니다. - [WebGPU Buffer] (validator bypass)
cb21dfb— drawIndexedValidated의 validator bypass가 수정되었습니다. 실제로 검사한 범위는 draw 대상 구간뿐이었는데, writeBuffer payload 전체의 max index가 검증된 값으로 취급되었습니다. 그 결과 GPU process에서 out-of-bounds vertex fetch가 가능했습니다. 패치 이후에는 가장 작은 vertex buffer count를 상한으로 적용합니다. - [WebGPU draw validation] (validator bypass)
fb81a00— drawIndexed validation cache key에 baseVertex가 추가되었습니다. 이전에는 baseVertex=0에서 캐시된 clamp check 결과가 음수 baseVertex에도 재사용될 수 있었습니다. 이 재사용은 out-of-bounds GPU vertex fetch로 이어질 가능성이 있었습니다. - [WebKit WebProcess GPU connection] (UAF)
a1936d4— GPUProcessConnection의 cross-thread UAF가 수정되었습니다. main thread의 didClose()가 참조를 해제한 뒤에도 worker thread의 MSE changeType probing이 ref()를 호출할 수 있었습니다. 이때 마지막 release는 WorkQueue에서 발생했습니다. 패치에서는 RefPtr을 반환하는 lock 기반 off-main accessor와 main-run-loop capability annotation이 추가되었습니다. - [WebCore MediaPlayer] (race condition)
c483a02— attemptSniffAndReload()가 WebAudio process lock 밖에서 m_private를 비우던 race가 수정되었습니다. 이 경우 render thread가 engine을 읽는 도중 main thread가 이를 해제할 수 있었습니다. 한편 대체된 이전 load의 stale sniff 결과도 폐기하도록 변경되었습니다. 기존에는 이 결과가 더 새로운 load의 engine 상태를 초기화했습니다. - [WebCore IDB server / SQLiteIDBBackingStore] (UAF)
502ae04— Networking process에서 SQLiteIDBBackingStore가 정리될 때 발생하던 heap use-after-free가 수정되었습니다. m_cursors가 m_transactions보다 먼저 파괴되었기 때문에, ~SQLiteIDBTransaction이 unregisterCursor()를 통해 해제된 메모리에 쓰기를 수행했습니다. 이제 closeSQLiteDB()에서 m_transactions를 먼저 파괴합니다. - [JSC PropertyInlineCache] (UAF)
afbd43f— CodeBlock::jettison() 이후 stale FTL IC watchpoint가 참조 대상인 symbol, prototype, structure cell보다 오래 살아남던 UAF가 수정되었습니다. 이제 GC weak reconciliation 단계에서 AccessCase와 그 identifier cell을 함께 검증합니다. - [WebGPU WGSL IOValidator / GlobalSorting] (validator bypass)
9589788— WGSL scoping이 수정되어, local 변수가 자신의 initializer 안에서 보이지 않게 되었습니다. 기존에는 이 문제로 중복된 @binding이 validation을 통과하고 argument buffer 크기가 작게 잡힐 수 있었습니다. commit에 따르면 이를 통해 shader device pointer를 위조할 수 있습니다. 또한 duplicate-binding ASSERT가 release build에서도 error로 처리되도록 변경되었습니다. - [WebKit ApplePay (macOS UIProcess)] (UAF)
c388678— 285111@main에서 유입된 WebPaymentCoordinatorProxy(macOS Apple Pay)의 UIProcess use-after-free가 수정되었습니다. window-close observer가 RefPtr을 capture하면서 retain cycle이 생겼습니다. 그 결과 stale 상태의 active coordinator가 didReachFinalState() 도중 해제될 수 있었습니다. 이제 weak capture를 사용하고, 해당 경로에서 coordinator를 보호합니다. 아울러 fake payment sheet test harness가 추가되었습니다. - [JSC DFG/FTL DirectTailCall] (UAF)
410ce8d— JIT code UAF가 수정되었습니다. host function으로의 DFG/FTL DirectTailCall이 caller의 CodeBlock을 root하지 않은 상태로 남겨두었습니다. 이 때문에 호출 도중 GC가 실행되면 host function이 반환되기 전에 해당 code가 해제될 수 있었습니다. 이제 host function으로의 tail call은 DirectCallLinkInfo 경로를 사용합니다. - [WebCore form controls renderer] (UAF)
15e7145— option::checkmark를 다시 생성할 때 RenderTreeBuilder::FormControls::updatePseudoElement에서 발생하던 use-after-free가 수정되었습니다. 캐시해 둔 next-sibling renderer가 destroy 과정에서 해제된 뒤 attach()로 전달될 수 있었습니다. 원래는 Safari branch 316606.402@safari-7625-branch에 먼저 반영된 수정입니다. - [WebCore JSAbortSignalOwner] (UAF)
4b552cc— AbortSignal의 GC marking이 m_sourceSignals에 대해 상태를 변경하는 WeakListHashSet query를 호출하지 않도록 변경되었습니다. 기존에는 parallel marker thread 하나가 ListHashSet node를 해제하는 동안 다른 thread가 그 node를 읽을 수 있었습니다. 이미 해제된 node에 쓰기가 발생할 가능성도 있었습니다. wrapper owner를 위해 상태를 변경하지 않는 variant가 추가되었습니다. - [WebCore style RuleSet / PageRuleCollector] (UAF)
1b03d89— @page rule matching의 use-after-free가 수정되었습니다. RuleSet::m_pageRules는 owner 없이 raw StyleRulePage pointer를 저장하고 있었습니다. 그래서 beforeprint handler에서 style sheet를 제거하면 살아 있는 resolver 안에 dangling pointer가 남을 수 있었습니다. 이제 rule storage가 소유권을 가진 Ref entry를 보관합니다. - [WebGPU Buffer / executeBundles] (OOB read)
45270f2— GPU Process의 out-of-bounds GPU memory read가 수정되었습니다. WebGPU executeBundles에서 재사용되는 indirect indexed draw는 index buffer 재검증을 건너뛰었습니다. 이 때문에 encode 이후 writeBuffer()로 index 내용을 검사 없이 바꿀 수 있었습니다. 패치에서는 commit 시점에 generation 기반 재검증이 추가되었습니다. - [WebCore SVG SVGAnimatedString] (UAF)
8efa54f— Trusted Types의 기본 createScriptURL callback이 소유 iframe을 제거하고 GC를 강제할 수 있던 use-after-free가 수정되었습니다. 이 경우 trustedTypeCompliantString은 이미 해제된 Document에서 CSP를 읽게 됩니다. 이제 SVGAnimatedString::setBaseVal 호출 지점에서 script execution context에 대한 Ref를 유지합니다. 이전에 적용된 부분 수정이 이 호출 지점을 놓쳤고, 이번 commit으로 보완되었습니다. - [WebKit UIProcess ProvisionalPageProxy] (hardening)
b7bb204— ProvisionalPageProxy::didStartProvisionalLoadForFrame이 강화되었습니다. 이제 WebContent가 전달한 URL을 Navigation의 현재 request 또는 대상 back/forward item URL과 비교해 검증합니다. 이전에는 UI process가 process swap 여부를 판단할 때 이 IPC URL을 그대로 신뢰했습니다. 따라서 위조된 URL로 잘못된 swap 결정을 유도할 수 있었습니다. - [WebKit GPU process image decoder (AVF)] (TOCTOU)
5ec5cc9— content process에서 받은 image data를 새 SharedBuffer로 복사하도록 변경되었습니다. 기존에는 unsafeBuffer()로 shared memory를 그대로 감싸 사용했습니다. 이 구조에서는 GPU process의 AVF decoder가 파싱하는 도중 renderer가 쓸 수 있는 메모리의 내용이 바뀔 수 있었습니다. 이번 변경으로 해당 double-fetch가 제거되었습니다. - [WebCore CSSRule] (UAF)
34f6384— root(CSSRule*)의 GC-thread use-after-free가 수정되었습니다. marker thread는 동기화 없이 parent 링크를 따라갔습니다. 그 사이 main thread가 탐색 도중 parent rule을 해제할 수 있었습니다. 패치에서는 rule 단위의 opaque root lock이 추가되었습니다. 또한 ~CSSStyleRule에서 nested wrapper의 dangling parent pointer를 정리합니다. - [JSC DFG safeToExecute] (OOB read)
0939b4d— DFG safeToExecute에서 HasIndexedProperty가 array-only 그룹으로 이동되었습니다. 이에 따라 LICM이 더 이상 이 node를 무조건 안전한 것으로 보고 hoist하지 않습니다. test 주석에 따르면, hoist된 HasIndexedProperty Array::Int32 code가 ArrayStorage butterfly를 out of bounds로 인덱싱할 수 있었습니다. - [WebCore DOM CollectionIndexCache] (UAF)
ebc83b8— use-after-free가 수정되었습니다. LabelsNodeList의 WeakPtr cache는 해당 - [JSC DFG allocation sinking] (validator bypass)
6543b0c— DFG allocation sinking의 shouldDemote() guard가 directCaller chain 전체를 탐색하도록 변경되었습니다. 이제 closure-call이나 varargs frame 아래에 중첩된 일반 inlined frame의 allocation도, inline stack이 유효하지 않으면 demote됩니다. 이전에는 바로 위의 InlineCallFrame만 검사했습니다. - [WebCore DOM ContainerNodeAlgorithms] (lifetime fix)
3317c4c— JS가 host의 shadow tree 내부 node만 보유한 경우에도 shadow host와 그 ancestor가 살아 있도록 변경되었습니다. 이로써 제거된 host가 더 이상 GC로 수집되지 않습니다. commit에서는 GC correctness fix이자 b/321943에 대한 hardening으로 설명합니다. stale shadow-including root crash에 대한 regression test가 추가되었습니다. - [NetworkProcess ResourceLoadStatisticsStore] (SQL injection)
d0daba1— ResourceLoadStatisticsStore의 UPDATE/INSERT SQL에서 RegistrableDomain 문자열을 이어 붙이는 대신 bindText()로 바인딩하도록 변경되었습니다. 기존에는 compromised WebContent process가 observations.db의 WHERE 절을 다시 쓸 수 있었습니다. 또한 buildIntegerList()(이전 이름 buildList())에 arithmetic type에 대한 static_assert가 추가되었습니다. - [WebKit UIProcess WKUSDPreviewView] (race condition)
53ab83c— WKUSDPreviewView::data에 lock이 추가되었습니다. 이 값은 main thread와 QuickLook background queue 양쪽에서 읽히므로 race가 존재했습니다. 한편 MESSAGE_CHECK도 추가되어, didFinishLoadingDataForCustomContentProvider는 main-frame custom content provider load마다 한 번만 수락됩니다. 이로써 compromised WebContent process가 읽기 도중 data를 재할당하는 경로가 차단되었습니다. _customContentView에 대한 null guard도 추가되었습니다. - [WebKit GPU media RemoteImageDecoderAVF] (UAF)
00e36a2— heap use-after-free가 수정되었습니다. main thread의 clearFrameBufferCache()가 RemoteImageDecoderAVF::m_frameImages를 변경하는 동안, image decoder work queue는 createFrameImageAtIndex()에서 이를 읽고 있었습니다. 해당 ivar에 대한 synchronous 접근에 lock이 추가되었습니다. 아울러 animated MP4의 destroy-decoded-data crash에 대한 regression test도 추가되었습니다. - [libwebrtc RTP AV1 packetizer] (OOB read)
39d8ce5— AV1 packetizer의 OBU fragmentation loop 조건에서 발생하던 signed integer overflow가 수정되었습니다. 이 overflow는 heap out-of-bounds read로 이어졌습니다. 이제 parseObus가 INT_MAX - 5보다 큰 OBU를 거부합니다. RTCRtpScriptTransform을 거치는 과도하게 큰 encoded frame으로 도달 가능한 경로였습니다. - [WebGPU ExternalTexture] (lifetime fix)
ffbbd0d— 한 번도 destroy되지 않은 texture에서 ExternalTexture::undestroy()가 open encoder tracking을 버리던 문제가 수정되었습니다. 이 때문에 BindGroup::updateExternalTextures() guard가 무력화되었습니다. commit 메시지에 따르면, 이제 undestroy()는 makeSubmitInvalidClearingEncoders()로 해당 encoder를 무효화합니다. - [WebCore CoreLocationGeolocationProvider] (UAF)
e67f3f9— CoreLocation geolocation provider의 UAF가 수정되었습니다. 재진입한 authorization callback이 Client를 파괴할 수 있었는데, WebCLLocationManager는 여전히 이를 역참조하고 있었습니다. 이제 Client는 ref-counted 객체가 되었고 weak reference로 보관됩니다. 또한 -stop에서 delegate를 동기적으로 분리합니다. - [WebKit UIProcess WebPageProxy] (missing IPC validation)
0161a77— FrameInfoData를 받는 약 20개의 UIProcess handler에 isAssociatedWithPage() 기반 MESSAGE_CHECK가 추가되었습니다. 이에 따라 compromised WebContent process가 -[WKFrameInfo webView]로 다른 탭의 view를 반환하게 만들 수 없습니다. 이전에는 prompt와 dialog가 엉뚱한 탭에 귀속될 수 있었습니다. - [WebKit UIProcess WebPageProxy] (validator bypass)
3ac7237— UIProcess IPC validator bypass가 수정되었습니다. navigationID가 null인 DidStartProvisionalLoadForFrame은 URL 검증을 건너뛰었습니다. 그 결과 compromised WebContent process가 URL bar를 spoofing할 수 있었습니다. 패치 이후에는 URL을 pending API URL, committed URL, baseURL 중 하나와 비교합니다. 이때 non-http(s)는 같은 protocol인지, 그 외에는 same-origin인지를 확인합니다. PageLoadState에는 baseURL 필드가 추가되었습니다.