Skip to content
Memory corruption Advisory Advanced CVE-2026-14412

Insufficient validation of untrusted input in ANGLE (CVE-2026-14412)

ANGLE's Vulkan backend does not enforce that colour attachments in a framebuffer are unique images for non-WebGL contexts, violating a Vulkan valid-usage rule. A compromised renderer could trigger driver-level undefined behaviour in the GPU process, potentially leading to memory corruption and sandbox escape on Android.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 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: ANGLE's Vulkan backend fails to ensure color attachments are unique images in non-WebGL contexts, violating Vulkan Valid Usage requirements. This can lead to driver-level undefined behavior in the GPU process when multiple attachments alias the same memory. This is especially critical on Android where the GPU process is unsandboxed.

Affected files:

  • third_party/angle/src/libANGLE/renderer/vulkan/FramebufferVk.cpp
  • third_party/angle/src/libANGLE/Framebuffer.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/vk_cache_utils.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/TextureVk.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential security vulnerability exists in ANGLE's Vulkan backend where it fails to enforce that color attachments in a framebuffer are unique images for non-WebGL contexts (e.g., OpenGL ES 3.0). This omission leads to a violation of Vulkan Valid Usage (VUID-VkRenderPassCreateInfo-pAttachments-00836), which forbids multiple attachments from aliasing the same memory in a single subpass unless the VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT is set. ANGLE currently never sets this bit and does not prevent the aliasing, resulting in driver-level undefined behavior.

Root Cause Analysis

In ANGLE's frontend (third_party/angle/src/libANGLE/Framebuffer.cpp), the check for unique color attachment images is guarded by the webglCompatibilityANGLE extension:

C++
if (state.getExtensions().webglCompatibilityANGLE)
{
    if (!mState.colorAttachmentsAreUniqueImages())
    {
        return FramebufferStatus::Incomplete(GL_FRAMEBUFFER_UNSUPPORTED, ...);
    }
}

When a renderer requests a non-WebGL GLES context (which is allowed via IPC), this check is bypassed. While some backends like D3D11 duplicate this check in their own checkStatus implementation, the Vulkan backend (third_party/angle/src/libANGLE/renderer/vulkan/FramebufferVk.cpp) does not.

Furthermore, when creating the Vulkan render pass in third_party/angle/src/libANGLE/renderer/vulkan/vk_cache_utils.cpp, the VkAttachmentDescription2 structures are initialized without the VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT flag, which is required if multiple attachments alias the same image memory.

Potential Trigger Path

Note: These steps are suggested based on code analysis; a functional proof-of-concept has not yet been executed.

  1. A compromised renderer process requests a non-WebGL context (e.g., CONTEXT_TYPE_OPENGLES3) from the GPU process.
  2. The renderer creates a single texture and attaches it to both GL_COLOR_ATTACHMENT0 and GL_COLOR_ATTACHMENT1 on a new Framebuffer Object (FBO).
  3. The renderer calls glCheckFramebufferStatus, which returns GL_FRAMEBUFFER_COMPLETE due to the frontend bypass and missing backend check.
  4. The renderer enables both attachments and issues a draw command (e.g., glDrawArrays).
  5. ANGLE's Vulkan backend creates a VkFramebuffer containing duplicate VkImageView handles and a VkRenderPass where the attachments alias the same memory without the MAY_ALIAS bit.
  6. The graphics driver executes the command, violating Vulkan valid usage and potentially entering an exploitable undefined state.

Security Impact

Triggering driver-level undefined behavior represents a path for memory corruption within the GPU process. On platforms like Android, where the GPU process is unsandboxed, this could potentially be leveraged by an attacker to escape the renderer sandbox and gain full control over the GPU process.

Suggested Fix

The uniqueness check should be mirrored in the Vulkan backend's status check to ensure color attachments are unique images for all context types. This can be achieved by adding a check to FramebufferVk::checkStatus in third_party/angle/src/libANGLE/renderer/vulkan/FramebufferVk.cpp similar to the one in the D3D backend.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

The uniqueness check for colour attachments is guarded by the webglCompatibilityANGLE extension in the frontend, and the Vulkan backend does not repeat the check that the D3D11 backend performs.

Impact

Triggering driver-level undefined behaviour could lead to memory corruption in the GPU process and, on Android where that process is unsandboxed, potentially allow a renderer sandbox escape; the report notes that no proof-of-concept has been executed.

What the attacker needed

Compromised renderer process; non-WebGL GLES context; Vulkan backend in use

The fix

The uniqueness check should be added to the Vulkan backend's status check, mirroring the D3D11 backend.

How it was found

  1. A compromised renderer requests a non-WebGL context from the GPU process.
  2. The renderer creates one texture and attaches it to two colour attachment points on a new framebuffer.
  3. The renderer checks framebuffer status, which incorrectly reports complete.
  4. The renderer enables both attachments and issues a draw command.
  5. ANGLE builds a Vulkan framebuffer with duplicate image views and a render pass whose attachments alias the same memory without the may-alias flag.
  6. The graphics driver executes the command, violating Vulkan valid usage.

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 framebuffer is a buffer that holds the pixels a program draws into. ANGLE, the layer that translates OpenGL calls into Vulkan, normally checks that each colour attachment points to a different image, but only when the context is WebGL. For other context types the check is skipped, so a program can attach the same image twice, which the Vulkan specification forbids and which can make the graphics driver behave unpredictably.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.