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.ccui/gl/swap_chain_presenter.cccomponents/viz/service/display/dc_layer_overlay.cccomponents/viz/common/quads/texture_draw_quad.hcomponents/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:
- Mojo Deserialization: The Mojo traits for
TextureDrawQuad(inservices/viz/public/cpp/compositing/quads_mojom_traits.cc) andTransferableResource(inservices/viz/public/cpp/compositing/transferable_resource_mojom_traits.cc) deserialize fields liketex_coord_rect_,is_video_frame, andis_normalized_coordswithout validation against the actual resource being referenced. - Texture Coordinate Handling: In
components/viz/common/quads/texture_draw_quad.h, theGetNormalizedTexCoordsmethod returnstex_coord_rect_directly ifis_normalized_coordsis true, failing to clamp the values to the expected [0, 1] range. - Resource Size Propagation:
DisplayResourceProvider::GetResourceBackedSizeincomponents/viz/service/display/display_resource_provider.ccreturns the size claimed by the renderer in theTransferableResourcemetadata. This size is then used inDCLayerOverlayProcessor::FromDrawQuadto populate anOverlayCandidate. - Unbounded Content Rect Calculation: In
SkiaOutputDeviceDComp::ScheduleDCLayers(viaScheduleOverlays) incomponents/viz/service/display_embedder/skia_output_device_dcomp.cc, theparams.content_rectis calculated by scaling theuv_rectbyresource_size_in_pixels. Since both are renderer-controlled and unvalidated, the resultingcontent_rectcan be arbitrarily large. - Bypassing Validation: When
BeginOverlayAccessis called, it retrieves the actualSharedImageBackingbased on the mailbox viaProduceOverlay. While the standard rasterizationProduceSkiapath contains size-mismatch checks (incomponents/viz/service/display_embedder/image_context_impl.cc), theProduceOverlaypath (inSharedImageManager::ProduceOverlay) does not validate that the backing texture's actual dimensions match theTransferableResource's claimed size. - D3D11 API Sink: In
ui/gl/swap_chain_presenter.cc, the massively out-of-boundscontent_rectis converted to aRECTand passed directly as a source rectangle to D3D11 APIs, specificallyVideoProcessorSetStreamSourceRectandIDXGIDecodeSwapChain::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.
- Compromise a renderer process.
- Construct a malicious
CompositorFramecontaining a valid video or canvas shared imageMailbox. - Create a
TransferableResourcefor this mailbox, but spoof itssizemetadata to be exceptionally large (e.g.,gfx::Size(10000, 10000)). - Create a
TextureDrawQuadlinking to this resource. Setis_normalized_coordstotrueand settex_coord_rect_to massive or negative values (e.g.,gfx::RectF(-1000.0f, -1000.0f, 2000.0f, 2000.0f)). - Ensure the quad meets the criteria for DirectComposition overlay promotion on Windows (e.g., large enough on screen, no complex clipping).
- Submit the frame to the Viz process via Mojo.
- If successful, observe driver instability or use
getDisplayMediato 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.
- Add Validation to
ProduceOverlay: Similar to the checks inImageContextImpl::ProduceSkia,SharedImageManager::ProduceOverlay(or a higher-level caller likeSkiaOutputDeviceDComp::BeginOverlayAccess) should verify that the dimensions claimed in theTransferableResource(and thusdc_layer.resource_size_in_pixels) do not exceed the actualsize()of the producedOverlayImageRepresentation. - Clamp
content_rectinSwapChainPresenter: As a defense-in-depth measure,ui/gl/swap_chain_presenter.ccshould validate or intersect thecontent_rectagainst theinput_texture's actual bounds (retrieved viaGetDesc) before passing it toVideoProcessorSetStreamSourceRectorSetSourceRect.
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.
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
- Compromise a renderer process.
- Construct a malicious CompositorFrame containing a valid video or canvas shared image Mailbox.
- Create a TransferableResource for this mailbox, but spoof its size metadata to be exceptionally large.
- Create a TextureDrawQuad linking to this resource. Set is_normalized_coords to true and set tex_coord_rect_ to massive or negative values.
- Ensure the quad meets the criteria for DirectComposition overlay promotion on Windows.
- 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.