Uninitialized resource in Dawn (CVE-2026-79221)
Dawn's OpenGL backend marks render-pass attachments as initialised before the pass runs, but only checks framebuffer completeness in debug assertions, so in release builds an incomplete framebuffer makes clears and draws silently fail. Because the attachments are already flagged as initialised, later sampling skips the lazy clear and could expose uninitialised GPU heap memory to JavaScript.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 48 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: Dawn's OpenGL backend marks render-pass attachments as initialized prior to recording a pass, but only checks for framebuffer completeness inside debug-only assertions (DAWN_ASSERT). In production release builds, an incomplete framebuffer causes subsequent clears, draws, and resolve operations to silently fail and no-op without raising an error. Because the frontend already marked the attachments as initialized, subsequent sampling of these resources bypasses lazy-clearing and can potentially leak uninitialized GPU heap memory to JavaScript.
Affected files:
third_party/dawn/src/dawn/native/opengl/CommandBufferGL.cppthird_party/dawn/src/dawn/native/CommandBuffer.cppthird_party/dawn/src/dawn/native/opengl/PhysicalDeviceGL.cppthird_party/dawn/src/dawn/native/opengl/TextureGL.cpp
Estimated timestamp from git blame: 2020-01-16
Potential Cross-Origin Uninitialized GPU Heap Leak in Dawn GLES Backend
Summary
We have identified a potential vulnerability in Dawn's OpenGL/GLES backend where an incomplete Framebuffer Object (FBO) configuration can result in silent failures of draw/clear operations. Because the Dawn frontend eagerly flags the render-pass attachments as initialized before executing the pass, a silent backend failure allows subsequent texture sampling operations to bypass lazy-clearing. This can potentially leak raw, uninitialized GPU heap memory directly to the calling origin.
Technical Analysis
Step 1: Eager Initialization Marking
In third_party/dawn/src/dawn/native/opengl/CommandBufferGL.cpp (lines 859-863), the command recording pipeline invokes LazyClearRenderPassAttachments before running ExecuteRenderPass:
DAWN_TRY(LazyClearRenderPassAttachments(
GetDevice(), cmd, [&](TextureBase* texture, const SubresourceRange& range) {
return ToBackend(texture)->EnsureSubresourceContentInitialized(gl, range);
}));
DAWN_TRY(ExecuteRenderPass(cmd, gl, nextRenderPassNumber));
Inside LazyClearRenderPassAttachments (third_party/dawn/src/dawn/native/CommandBuffer.cpp lines 221-228), color attachments with Store store operations and resolve targets are unconditionally marked as initialized in the frontend tracking state:
resolveView->GetTexture()->SetIsSubresourceContentInitialized(
true, resolveView->GetSubresourceRange());
...
case wgpu::StoreOp::Store:
view->GetTexture()->SetIsSubresourceContentInitialized(true, range);
break;
Step 2: Debug-Only Framebuffer Completeness Check
During ExecuteRenderPass, an FBO is generated and bound to represent the render pass attachments. However, the completeness of this framebuffer is only verified inside a DAWN_ASSERT:
DAWN_GL_TRY(gl, GenFramebuffers(1, &fbo));
DAWN_GL_TRY(gl, BindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo));
... // attach color/depth/stencil views
DAWN_ASSERT(gl.CheckFramebufferStatus(GL_DRAW_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); // CommandBufferGL.cpp:1350
In production release builds of Chrome, DAWN_ENABLE_ASSERTS is undefined, and DAWN_ASSERT compiles to a no-op static_assert(sizeof(!!(cond)) == sizeof(bool)). Consequently, the FBO status is never verified at runtime in release builds.
Step 3: Silent Clear Failures & Unchecked GL Errors
If the underlying driver rejects the bound framebuffer configuration (e.g., returning GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT or GL_FRAMEBUFFER_UNSUPPORTED), the FBO is marked incomplete.
Per OpenGL ES 3.2 specification §9.4.2, any clear or draw commands on an incomplete bound draw framebuffer generate a GL_INVALID_FRAMEBUFFER_OPERATION error and are ignored.
Because the release build definitions of the DAWN_GL_TRY macro compile to bare GL calls (#define DAWN_GL_TRY(gl, call) (gl.call)), runtime GL error checks are bypassed, and ExecuteRenderPass returns success ({}).
Step 4: Lazy Clear Bypass
When the texture is subsequently bound and sampled (e.g., in a compute pass), the backend calls EnsureSubresourceContentInitialized (TextureGL.cpp lines 606-614):
if (!IsSubresourceContentInitialized(range)) {
DAWN_TRY(ClearTexture(gl, range, TextureBase::ClearValue::Zero));
}
Since IsSubresourceContentInitialized was marked true during Step 1, the lazy clear is skipped entirely. This allows the compute shader to sample the raw, uninitialized driver memory allocated via glTexStorage2D and copy it to a readable buffer, potentially disclosing sensitive GPU memory (including cross-origin data) to the page.
Suggested/Potential Trigger Path (Not verified via executable POC)
An attacker could potentially trigger this behavior via WebGPU compatibility mode on Android devices that lack native float-renderability or return GL_FRAMEBUFFER_UNSUPPORTED for specific format combinations:
- Create a texture with
wgpu::TextureFormat::RGBA16Floatand binding usages (RENDER_ATTACHMENT | TEXTURE_BINDING). - Begin a render pass that clears this texture and stores it.
- The backend fails to clear the texture due to the incomplete framebuffer.
- Perform a subsequent compute pass to sample the texture and write its contents to a map-readable GPUBuffer.
- Read the buffer asynchronously to inspect the leaked GPU heap contents.
Suggested Fix
To address this potential issue, the OpenGL backend should dynamically verify framebuffer completeness and handle failures gracefully in release builds. This can be achieved by utilizing DAWN_TRY or checking the FBO status during pass setup:
GLenum status = gl.CheckFramebufferStatus(GL_DRAW_FRAMEBUFFER);
DAWN_INVALID_IF(status != GL_FRAMEBUFFER_COMPLETE, "Framebuffer was incomplete: %x", status);
Additionally, if a render pass fails execution, any previously updated subresource initialization tracking flags for that pass's attachments should be rolled back to false.
Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the frontend marks attachments as initialised before the backend executes the pass, while framebuffer completeness and GL errors are only checked in debug builds, so a failed clear is never detected or rolled back.
Impact
Could disclose uninitialised GPU heap memory, potentially including cross-origin data, to a web page, though the trigger path is unverified and depends on drivers rejecting the framebuffer configuration.
What the attacker needed
WebGPU compatibility mode; Android device with limited float renderability; Driver returns incomplete framebuffer
The fix
The OpenGL backend should check framebuffer completeness at runtime and fail the pass, and roll back the initialisation flags for that pass's attachments when execution fails.
How it was found
- Create a texture with a float render format and both render-attachment and texture-binding usage.
- Begin a render pass that clears and stores the texture.
- The backend fails to clear because the framebuffer is incomplete.
- Run a compute pass that samples the texture and writes it to a readable buffer.
- Read the buffer asynchronously to inspect the leaked contents.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A GPU texture starts out holding whatever was left in graphics memory, so the browser normally clears it before letting a page read it. Here the browser marks the texture as cleared before it actually performs the clear, and the clear quietly fails on some drivers without any error. The page can then read the leftover memory, which may contain data from other sites.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.