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

Insufficient validation of untrusted input in GPU (CVE-2026-11021)

A compromised renderer can supply a CompositorFrame with unvalidated texture coordinates and resource sizes, leading to out-of-bounds source rectangles being passed to D3D11 video processing APIs. This could result in cross-origin GPU memory disclosure or driver memory corruption.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A compromised renderer can supply a CompositorFrame with a TextureDrawQuad and TransferableResource containing unvalidated, out-of-bounds coordinates and sizes. These values are passed through the DirectComposition overlay pipeline without validation against the actual GPU texture size. This results in D3D11 VideoProcessor APIs being called with an out-of-bounds source rectangle, potentially leading to cross-origin GPU memory disclosure or driver memory corruption.

Affected files:

  • components/viz/service/display_embedder/skia_output_device_dcomp.cc
  • ui/gl/swap_chain_presenter.cc
  • components/viz/service/display/dc_layer_overlay.cc
  • components/viz/common/quads/texture_draw_quad.h
  • components/viz/service/display/display_resource_provider.cc

Estimated timestamp from git blame: 2025-05-12

Summary

A potential vulnerability exists in the DirectComposition (DComp) video overlay path on Windows where unvalidated renderer-controlled data is passed to D3D11 APIs. A compromised renderer can submit a CompositorFrame containing a TextureDrawQuad with an out-of-bounds tex_coord_rect_ and a TransferableResource that reports an incorrect size. These values are used to compute a source rectangle for video processing without adequate validation against the actual GPU-backed texture dimensions.

Technical Analysis

The vulnerability stems from a lack of validation across multiple stages of the compositing pipeline, specifically in the hardware overlay path:

  1. Mojo Deserialization: The Mojo traits for TextureDrawQuad (in services/viz/public/cpp/compositing/quads_mojom_traits.cc) and TransferableResource (in services/viz/public/cpp/compositing/transferable_resource_mojom_traits.cc) deserialize fields like tex_coord_rect_, is_video_frame, and is_normalized_coords without validation against the actual resource being referenced.
  2. Texture Coordinate Handling: In components/viz/common/quads/texture_draw_quad.h, the GetNormalizedTexCoords method returns tex_coord_rect_ directly if is_normalized_coords is true, failing to clamp the values to the expected [0, 1] range.
  3. Resource Size Propagation: DisplayResourceProvider::GetResourceBackedSize in components/viz/service/display/display_resource_provider.cc returns the size claimed by the renderer in the TransferableResource metadata. This size is then used in DCLayerOverlayProcessor::FromDrawQuad to populate an OverlayCandidate.
  4. Unbounded Content Rect Calculation: In SkiaOutputDeviceDComp::ScheduleDCLayers (via ScheduleOverlays) in components/viz/service/display_embedder/skia_output_device_dcomp.cc, the params.content_rect is calculated by scaling the uv_rect by resource_size_in_pixels. Since both are renderer-controlled and unvalidated, the resulting content_rect can be arbitrarily large.
  5. Bypassing Validation: When BeginOverlayAccess is called, it retrieves the actual SharedImageBacking based on the mailbox via ProduceOverlay. While the standard rasterization ProduceSkia path contains size-mismatch checks (in components/viz/service/display_embedder/image_context_impl.cc), the ProduceOverlay path (in SharedImageManager::ProduceOverlay) does not validate that the backing texture's actual dimensions match the TransferableResource's claimed size.
  6. D3D11 API Sink: In ui/gl/swap_chain_presenter.cc, the massively out-of-bounds content_rect is converted to a RECT and passed directly as a source rectangle to D3D11 APIs, specifically VideoProcessorSetStreamSourceRect and IDXGIDecodeSwapChain::SetSourceRect, with no further clamping or intersection against the input texture's true bounds.

Security Impact

Per Microsoft's D3D11 documentation, the source rectangle must fall within the bounds of the input surface. Violating this constraint leads to driver-undefined behavior. Depending on the specific IHV GPU driver implementation, this can result in:

  • Information Disclosure: An out-of-bounds (OOB) read of adjacent GPU memory can occur, which is then blitted into the visible swap chain. This allows a compromised renderer to capture cross-origin pixels (e.g., via getDisplayMedia).
  • Memory Corruption: Driver state corruption may lead to memory corruption within the GPU process.
  • Denial of Service: The driver may crash or cause a GPU Timeout Detection and Recovery (TDR).

Potential Steps to Reproduce

Note: Our tooling agent does not yet have the capability to run code, so these are suggested steps to trigger the vulnerability based on static analysis.

  1. Compromise a renderer process.
  2. Construct a malicious CompositorFrame containing a valid video or canvas shared image Mailbox.
  3. Create a TransferableResource for this mailbox, but spoof its size metadata to be exceptionally large (e.g., gfx::Size(10000, 10000)).
  4. Create a TextureDrawQuad linking to this resource. Set is_normalized_coords to true and set tex_coord_rect_ to massive or negative values (e.g., gfx::RectF(-1000.0f, -1000.0f, 2000.0f, 2000.0f)).
  5. Ensure the quad meets the criteria for DirectComposition overlay promotion on Windows (e.g., large enough on screen, no complex clipping).
  6. Submit the frame to the Viz process via Mojo.
  7. If successful, observe driver instability or use getDisplayMedia to capture the resulting screen contents, looking for leaked GPU memory artifacts.

Suggested Fix

Validation should be added to ensure that the renderer cannot specify an overlay source rectangle that exceeds the bounds of the actual GPU-backed texture.

  1. Add Validation to ProduceOverlay: Similar to the checks in ImageContextImpl::ProduceSkia, SharedImageManager::ProduceOverlay (or a higher-level caller like SkiaOutputDeviceDComp::BeginOverlayAccess) should verify that the dimensions claimed in the TransferableResource (and thus dc_layer.resource_size_in_pixels) do not exceed the actual size() of the produced OverlayImageRepresentation.
  2. Clamp content_rect in SwapChainPresenter: As a defense-in-depth measure, ui/gl/swap_chain_presenter.cc should validate or intersect the content_rect against the input_texture's actual bounds (retrieved via GetDesc) before passing it to VideoProcessorSetStreamSourceRect or SetSourceRect.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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

Likely the lack of validation of renderer-supplied texture coordinates and resource sizes against the actual GPU texture dimensions in the DirectComposition overlay path.

Impact

Depending on the GPU driver, this could lead to cross-origin GPU memory disclosure, driver memory corruption, or a denial of service.

What the attacker needed

Compromised renderer process; Windows with DirectComposition; specific GPU driver

The fix

Validation should be added to ensure that the renderer cannot specify an overlay source rectangle that exceeds the bounds of the actual GPU-backed texture.

How it was found

  1. Compromise a renderer process.
  2. Construct a malicious CompositorFrame containing a valid video or canvas shared image Mailbox.
  3. Create a TransferableResource for this mailbox, but spoof its size metadata to be exceptionally large.
  4. Create a TextureDrawQuad linking to this resource. Set is_normalized_coords to true and set tex_coord_rect_ to massive or negative values.
  5. Ensure the quad meets the criteria for DirectComposition overlay promotion on Windows.
  6. Submit the frame to the Viz process via Mojo.

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 renderer is the part of the browser that turns web pages into what you see. If an attacker can take control of it, they can send bad instructions to the part that draws graphics on the screen. Here, those instructions include coordinates that point outside the actual image, and the graphics system doesn't check them, so it might read memory it shouldn't or crash the graphics driver.

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.