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

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

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 13 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: A potential GPU-side Use-After-Free (UAF) can occur in the Windows GPU process when a compromised renderer triggers an early validation failure in D3D12VideoEncodeDelegate. Under early error paths, the encoder returns immediately, skipping CPU synchronization for COPY-queue operations that are already in flight. Subsequent immediate teardown of the accelerator can free the underlying resources while the GPU is still actively accessing them.

Affected files:

  • media/gpu/windows/d3d12_video_encode_delegate.cc
  • media/gpu/windows/d3d12_video_encode_accelerator.cc

Estimated timestamp from git blame: 2026-02-05

Summary and Root Cause

A potential GPU-side Use-After-Free (UAF) exists in the D3D12VideoEncodeAccelerator within the Windows GPU process. When processing shared-memory backed video frames, D3D12VideoEncodeAccelerator::CreateResourceForSharedMemoryVideoFrame() copies renderer-supplied data into upload_buffer_ (UPLOAD heap) and records a copy operation (upload_buffer_ to input_texture_) on the COPY command queue:

C++
if (!copy_command_queue_->CopyBufferToNV12Texture(
        input_texture_.Get(), upload_buffer_.Get(), 0, y_size.width(),
        uv_offset, uv_size.width())) { ... }

auto fence_and_value = copy_command_queue_->Execute(); // Executes commands on the GPU but does NOT wait on the CPU

This copy command list executes asynchronously on the GPU COPY engine. However, D3D12VideoEncodeDelegate::Encode() performs early validation of the reference buffer options before submitting any encoding work or performing CPU-to-GPU synchronization steps:

C++
if (options.reference_buffers.size() > GetMaxNumOfManualRefBuffers()) {
  return {EncoderStatus::Codes::kBadReferenceBuffer, ...};
}
for (uint8_t ref_idx : options.reference_buffers) {
  if (ref_idx >= GetMaxNumOfManualRefBuffers()) {
    return {EncoderStatus::Codes::kBadReferenceBuffer, ...};
  }
}
if (options.update_buffer.has_value() &&
    options.update_buffer.value() >= GetMaxNumOfManualRefBuffers()) {
  return {EncoderStatus::Codes::kBadReferenceBuffer, ...};
}

If any of these validation checks fail (which a compromised renderer can trigger by sending out-of-range indices), Encode() returns early with a kBadReferenceBuffer status. Because of the early return, the execution flow completely bypasses the subsequent encoder pipeline, which would normally perform CPU fence wait and synchronization operations on the COPY queue's fence.

If the renderer immediately closes the Mojo pipe upon receiving the error notification, D3D12VideoEncodeAccelerator::DestroyTask() is executed and deletes the accelerator. During destruction, the underlying upload_buffer_ and input_texture_ ComPtr structures are released, deallocating the memory heaps while the GPU copy engine is still actively reading from or writing to them, leading to a GPU-side UAF.

Potential Trigger Steps

Note: These are suggested steps to trigger the bug. Our tooling does not currently have the capability to run code or verify a proof-of-concept.

  1. Initialize D3D12VideoEncodeAccelerator with a supported profile (requires the kD3D12VideoEncodeAccelerator feature to be enabled).
  2. Call UseOutputBitstreamBuffer to register output buffers.
  3. Send an Encode() request containing a STORAGE_SHMEM VideoFrame and a malicious options.update_buffer value set to 255 (or any value >= GetMaxNumOfManualRefBuffers()).
  4. Immediately close the VideoEncodeAccelerator Mojo pipe.
  5. The accelerator enters destruction on the encoder task runner, releasing the underlying D3D12 resources while the GPU copy operation is still executing in the background.

Suggested Fix

To remediate this issue, perform early validation of the EncodeOptions before initiating the copy operation on the COPY command queue, or ensure that the COPY queue fence is explicitly synchronized and completed CPU-side before the accelerator or its associated D3D12 resource heaps are destroyed in ~D3D12VideoEncodeAccelerator() or D3D12CopyCommandQueueWrapper::~D3D12CopyCommandQueueWrapper().

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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.

What is known

A high-severity memory corruption bug in Codecs (Google Chrome). Chrome VRP made it public on 8 June 2026 as CVE-2026-11679. Fixed in version 149.0.7827.102.

About 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.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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.