Uninitialized Use in Dawn (CVE-2026-14408)
Dawn marks a WebGPU destination buffer as initialized while encoding a copyTextureToBuffer command, even if that command buffer is never submitted. A page can then read back stale GPU memory from previously destroyed resources through a mapped read buffer.
- Fix shipped in 46 days
Security Bug
Important: Please do not change the component of this bug manually.
Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md
Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs
Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp
NOTE: Security bugs are normally made public once a fix has been widely deployed.
VULNERABILITY DETAILS
third_party/dawn/src/dawn/native/BlitTextureToBuffer.cpp marks a WebGPU
destination buffer initialized while encoding a copyTextureToBuffer() command
that uses Dawn's T2B compute-blit path:
// Skip clearing the buffer if this is full size copy.
dst.buffer->SetInitialized(fullSizeCopy || dst.buffer->IsInitialized());
This is a security issue because WebGPU command buffers do not have to be
submitted. A web page can call encoder.finish() and intentionally drop the
returned GPUCommandBuffer. In that case the compute blit never executes and
never writes the destination buffer, but Dawn's persistent buffer metadata still
says the buffer is initialized.
A later submitted copyBufferToBuffer() from the same destination buffer then
skips Dawn's lazy zero-initialization path and exposes stale GPU allocation
contents to JavaScript through a MAP_READ buffer.
The broken invariant is:
BufferBase::mIsDataInitialized must become true only after the buffer contents
were actually initialized by submitted GPU work, CPU upload, map-at-creation
initialization, or allocator-level clearing.
fullSizeCopy only proves that the encoded T2B operation would overwrite the
whole buffer if it executed. It does not prove that the command buffer will ever
be submitted.
This is the same bug class as the timestamp resolveQuerySet no-submit issue
fixed in Dawn by b073946efb / Chromium backport 36a8c01, where an analogous
encode-time SetInitialized(true) call was removed because encoded work may
never execute.
DEMONSTRATED IMPACT
The demonstrated impact is stale GPU allocation disclosure within one Dawn
GPUDevice allocator scope when the use_blit_for_t2b path is reachable.
Script with access to a GPUDevice can recover bytes from WebGPU resources
that were previously destroyed or dropped within that same GPUDevice, if it
can allocate a matching buffer size class and trigger the no-submit T2B
compute-blit path.
This can expose application-level GPU data such as image-processing intermediates, ML/inference tensors, render targets, texture readback buffers, or other transient WebGPU resources after the application has dropped or destroyed the original resource.
A practical attacking scenario
A same-origin third-party script (e.g. imported <script src=xxx> tags, which can be compromised analytics, ad, or CDN dependency) — that
activates after the destroy step has full access to that GPUDevice but no API path to the
destroyed weights or activations. This bug provides the path: allocate a matching-size
buffer, no-submit T2B, read back the destroyed allocation slot.
VERSION
Chrome Version: 148.0.7778.167 Stable
Operating System: Android 15, Pixel 6, ARM Mali Valhall GPU, Vulkan backend
Result:
Positive with --enable-dawn-features=use_blit_for_t2b
Negative without the Dawn T2B feature on this device
--enable-unsafe-webgpu not required
Chrome Version: 148.0.7778.168 Stable
Operating System: Windows 10 Version 22H2, Build 19045.6466,
NVIDIA GeForce RTX 3070 Ti, driver 32.0.15.7602
Result:
No flags: negative on this host. chrome://gpu shows the default usable WebGPU
adapter is D3D12, and the D3D11 WebGPU adapter is blocklisted.
With --enable-dawn-features=use_blit_for_t2b: positive stale GPU buffer
disclosure.
Chrome Version: 149.0.7827.14 Beta
Operating System: Windows 10 Version 22H2, Build 19045.6466,
NVIDIA GeForce RTX 3070 Ti, driver 32.0.15.7602
Result:
No flags: negative on this host for the same D3D12-default / D3D11-blocklisted
reason.
With --enable-dawn-features=use_blit_for_t2b: positive stale GPU buffer
disclosure.
REPRODUCTION CASE
Android PoC verification steps
Use these steps for Android Chrome. The tested Pixel 6 path required the
non-rooted Chrome command-line mechanism plus use_blit_for_t2b.
- In Chrome, open:
chrome://flags/#enable-command-line-on-non-rooted-devices
- Set it to
Enabled. - Relaunch Chrome.
- With USB debugging enabled, install the command line. From this folder on the computer, either push the provided template:
adb push chrome-command-line.txt /data/local/tmp/chrome-command-line
Then restart Chrome. 5. Set up the http server.
python3 -m http.server 18099 --bind 127.0.0.1
adb reverse tcp:18099 tcp:18099
adb shell am force-stop com.android.chrome
adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main \
-d http://127.0.0.1:18099/poc.html
Windows PoC verification steps
The server setup procedure is the same as Android. The command line to start Chrome with certain command lines can be:
$Chrome = "$env:LOCALAPPDATA\Google\Chrome\Application\chrome.exe"
if (!(Test-Path $Chrome)) { $Chrome = "$env:ProgramFiles\Google\Chrome\Application\chrome.exe" }
& $Chrome `
--user-data-dir="$env:TEMP\webgpu-t2b-repro-stable" `
--no-first-run `
--no-default-browser-check `
--enable-dawn-features=use_blit_for_t2b `
http://127.0.0.1:18099/poc.html
The poc.html is attached below.
The PoC performs the following sequence:
1. Victim: Create one GPUDevice.
2. Victim: Create a prior WebGPU resource containing a per-trial positional nonce.
3. Victim: Destroy/drop that prior resource.
4. Victim: Submit an empty command buffer and await queue.onSubmittedWorkDone() so
Dawn can recycle the prior allocation.
5. Attacker: Allocate an attacker buffer of the same size class.
6. Attacker: Encode a full-buffer copyTextureToBuffer() into the attacker buffer.
7. Attacker: Call encoder.finish() but do not submit that command buffer.
8. Attacker: Submit a separate copyBufferToBuffer(attacker -> MAP_READ buffer).
9. Attacker: Map the readback buffer and check for current or historical nonce bytes.
The critical bug is step 7: copyTextureToBuffer() marks the attacker buffer
initialized during encoding, but the command buffer is never submitted and the
attacker buffer is never actually written by the T2B blit.
How to Read poc.html
The page highlights the no-submit attack rows and keeps the full JSON under "Raw CHROVUS_LINE output".
Important fields:
didSubmit=false
This is the vulnerable no-submit path. The T2B command buffer was finished
and dropped instead of being submitted.
nonZero / allZero
A safe no-submit read should return all zeroes because the destination buffer
should still require Dawn lazy initialization. nonZero > 0 in a no-submit
attack trial means stale bytes were exposed.
linearMatches
Number of texels matching the current trial pattern
[x_low_byte, y_low_byte, nonce_byte_0, nonce_byte_1] at the expected row-major
position. This is the strongest current-trial proof.
nonceOnly
Number of texels containing the current nonce in bytes 2 and 3 but not at the
expected row-major position. This still proves recovery of current-trial data,
and usually reflects driver tiling/swizzling.
historicalNonceHits
Matches for nonces from earlier trials. Hits in T3/T4 are useful because those
trials do not create a current primer allocation before the no-submit read.
Trial meanings:
T1_L2_positional_4M
Primes and destroys a 4MB texture, then performs a no-submit T2B read into a
same-size attacker buffer. Current nonce hits are a positive leak.
T2_L2_positional_4M_spray
Same size class as T1, with allocator spray. Current or historical nonce hits
show stale allocation reuse.
T3_no_prime_null_4M
No current primer is created. Historical nonce hits show residual bytes from
an earlier trial, not from the current trial's own write.
T4_no_prime_null_4M_spray
Same as T3, with allocator spray to exercise reuse behavior.
T5_L2_positional_256K
Repeats the current nonce leak test in a smaller 256KB size class.
The expected positive pattern is:
Any no-submit attack row with:
didSubmit=false
allZero=0
linearMatches + nonceOnly > 0
or:
didSubmit=false
allZero=0
historicalNonceHits[*].hits > 0
T3 and T4 are especially useful for explaining impact because they
demonstrate historical residual data without a current same-trial primer.
CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: Chrovus
Context
Dawn is the WebGPU implementation used by Chrome, and it sits between JavaScript's WebGPU API and the platform graphics backends (Vulkan, D3D12, Metal and so on). One of the operations it has to support is copyTextureToBuffer(), which copies texel data from a texture into a buffer. On some backends Dawn implements this copy with a compute shader rather than a dedicated hardware blit, a path controlled by the use_blit_for_t2b feature.
WebGPU buffers are supposed to be zero-initialised before JavaScript can observe them. Dawn does not necessarily clear every buffer eagerly; instead it tracks whether a buffer's contents have been initialised and performs lazy zero-initialisation when a buffer that is still uninitialised is read. The flag that records this is BufferBase::mIsDataInitialized.
The report is a Chrome VRP issue against Dawn, credited to Chrovus, rated medium severity with a 1000 USD reward, and disclosed on 2026-06-30 under the title "Uninitialized Use in Dawn (CVE-2026-14408)".
Setup
The researcher tested three Chrome builds:
| Chrome version | Channel | Operating system | GPU | Result |
|---|---|---|---|---|
148.0.7778.167 |
Stable | Android 15, Pixel 6 | ARM Mali Valhall, Vulkan backend | Positive with --enable-dawn-features=use_blit_for_t2b, negative without it |
148.0.7778.168 |
Stable | Windows 10 22H2, build 19045.6466 |
NVIDIA GeForce RTX 3070 Ti, driver 32.0.15.7602 |
Negative by default, positive with the flag |
149.0.7827.14 |
Beta | Windows 10 22H2, build 19045.6466 |
NVIDIA GeForce RTX 3070 Ti, driver 32.0.15.7602 |
Negative by default, positive with the flag |
On the Android device the result was recorded as:
Positive with --enable-dawn-features=use_blit_for_t2b
Negative without the Dawn T2B feature on this device
--enable-unsafe-webgpu not required
On both Windows builds the default result was negative for the same reason: chrome://gpu shows the default usable WebGPU adapter is D3D12, and the D3D11 WebGPU adapter is blocklisted. With the flag, both builds showed positive stale GPU buffer disclosure.
The precondition for the vulnerable path is that the use_blit_for_t2b path is reachable; in these tests that meant enabling it explicitly with --enable-dawn-features=use_blit_for_t2b. The Android test also required the non-rooted Chrome command-line mechanism, described below.
Finding it
The researcher looked at third_party/dawn/src/dawn/native/BlitTextureToBuffer.cpp, where the T2B compute-blit path marks the destination buffer as initialised while the copyTextureToBuffer() command is being encoded:
// Skip clearing the buffer if this is full size copy.
dst.buffer->SetInitialized(fullSizeCopy || dst.buffer->IsInitialized());
The problem is that encoding a WebGPU command buffer does not mean it will ever run. A page can call encoder.finish() and simply drop the returned GPUCommandBuffer. When that happens the compute blit never executes and never writes the destination buffer, yet Dawn's persistent buffer metadata now claims the buffer is initialised.
A later, actually submitted copyBufferToBuffer() from that same destination buffer then skips Dawn's lazy zero-initialisation path, and stale contents of the GPU allocation become visible to JavaScript through a MAP_READ buffer.
The invariant the code breaks is stated in the report as:
BufferBase::mIsDataInitialized must become true only after the buffer contents
were actually initialized by submitted GPU work, CPU upload, map-at-creation
initialization, or allocator-level clearing.
fullSizeCopy only proves that the encoded T2B operation would overwrite the whole buffer if it executed. It says nothing about whether the command buffer will be submitted.
The researcher identifies this as the same bug class as an earlier Dawn issue: the timestamp resolveQuerySet no-submit bug, fixed in Dawn by b073946efb and backported to Chromium as 36a8c01, where an analogous encode-time SetInitialized(true) call was removed because encoded work may never execute.
Exploitation
The demonstrated impact is stale GPU allocation disclosure within one Dawn GPUDevice allocator scope, when the use_blit_for_t2b path is reachable. A script with access to a GPUDevice can recover bytes from WebGPU resources that were previously destroyed or dropped within that same GPUDevice, provided it can allocate a matching buffer size class and trigger the no-submit T2B compute-blit path.
Step 1: Prepare Android Chrome for a command line
The tested Pixel 6 path required the non-rooted Chrome command-line mechanism plus use_blit_for_t2b.
- In Chrome, open:
chrome://flags/#enable-command-line-on-non-rooted-devices
- Set it to
Enabled. - Relaunch Chrome.
- With USB debugging enabled, install the command line. From this folder on the computer, either push the provided template:
adb push chrome-command-line.txt /data/local/tmp/chrome-command-line
Then restart Chrome.
Step 2: Serve the PoC
python3 -m http.server 18099 --bind [redacted]
adb reverse tcp:18099 tcp:18099
adb shell am force-stop com.android.chrome
adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main \
-d http://[redacted]:18099/poc.html
This starts a local HTTP server on port 18099, reverses the port over ADB so the device can reach it on [redacted], force-stops Chrome and launches it directly at the PoC page.
Step 3: Launch Chrome on Windows with the flag
The server setup is the same as on Android. The command line used to start Chrome was:
$Chrome = "$env:LOCALAPPDATA\Google\Chrome\Application\chrome.exe"
if (!(Test-Path $Chrome)) { $Chrome = "$env:ProgramFiles\Google\Chrome\Application\chrome.exe" }
& $Chrome `
--user-data-dir="$env:TEMP\webgpu-t2b-repro-stable" `
--no-first-run `
--no-default-browser-check `
--enable-dawn-features=use_blit_for_t2b `
http://[redacted]:18099/poc.html
This resolves the Chrome executable from either the per-user or machine-wide install location, uses a throwaway profile directory, skips first-run and default-browser prompts, enables the T2B blit path and opens the PoC.
Step 4: The PoC sequence
The attached poc.html performs this sequence:
1. Victim: Create one GPUDevice.
2. Victim: Create a prior WebGPU resource containing a per-trial positional nonce.
3. Victim: Destroy/drop that prior resource.
4. Victim: Submit an empty command buffer and await queue.onSubmittedWorkDone() so
Dawn can recycle the prior allocation.
5. Attacker: Allocate an attacker buffer of the same size class.
6. Attacker: Encode a full-buffer copyTextureToBuffer() into the attacker buffer.
7. Attacker: Call encoder.finish() but do not submit that command buffer.
8. Attacker: Submit a separate copyBufferToBuffer(attacker -> MAP_READ buffer).
9. Attacker: Map the readback buffer and check for current or historical nonce bytes.
The critical step is step 7: copyTextureToBuffer() marks the attacker buffer initialised during encoding, but the command buffer is never submitted, so the T2B blit never writes the attacker buffer. Step 8 then reads the buffer back without Dawn zeroing it first.
Step 5: Reading the PoC output
The page highlights the no-submit attack rows and keeps the full JSON under "Raw CHROVUS_LINE output". The important fields are:
didSubmit=false
This is the vulnerable no-submit path. The T2B command buffer was finished
and dropped instead of being submitted.
nonZero / allZero
A safe no-submit read should return all zeroes because the destination buffer
should still require Dawn lazy initialization. nonZero > 0 in a no-submit
attack trial means stale bytes were exposed.
linearMatches
Number of texels matching the current trial pattern
[x_low_byte, y_low_byte, nonce_byte_0, nonce_byte_1] at the expected row-major
position. This is the strongest current-trial proof.
nonceOnly
Number of texels containing the current nonce in bytes 2 and 3 but not at the
expected row-major position. This still proves recovery of current-trial data,
and usually reflects driver tiling/swizzling.
historicalNonceHits
Matches for nonces from earlier trials. Hits in T3/T4 are useful because those
trials do not create a current primer allocation before the no-submit read.
The trials are:
T1_L2_positional_4M
Primes and destroys a 4MB texture, then performs a no-submit T2B read into a
same-size attacker buffer. Current nonce hits are a positive leak.
T2_L2_positional_4M_spray
Same size class as T1, with allocator spray. Current or historical nonce hits
show stale allocation reuse.
T3_no_prime_null_4M
No current primer is created. Historical nonce hits show residual bytes from
an earlier trial, not from the current trial's own write.
T4_no_prime_null_4M_spray
Same as T3, with allocator spray to exercise reuse behavior.
T5_L2_positional_256K
Repeats the current nonce leak test in a smaller 256KB size class.
The expected positive pattern is:
Any no-submit attack row with:
didSubmit=false
allZero=0
linearMatches + nonceOnly > 0
or:
didSubmit=false
allZero=0
historicalNonceHits[*].hits > 0
T3 and T4 are especially useful for explaining impact, because they demonstrate historical residual data without a current same-trial primer.
Root cause
The mistake is an encode-time state change. BlitTextureToBuffer.cpp calls SetInitialized on the destination buffer while the copyTextureToBuffer() command is being recorded, using fullSizeCopy as the justification. Encoding is not execution: a finished command buffer can be dropped, and in that case the blit never runs and the buffer is never written. The metadata nevertheless records the buffer as initialised, so the lazy zero-initialisation that should protect a later read is skipped.
The existing defence here is Dawn's lazy initialisation of buffers, and it was defeated precisely because the flag it relies on was set by code that had not yet done any GPU work. The report points to the earlier resolveQuerySet fix as precedent that encode-time SetInitialized(true) is unsafe for the same reason.
Impact
Within a single GPUDevice allocator scope, and only when the use_blit_for_t2b path is reachable, a script can recover bytes from WebGPU resources that were previously destroyed or dropped in that same device, if it can allocate a matching buffer size class and trigger the no-submit T2B compute-blit path.
This can expose application-level GPU data such as image-processing intermediates, ML/inference tensors, render targets, texture readback buffers, or other transient WebGPU resources after the application has dropped or destroyed the original resource.
The report's practical attacking scenario is a same-origin third-party script, for example an imported <script src=xxx> tag such as a compromised analytics, ad or CDN dependency, that activates after the destroy step. Such a script has full access to that GPUDevice but no API path to the destroyed weights or activations. The bug provides the path: allocate a matching-size buffer, perform the no-submit T2B, and read back the destroyed allocation slot.
The scope is bounded: the disclosure is within one GPUDevice allocator scope, and every positive result reported was obtained with --enable-dawn-features=use_blit_for_t2b enabled. On the Windows hosts the default configuration was negative because the usable adapter is D3D12 and the D3D11 adapter is blocklisted.
Fix
The report does not describe the patch that was applied. What it establishes is the invariant that any fix has to preserve: BufferBase::mIsDataInitialized must only become true after the contents were actually initialised by submitted GPU work, CPU upload, map-at-creation initialisation or allocator-level clearing. The precedent it cites, the resolveQuerySet no-submit issue fixed by b073946efb and Chromium backport 36a8c01, was resolved by removing the encode-time SetInitialized(true) call, because encoded work may never execute.
Variants to test
- Other encode-time initialisation flags. Search Dawn and other WebGPU implementations for
SetInitializedcalls made while recording commands rather than after submission. A positive result is a buffer that reads back non-zero after a finished-but-dropped command buffer that would have written it. - Other copy paths that can be dropped. The same no-submit pattern applies to any operation that would fully overwrite a resource: full-buffer
copyBufferToBuffer, texture-to-texture copies, clears. A positive result is stale bytes in aMAP_READbuffer after the writing command buffer was never submitted. - Different size classes. The report exercises 4MB and 256KB. Try other allocation size classes and allocator spray patterns; a positive result is
allZero=0withlinearMatches + nonceOnly > 0or historical nonce hits. - Historical residual data without a current primer. The T3 and T4 style trials, where no current primer is created, show whether bytes from earlier work survive in the allocator. A positive result is
historicalNonceHits[*].hits > 0on adidSubmit=falserow. - Other backends and devices. The report's positives were on a Vulkan Mali device and on the two Windows builds with the flag enabled. Test other adapters where the blit path is reachable, and check
chrome://gputo see which adapter is actually in use before drawing conclusions from a negative result.
What happened, in plain words
Chrome can run 3D graphics and heavy calculations on your graphics card through a feature called WebGPU. A web page asks the browser to do this work, and the browser passes the request down to a piece of software called Dawn, which talks to the actual graphics hardware. Dawn is the middleman.
One of the jobs Dawn does is copying image data (a texture) into a general-purpose storage area (a buffer). On some graphics cards Dawn does this copy by running a small program on the GPU, a compute shader, instead of using a dedicated hardware copy. That route is switched on by a setting called use_blit_for_t2b.
WebGPU has a safety promise: before a page can read a buffer, the buffer must be filled with zeroes, so the page never sees leftover data from something else. Dawn does not always wipe every buffer straight away; it keeps a note saying whether a buffer has been filled yet, and wipes it just in time if a page tries to read one that has not been. The note is a flag called BufferBase::mIsDataInitialized.
The bug is that Dawn sets that note to "filled" at the moment it prepares the copy, not at the moment the copy actually runs. A page can prepare a copy and then throw it away without ever running it. The buffer is never written, but Dawn still believes it is full of good data. When the page later reads that buffer, Dawn skips the zero-fill and hands back whatever was left in that chunk of graphics memory from before. That is the leak.
This was reported through Google's Chrome bug bounty programme (Chrome VRP) by a researcher credited as Chrovus. It was rated medium severity, paid a 1000 USD reward, and disclosed on 2026-06-30 under the title "Uninitialized Use in Dawn (CVE-2026-14408)".
Some words you will need
Before the details, a few ideas that come up constantly.
- An API (application programming interface) is a fixed set of instructions one piece of software offers to another. Think of a restaurant menu: you can order only what is on it, and the kitchen decides how each dish is made. WebGPU is the menu a web page uses to ask the browser for graphics work.
- A buffer is a block of memory holding raw bytes. Think of a plastic storage box: it has a size, and whatever was in it before you put it away may still be there when you open it again.
- A texture is image data laid out for the GPU, usually a grid of tiny coloured squares called texels (the GPU equivalent of pixels).
- A compute shader is a small program that runs on the graphics card to do maths over lots of data at once, rather than drawing a picture.
- Encoding a command means writing down an instruction for the GPU without running it yet, like writing a to-do list. Submitting means handing that list to the GPU so it actually gets done.
- Zero-initialisation means filling memory with zeroes before anyone reads it, so no old data leaks out.
- Stale data is old data left behind in memory after the thing that owned it was destroyed.
- A nonce here is just a made-up number stamped into data so the researcher can recognise it later if it comes back out. It is a marker, not a security token.
- Same-origin means a script was served from the same website as the page, so the browser trusts it with the page's resources.
Context
Dawn is the WebGPU implementation used by Chrome. It sits between the JavaScript WebGPU API that a page calls and the platform graphics backends (Vulkan, D3D12, Metal and so on). One operation it must support is copyTextureToBuffer(), which copies texel data from a texture into a buffer. On some backends Dawn implements this copy with a compute shader rather than a dedicated hardware blit, a path controlled by the use_blit_for_t2b feature.
WebGPU buffers are supposed to be zero-initialised before JavaScript can observe them. Dawn does not necessarily clear every buffer eagerly; instead it tracks whether a buffer's contents have been initialised and performs lazy zero-initialisation when a buffer that is still uninitialised is read. The flag that records this is BufferBase::mIsDataInitialized.
The report is a Chrome VRP issue against Dawn, credited to Chrovus, rated medium severity with a 1000 USD reward, and disclosed on 2026-06-30 under the title "Uninitialized Use in Dawn (CVE-2026-14408)".
Setup
The researcher tested three Chrome builds:
| Chrome version | Channel | Operating system | GPU | Result |
|---|---|---|---|---|
148.0.7778.167 |
Stable | Android 15, Pixel 6 | ARM Mali Valhall, Vulkan backend | Positive with --enable-dawn-features=use_blit_for_t2b, negative without it |
148.0.7778.168 |
Stable | Windows 10 22H2, build 19045.6466 |
NVIDIA GeForce RTX 3070 Ti, driver 32.0.15.7602 |
Negative by default, positive with the flag |
149.0.7827.14 |
Beta | Windows 10 22H2, build 19045.6466 |
NVIDIA GeForce RTX 3070 Ti, driver 32.0.15.7602 |
Negative by default, positive with the flag |
A few notes on that table. "Stable" and "Beta" are Chrome's release channels: Stable is the normal everyday browser, Beta is the slightly-ahead test version. The GPU column names the graphics chip and the driver software version. "Positive" means the leak was observed; "negative" means it was not.
On the Android device the result was recorded as:
Positive with --enable-dawn-features=use_blit_for_t2b
Negative without the Dawn T2B feature on this device
--enable-unsafe-webgpu not required
Line by line: the first line says the leak appears when the T2B blit feature is switched on. The second says it does not appear when that feature is off on this device. The third says a separate Chrome switch, --enable-unsafe-webgpu, was not needed to reproduce it.
On both Windows builds the default result was negative for the same reason: chrome://gpu shows the default usable WebGPU adapter is D3D12, and the D3D11 WebGPU adapter is blocklisted. With the flag, both builds showed positive stale GPU buffer disclosure.
chrome://gpu is a built-in Chrome page that lists which graphics backends the browser is using. An adapter is the specific graphics interface Chrome picked. D3D12 and D3D11 are two Microsoft graphics interfaces; here the D3D11 one was blocklisted (disabled by Chrome), so the vulnerable path was not reachable by default.
The precondition for the vulnerable path is that the use_blit_for_t2b path is reachable; in these tests that meant enabling it explicitly with --enable-dawn-features=use_blit_for_t2b. The Android test also required the non-rooted Chrome command-line mechanism, described below.
Finding it
The researcher looked at third_party/dawn/src/dawn/native/BlitTextureToBuffer.cpp, where the T2B compute-blit path marks the destination buffer as initialised while the copyTextureToBuffer() command is being encoded:
// Skip clearing the buffer if this is full size copy.
dst.buffer->SetInitialized(fullSizeCopy || dst.buffer->IsInitialized());
Line by line: the comment says the code intends to skip clearing the buffer when the copy covers the whole buffer. The single statement calls SetInitialized on the destination buffer (dst.buffer), which flips the "this buffer is filled" note to true. It does so if either the copy is a full-size copy (fullSizeCopy) or the buffer was already marked initialised. The intent is an optimisation: if the copy will overwrite everything anyway, no need to wipe first. The flaw is when this runs: during encoding, before anything has actually been copied.
The problem is that encoding a WebGPU command buffer does not mean it will ever run. A page can call encoder.finish() and simply drop the returned GPUCommandBuffer. When that happens the compute blit never executes and never writes the destination buffer, yet Dawn's persistent buffer metadata now claims the buffer is initialised.
A later, actually submitted copyBufferToBuffer() from that same destination buffer then skips Dawn's lazy zero-initialisation path, and stale contents of the GPU allocation become visible to JavaScript through a MAP_READ buffer.
MAP_READ is a buffer usage flag meaning "JavaScript is allowed to read this buffer's bytes". copyBufferToBuffer() is a straight memory copy from one buffer to another.
The invariant the code breaks is stated in the report as:
BufferBase::mIsDataInitialized must become true only after the buffer contents
were actually initialized by submitted GPU work, CPU upload, map-at-creation
initialization, or allocator-level clearing.
An invariant is a rule that must always hold for the system to be safe. This one says the "filled" note may only be set after the data really is filled, by one of four legitimate routes: work the GPU actually ran, data uploaded from the CPU, initialisation done when the buffer is created for mapping, or the memory allocator wiping it. Setting the note during encoding is none of those.
fullSizeCopy only proves that the encoded T2B operation would overwrite the whole buffer if it executed. It says nothing about whether the command buffer will be submitted.
The researcher identifies this as the same bug class as an earlier Dawn issue: the timestamp resolveQuerySet no-submit bug, fixed in Dawn by b073946efb and backported to Chromium as 36a8c01, where an analogous encode-time SetInitialized(true) call was removed because encoded work may never execute.
A bug class is a family of bugs that share the same underlying mistake. Here the family is "trusting prepared work as if it had already run". resolveQuerySet is a WebGPU operation that writes timing data into a buffer; the earlier bug made the same mistake with it. A backport is taking a fix made in one codebase and applying it to another.
Exploitation
The demonstrated impact is stale GPU allocation disclosure within one Dawn GPUDevice allocator scope, when the use_blit_for_t2b path is reachable. A script with access to a GPUDevice can recover bytes from WebGPU resources that were previously destroyed or dropped within that same GPUDevice, provided it can allocate a matching buffer size class and trigger the no-submit T2B compute-blit path.
A GPUDevice is the page's handle to one logical graphics device. An allocator scope is the pool of memory that device hands out; memory freed inside it can be handed out again inside it. A size class is a bucket of allocations of similar size; to get the same memory back, you ask for a buffer of the same bucket.
Step 1: Prepare Android Chrome for a command line
The tested Pixel 6 path required the non-rooted Chrome command-line mechanism plus use_blit_for_t2b.
- In Chrome, open:
chrome://flags/#enable-command-line-on-non-rooted-devices
- Set it to
Enabled. - Relaunch Chrome.
- With USB debugging enabled, install the command line. From this folder on the computer, either push the provided template:
adb push chrome-command-line.txt /data/local/tmp/chrome-command-line
Then restart Chrome.
Why these steps: Chrome normally ignores command-line switches on a phone unless you unlock a hidden setting. chrome://flags is a page of experimental switches. The flag #enable-command-line-on-non-rooted-devices lets a phone that is not rooted read a command-line file. adb is the Android Debug Bridge, a tool on your computer that talks to the phone over USB. The push command copies the file chrome-command-line.txt from your computer to the phone path /data/local/tmp/chrome-command-line, which is where Chrome looks for it. Restarting Chrome makes it read the file.
Step 2: Serve the PoC
python3 -m http.server 18099 --bind [redacted]
adb reverse tcp:18099 tcp:18099
adb shell am force-stop com.android.chrome
adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main \
-d http://[redacted]:18099/poc.html
Line by line: the first line starts a tiny web server on your computer, listening on port 18099 and only on the local address [redacted]. The second line tells adb to forward port 18099 on the phone back to port 18099 on the computer, so the phone can reach the server as if it were local. The third line force-stops Chrome on the phone. The fourth line launches Chrome directly at the proof-of-concept page poc.html served from that local address. A PoC (proof of concept) is a small program that demonstrates a bug.
Step 3: Launch Chrome on Windows with the flag
The server setup is the same as on Android. The command line used to start Chrome was:
$Chrome = "$env:LOCALAPPDATA\Google\Chrome\Application\chrome.exe"
if (!(Test-Path $Chrome)) { $Chrome = "$env:ProgramFiles\Google\Chrome\Application\chrome.exe" }
& $Chrome `
--user-data-dir="$env:TEMP\webgpu-t2b-repro-stable" `
--no-first-run `
--no-default-browser-check `
--enable-dawn-features=use_blit_for_t2b `
http://[redacted]:18099/poc.html
Line by line: the first line guesses Chrome's location in the per-user install folder. The second line checks whether that file exists; if not, it falls back to the machine-wide install folder. The & line runs Chrome with several switches. --user-data-dir points Chrome at a throwaway profile folder in the temp directory, so the test does not touch your normal profile. --no-first-run and --no-default-browser-check skip the usual first-launch prompts. --enable-dawn-features=use_blit_for_t2b turns on the vulnerable copy path. The final argument is the PoC page to open.
Step 4: The PoC sequence
The attached poc.html performs this sequence:
1. Victim: Create one GPUDevice.
2. Victim: Create a prior WebGPU resource containing a per-trial positional nonce.
3. Victim: Destroy/drop that prior resource.
4. Victim: Submit an empty command buffer and await queue.onSubmittedWorkDone() so
Dawn can recycle the prior allocation.
5. Attacker: Allocate an attacker buffer of the same size class.
6. Attacker: Encode a full-buffer copyTextureToBuffer() into the attacker buffer.
7. Attacker: Call encoder.finish() but do not submit that command buffer.
8. Attacker: Submit a separate copyBufferToBuffer(attacker -> MAP_READ buffer).
9. Attacker: Map the readback buffer and check for current or historical nonce bytes.
Why each step: steps 1 to 4 play the part of a normal application that creates some data, then throws it away. The empty submit and queue.onSubmittedWorkDone() wait for the GPU to finish so Dawn is free to recycle the freed memory. Step 5 asks for a new buffer of the same size, hoping to land on the same memory. Step 6 prepares the copy that would fill it. Step 7 is the trick: it finishes the command buffer and drops it, so the copy never runs. Step 8 copies the attacker buffer into a readable buffer, and because Dawn wrongly believes the attacker buffer is filled, it does not wipe it first. Step 9 reads the bytes and looks for the marker numbers.
The critical step is step 7: copyTextureToBuffer() marks the attacker buffer initialised during encoding, but the command buffer is never submitted, so the T2B blit never writes the attacker buffer. Step 8 then reads the buffer back without Dawn zeroing it first.
Step 5: Reading the PoC output
The page highlights the no-submit attack rows and keeps the full JSON under "Raw CHROVUS_LINE output". The important fields are:
didSubmit=false
This is the vulnerable no-submit path. The T2B command buffer was finished
and dropped instead of being submitted.
nonZero / allZero
A safe no-submit read should return all zeroes because the destination buffer
should still require Dawn lazy initialization. nonZero > 0 in a no-submit
attack trial means stale bytes were exposed.
linearMatches
Number of texels matching the current trial pattern
[x_low_byte, y_low_byte, nonce_byte_0, nonce_byte_1] at the expected row-major
position. This is the strongest current-trial proof.
nonceOnly
Number of texels containing the current nonce in bytes 2 and 3 but not at the
expected row-major position. This still proves recovery of current-trial data,
and usually reflects driver tiling/swizzling.
historicalNonceHits
Matches for nonces from earlier trials. Hits in T3/T4 are useful because those
trials do not create a current primer allocation before the no-submit read.
Line by line: didSubmit=false marks a row where the copy was prepared but never run, which is the vulnerable case. nonZero and allZero count how many bytes were non-zero or all zero; a safe result would be all zeroes, so any non-zero count means old data leaked. linearMatches counts texels that match the exact expected pattern at the exact expected place, the strongest evidence. nonceOnly counts texels that contain the marker number but in a different position, which still proves the data came from the trial, and usually happens because the driver rearranges memory (tiling and swizzling are ways GPUs lay out data for speed). historicalNonceHits counts matches for markers from earlier trials, showing old data survived.
The trials are:
T1_L2_positional_4M
Primes and destroys a 4MB texture, then performs a no-submit T2B read into a
same-size attacker buffer. Current nonce hits are a positive leak.
T2_L2_positional_4M_spray
Same size class as T1, with allocator spray. Current or historical nonce hits
show stale allocation reuse.
T3_no_prime_null_4M
No current primer is created. Historical nonce hits show residual bytes from
an earlier trial, not from the current trial's own write.
T4_no_prime_null_4M_spray
Same as T3, with allocator spray to exercise reuse behavior.
T5_L2_positional_256K
Repeats the current nonce leak test in a smaller 256KB size class.
A primer here is the resource the victim creates and destroys to leave data behind. Allocator spray means allocating many buffers to increase the chance of landing on the freed memory. 4MB and 256KB are two different size classes.
The expected positive pattern is:
Any no-submit attack row with:
didSubmit=false
allZero=0
linearMatches + nonceOnly > 0
or:
didSubmit=false
allZero=0
historicalNonceHits[*].hits > 0
In plain words: a row where the copy was not submitted, the readback was not all zeroes, and either the current marker or an old marker was found. Either condition is proof of a leak.
T3 and T4 are especially useful for explaining impact, because they demonstrate historical residual data without a current same-trial primer.
Root cause
The mistake is an encode-time state change. BlitTextureToBuffer.cpp calls SetInitialized on the destination buffer while the copyTextureToBuffer() command is being recorded, using fullSizeCopy as the justification. Encoding is not execution: a finished command buffer can be dropped, and in that case the blit never runs and the buffer is never written. The metadata nevertheless records the buffer as initialised, so the lazy zero-initialisation that should protect a later read is skipped.
The existing defence here is Dawn's lazy initialisation of buffers, and it was defeated precisely because the flag it relies on was set by code that had not yet done any GPU work. The report points to the earlier resolveQuerySet fix as precedent that encode-time SetInitialized(true) is unsafe for the same reason.
Impact
Within a single GPUDevice allocator scope, and only when the use_blit_for_t2b path is reachable, a script can recover bytes from WebGPU resources that were previously destroyed or dropped in that same device, if it can allocate a matching buffer size class and trigger the no-submit T2B compute-blit path.
This can expose application-level GPU data such as image-processing intermediates, ML/inference tensors, render targets, texture readback buffers, or other transient WebGPU resources after the application has dropped or destroyed the original resource.
A tensor is a multi-dimensional array of numbers, the basic data unit in machine learning. A render target is the image a GPU draws into before it is shown. A readback buffer is memory used to copy GPU results back so the CPU or JavaScript can read them.
The report's practical attacking scenario is a same-origin third-party script, for example an imported <script src=xxx> tag such as a compromised analytics, ad or CDN dependency, that activates after the destroy step. Such a script has full access to that GPUDevice but no API path to the destroyed weights or activations. The bug provides the path: allocate a matching-size buffer, perform the no-submit T2B, and read back the destroyed allocation slot.
In everyday terms: a page loads a script from a third party it trusts, such as an analytics or advertising library. If that script is compromised, it runs with the page's permissions. It cannot ask the page for data the page has already thrown away, because the API offers no such request. But it can ask for a new buffer of the right size and use this bug to read whatever the old data left behind. Weights and activations are terms from machine learning: the learned numbers in a model and the intermediate values computed during a run.
The scope is bounded: the disclosure is within one GPUDevice allocator scope, and every positive result reported was obtained with --enable-dawn-features=use_blit_for_t2b enabled. On the Windows hosts the default configuration was negative because the usable adapter is D3D12 and the D3D11 adapter is blocklisted.
Fix
The report does not describe the patch that was applied. What it establishes is the invariant that any fix has to preserve: BufferBase::mIsDataInitialized must only become true after the contents were actually initialised by submitted GPU work, CPU upload, map-at-creation initialisation or allocator-level clearing. The precedent it cites, the resolveQuerySet no-submit issue fixed by b073946efb and Chromium backport 36a8c01, was resolved by removing the encode-time SetInitialized(true) call, because encoded work may never execute.
Variants to test
- Other encode-time initialisation flags. Search Dawn and other WebGPU implementations for
SetInitializedcalls made while recording commands rather than after submission. A positive result is a buffer that reads back non-zero after a finished-but-dropped command buffer that would have written it. - Other copy paths that can be dropped. The same no-submit pattern applies to any operation that would fully overwrite a resource: full-buffer
copyBufferToBuffer, texture-to-texture copies, clears. A positive result is stale bytes in aMAP_READbuffer after the writing command buffer was never submitted. - Different size classes. The report exercises 4MB and 256KB. Try other allocation size classes and allocator spray patterns; a positive result is
allZero=0withlinearMatches + nonceOnly > 0or historical nonce hits. - Historical residual data without a current primer. The T3 and T4 style trials, where no current primer is created, show whether bytes from earlier work survive in the allocator. A positive result is
historicalNonceHits[*].hits > 0on adidSubmit=falserow. - Other backends and devices. The report's positives were on a Vulkan Mali device and on the two Windows builds with the flag enabled. Test other adapters where the blit path is reachable, and check
chrome://gputo see which adapter is actually in use before drawing conclusions from a negative result.
Glossary
- API: a fixed set of instructions one piece of software offers to another.
- Adapter: the specific graphics interface Chrome has chosen to use for WebGPU.
- Allocator: the part of the system that hands out and recycles blocks of memory.
- Allocator scope: the pool of memory belonging to one device, inside which freed memory can be reused.
- Allocator spray: allocating many buffers to increase the chance of landing on a particular freed block.
- Backport: applying a fix made in one codebase to another.
- Blit: a copy of image data from one place to another.
- Buffer: a block of memory holding raw bytes.
- Bug class: a family of bugs that share the same underlying mistake.
- Chrome VRP: Google's Chrome Vulnerability Reward Program, which pays for security bug reports.
- Command buffer: a recorded list of GPU instructions that can be submitted to run.
- Compute shader: a small program that runs on the GPU to do maths over lots of data.
- Compute blit: a copy performed by running a compute shader rather than dedicated hardware.
- Dawn: Chrome's implementation of WebGPU, sitting between the page and the graphics hardware.
- D3D11 / D3D12: Microsoft graphics interfaces used on Windows.
- Encoding: writing down a GPU instruction without running it yet.
- GPUDevice: the page's handle to one logical graphics device.
- Invariant: a rule that must always hold for the system to be safe.
- Lazy zero-initialisation: wiping memory with zeroes only at the moment it is about to be read, rather than in advance.
- MAP_READ: a buffer usage flag meaning JavaScript is allowed to read the buffer's bytes.
- Nonce: a made-up marker number stamped into data so it can be recognised later.
- PoC: proof of concept, a small program that demonstrates a bug.
- Primer: in this report, a resource created and destroyed to leave data behind in memory.
- Readback buffer: memory used to copy GPU results back so the CPU or JavaScript can read them.
- Render target: the image a GPU draws into before it is shown.
- Same-origin: a script served from the same website as the page, so the browser trusts it with the page's resources.
- Size class: a bucket of memory allocations of similar size.
- Stale data: old data left in memory after the thing that owned it was destroyed.
- Submitting: handing a recorded command buffer to the GPU so it actually runs.
- Swizzling / tiling: ways GPUs rearrange memory layout for speed.
- Tensor: a multi-dimensional array of numbers, the basic data unit in machine learning.
- Texel: a single coloured square in a texture, the GPU equivalent of a pixel.
- Texture: image data laid out for the GPU.
- Uninitialised use: using memory as if it had been filled with known data when it has not.
- Vulkan: a cross-platform graphics interface used on Android and elsewhere.
- WebGPU: the web API a page uses to ask the browser for graphics and compute work.
- Zero-initialisation: filling memory with zeroes before anyone reads it.