Uninitialized Use in ANGLE (CVE-2026-14402)
A logic flaw in ANGLE's D3D11 backend can leave cached depth resolve resources out of sync when a resource allocation fails, causing a WebGL context to receive an uninitialized texture containing stale GPU memory. An attacker could potentially read back this texture to disclose sensitive data from other origins or processes.
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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic flaw in ANGLE's D3D11 backend allows for the desynchronization of cached depth resolve resources when a resource allocation fails. This can lead to a WebGL context receiving an uninitialized texture containing stale GPU memory instead of the results of a resolve operation.
Affected files:
third_party/angle/src/libANGLE/renderer/d3d/d3d11/Blit11.cppthird_party/angle/src/libANGLE/renderer/d3d/d3d11/ResourceManager11.cppthird_party/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp
Estimated timestamp from git blame: 2017-05-18
Background
In the ANGLE D3D11 renderer, Blit11 manages internal resources for blit and resolve operations. To optimize performance, it maintains a renderer-scoped cache for depth-only resolve operations, consisting of a texture (mResolvedDepth) and a DepthStencilView (mResolvedDepthDSView). Because Blit11 is owned by the shared Renderer11, these cached resources are shared across all WebGL contexts (and therefore across different origins) using the same D3D11 device.
The Vulnerability
The function Blit11::initResolveDepthOnly manages these cached resources in a fallible two-step process without sufficient state rollback. When the requested dimensions change, it reallocates the texture and then the view:
// third_party/angle/src/libANGLE/renderer/d3d/d3d11/Blit11.cpp
// Step 1: Reallocate texture. If successful, mResolvedDepth is updated.
ANGLE_TRY(mRenderer->allocateTexture(context11, textureDesc, format, &mResolvedDepth));
// Step 2: Reallocate DSV. If this fails, mResolvedDepthDSView is NOT updated.
ANGLE_TRY(mRenderer->allocateResource(context11, dsvDesc, mResolvedDepth.get(),
&mResolvedDepthDSView));
// Step 3: Clear the texture. This is only reached if Step 2 succeeds.
deviceContext->ClearDepthStencilView(mResolvedDepthDSView.get(), D3D11_CLEAR_DEPTH, 1.0f, 0);
If Step 1 succeeds but Step 2 fails (e.g., due to E_OUTOFMEMORY), the function returns an error, but the Blit11 object is left in an inconsistent state: mResolvedDepth points to the newly allocated texture, while mResolvedDepthDSView still points to the view for the previous texture size.
Because production builds typically do not zero-initialize newly allocated textures (unless specific debug flags are set), the new texture contains uninitialized GPU memory.
Potential Exploitation Path
- Attacker Context A triggers a multisample depth resolve for size $X$. The cache is populated correctly.
- Attacker Context A triggers a resolve for size $Y$ while the GPU is under memory pressure. Step 1 succeeds (updating
mResolvedDepthto size $Y$), but Step 2 fails.mResolvedDepthDSViewstill points to a view of size $X$. - Attacker Context B (or the same attacker) triggers a resolve for size $Y$.
initResolveDepthOnlysees a cache hit (sincemResolvedDepthis size $Y$) and returnsContinueearly. Blit11::resolveDepthproceeds to use the stalemResolvedDepthDSView. The GPU resolve operation writes into the old texture (size $X$) because that is what the stale view targets.- The function returns
mResolvedDepth(size $Y$), which remains uninitialized and contains stale GPU memory from the heap. - The attacker reads back this texture using standard WebGL commands (e.g.,
glReadPixels), potentially disclosing sensitive data from other origins or processes.
Suggested Fix
The initResolveDepthOnly function should ensure that dependent views are reset before attempting to reallocate the underlying texture, or implement a proper rollback mechanism. A similar hardening was previously applied to the sibling function initResolveDepthStencil, but appears to have been omitted here.
if (mResolvedDepth.valid())
{
mResolvedDepthDSView.reset();
mResolvedDepth.reset();
}
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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 function initResolveDepthOnly reallocates the cached texture and its view in two separate steps without rolling back the first step if the second fails, leaving the cache inconsistent.
Impact
An attacker could potentially read back uninitialized GPU memory, disclosing sensitive data from other origins or processes; the text does not state that this was demonstrated in practice.
What the attacker needed
GPU under memory pressure; Ability to trigger WebGL depth resolves; Multiple WebGL contexts (or same attacker)
The fix
The initResolveDepthOnly function should reset dependent views before reallocating the underlying texture, or implement a proper rollback mechanism.
How it was found
- Attacker Context A triggers a multisample depth resolve for size X, populating the cache correctly.
- Attacker Context A triggers a resolve for size Y while the GPU is under memory pressure; Step 1 succeeds but Step 2 fails, leaving the view pointing to size X.
- Attacker Context B (or the same attacker) triggers a resolve for size Y; the function sees a cache hit and returns early.
- Blit11::resolveDepth uses the stale view, writing into the old texture (size X) instead of the new one.
- The function returns the new texture (size Y), which remains uninitialized and contains stale GPU memory.
- The attacker reads back this texture using standard WebGL commands (e.g., glReadPixels), potentially disclosing sensitive data.
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.
When a web page uses WebGL to draw 3D graphics, the browser's graphics layer sometimes reuses temporary memory buffers. A bug here means that if a memory allocation fails at the wrong moment, the browser hands back a buffer that was never properly cleared, still holding old data from other websites or programs. An attacker could then read that leftover data, potentially stealing private information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.