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

Use after free in Codecs (CVE-2026-11094)

A use-after-free in the D3D12 video encode path allows a command allocator to be reset while the GPU is still executing commands from it, because an early error return skips CPU synchronisation. A compromised renderer could trigger this by supplying an invalid reference buffer index, potentially leading to GPU process compromise.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 57 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 security team.

Overview: A vulnerability in the D3D12 video encode path allows a command allocator to be reset while its command lists are still executing on the GPU. This occurs because an early error return skips crucial CPU synchronization, and the encoding loop immediately processes the next frame. A compromised renderer can trigger this by providing an invalid reference buffer index, potentially leading to GPU process compromise.

Affected files:

  • media/gpu/windows/d3d12_video_processor_wrapper.cc
  • media/gpu/windows/d3d12_video_encode_delegate.cc
  • media/gpu/windows/d3d12_video_encode_accelerator.cc
  • media/gpu/windows/d3d12_video_encode_h264_delegate.cc
  • media/gpu/windows/d3d12_video_encode_h265_delegate.cc

Estimated timestamp from git blame: 2026-02-05

Technical Description

A potential GPU-side Use-After-Free (UAF) exists in the D3D12 video encode implementation on Windows. The issue stems from a synchronization failure when a renderer-triggered error causes an early return, allowing a D3D12 ID3D12CommandAllocator to be reset while the GPU is still executing commands backed by its memory.

The execution flow is as follows:

  1. D3D12VideoProcessorWrapper::ProcessFrames(): When a frame requires color space conversion, this method is called. It resets command_allocator_, records conversion commands, submits them to the GPU command queue, and signals a fence. Crucially, it does not block the CPU to wait for completion.
  2. Skipped CPU Synchronization: Under normal conditions, the CPU wait occurs later in the pipeline inside D3D12VideoEncoderWrapper::Encode() via a call to SignalAndWaitCPU(). However, if EncodeImpl() (in either the H.264 or H.265 delegates) encounters a validation error, it returns early. This skips the call to the encoder wrapper, meaning the CPU never waits for the video processor's GPU work to finish.
  3. Loop Continuation: The outer loop in D3D12VideoEncodeAccelerator::TryEncodeFrames() calls DoEncodeTask(). If DoEncodeTask() encounters an error, it calls NotifyError() (which merely posts a task to a different thread) but does not break the while loop. The loop immediately proceeds to process the next frame.
  4. The UAF: The subsequent frame re-enters ProcessFrames(), which unconditionally executes command_allocator_->Reset(). Because the CPU never waited for the first frame, this resets the allocator while the GPU is still actively reading the previous command list, violating D3D12 rules and corrupting the command stream.

Potential Attack Steps

(Note: These are potential steps derived from static code analysis; our tooling agent does not have the ability to run a live proof-of-concept.)

A compromised renderer process could trigger this deterministically via Mojo:

  1. Initialize a D3D12 Video Encode Accelerator (e.g., H.265 profile, manual_reference_buffer_control = true).
  2. Send an Encode request for a frame that requires asynchronous shared image resolution. This blocks the TryEncodeFrames loop.
  3. Send an Encode request for Frame A. Frame A should require color space conversion (forcing the use of the video processor) and specify an invalid update_buffer index in its VideoEncodeOptions (e.g., >= max_num_ref_frames_). Mojo does not enforce strict limits on this field.
  4. Send an Encode request for Frame B (a normal frame).
  5. When the initial frame finishes resolving, TryEncodeFrames processes the queue back-to-back. Frame A submits video processing commands but errors out on the invalid update_buffer index, skipping the CPU wait. Frame B immediately enters ProcessFrames and resets the active command allocator.

Suggested Fix

  1. Halt Processing on Error: In D3D12VideoEncodeAccelerator::TryEncodeFrames(), the while loop should check if an error occurred during DoEncodeTask and break immediately, rather than continuing to the next frame. Changing DoEncodeTask to return a boolean indicating success could facilitate this.
  2. Safe Allocator Reset: D3D12VideoProcessorWrapper::ProcessFrames() should independently ensure its allocator is safe to reset, perhaps by waiting on its own fence (CPU-side) if the previous operation hasn't completed, rather than relying entirely on downstream encoder logic to block the CPU.
  3. Mojo Input Validation: Validate bounds for fields like update_buffer and reference_buffers.size() earlier in the pipeline or directly within the Mojo traits mapping.

Evaluated with Chrome root at commit: f200f57a19490707ff8bc7aa5de3cbc443a3afad


Results 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 an early error return in the encode delegates skips the CPU wait for GPU work, and the encode loop continues without breaking, so the command allocator is reset while still in use.

Impact

A compromised renderer could potentially compromise the GPU process, though the report notes this is based on static analysis and no live proof-of-concept was run.

What the attacker needed

Compromised renderer process; Windows with D3D12 video encode; manual reference buffer control enabled

The fix

The loop should break on error, the video processor wrapper should independently ensure its allocator is safe to reset, and Mojo should validate bounds for fields like update_buffer.

How it was found

  1. Initialise a D3D12 Video Encode Accelerator with manual reference buffer control.
  2. Send an Encode request for a frame that requires asynchronous shared image resolution, blocking the encode loop.
  3. Send an Encode request for Frame A that requires colour space conversion and specifies an invalid update_buffer index.
  4. Send an Encode request for Frame B (a normal frame).
  5. When the initial frame resolves, the loop processes Frame A (which errors and skips the CPU wait) then Frame B, which resets the still-active command allocator.

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 computer sends work to a graphics card (GPU), it must wait for the GPU to finish before reusing the same memory. Here, an error path skips that wait, so the memory is reused while the GPU is still reading it, which can corrupt data or crash the GPU process. An attacker who already controls a web page's rendering process could exploit this to take over the GPU process.

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.