Skip to content
Info disclosure Advisory Advanced CVE-2026-113031

Uninitialized resource in Media (CVE-2026-113031)

The Windows GPU video encoding path's scaling function did not check the DXGI format of the input texture, unlike its sibling copy function. A compromised renderer could supply a texture in an unsupported format so that a driver silently skips the blit yet reports success, letting uninitialised GPU memory be encoded and returned, potentially disclosing cross-origin GPU data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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: MediaFoundationVideoEncodeAccelerator::PerformD3DScaling lacks DXGI format validation on its input texture. A compromised renderer could potentially pass a texture with an unsupported format, causing the D3D11 Video Processor blit operation to silently fail on certain drivers while still returning S_OK. This allows the uninitialized VRAM of the scaled destination texture to be encoded and returned, potentially disclosing cross-origin GPU memory.

Affected files:

  • media/gpu/windows/media_foundation_video_encode_accelerator_win.cc

Estimated timestamp from git blame: 2021-05-24

Description

There is a potential information disclosure vulnerability in the Windows GPU process implementation of the Media Foundation Video Encode Accelerator (MediaFoundationVideoEncodeAccelerator).

The function PerformD3DScaling in media/gpu/windows/media_foundation_video_encode_accelerator_win.cc processes renderer-supplied DXGI textures when input scaling is required. However, it lacks an explicit DXGI format verification check on the input texture. In contrast, its sibling function PerformD3DCopy explicitly validates that the input texture format is DXGI_FORMAT_NV12 before performing operations:

C++
// media/gpu/windows/media_foundation_video_encode_accelerator_win.cc (PerformD3DCopy)
if (input_desc.Format != DXGI_FORMAT_NV12) {
  LOG(ERROR) << "Format mismatch: source format " << input_desc.Format
             << " is not DXGI_FORMAT_NV12";
  return E_INVALIDARG;
}

Without this check, PerformD3DScaling permits arbitrary DXGI formats. It sets up an ID3D11VideoProcessorInputView and calls ID3D11VideoContext::VideoProcessorBlt to scale the input texture into a newly allocated destination texture (scaled_d3d11_texture_). This destination texture is created without initial data (passing nullptr to CreateTexture2D), leaving its underlying GPU VRAM uninitialized.

According to Microsoft D3D11 documentation for ID3D11VideoProcessorEnumerator::CheckVideoProcessorFormat, an unsupported format may successfully pass view creation and even blit calls but fail to process correctly:

"A format that is not supported might still succeed the CreateVideoProcessorInputView or CreateVideoProcessorOutputView call, but the format might not work correctly when you call ID3D11VideoContext::VideoProcessorBlt."

If a driver-level video processor silently drops the blit operation on an unsupported format but returns S_OK, the uninitialized GPU memory within the destination texture is preserved. This memory is then wrapped into an IMF media buffer, has its active length set to the maximum size, and is sent to the hardware video encoder MFT. The encoder compresses the uninitialized VRAM, and the resulting bitstream is returned back to the renderer, potentially leaking cross-origin GPU data.

Note: The steps described below are theoretical and suggested based on static code analysis; our analysis tooling does not currently have the capability to execute code or run dynamic proofs-of-concept.

Potential Attack Steps

  1. From a compromised renderer, create a GPU SharedImage backed by a D3D11 texture with a bindable but VideoProcessor-unsupported DXGI format (e.g., DXGI_FORMAT_R32_FLOAT or DXGI_FORMAT_R16G16_UNORM).
  2. Request a video encoding session via the media.mojom.VideoEncodeAccelerator interface, specifying PIXEL_FORMAT_NV12 as the input format.
  3. Send an Encode IPC message containing the GpuMemoryBufferHandle of the unsupported format texture, but set the accompanying VideoFrame metadata format to PIXEL_FORMAT_NV12 to pass upstream format validation checks.
  4. Ensure the VideoFrame's visible_rect resolution differs from the initialized input size of the encoder to force the execution of PerformD3DScaling rather than PerformD3DCopy.
  5. If the GPU driver's video processor blit operation silently fails (returning S_OK without writing to the output view), the uninitialized destination texture will be encoded and returned to the renderer as compressed video frames.

Suggested Fix

Add an explicit DXGI format validation check at the beginning of MediaFoundationVideoEncodeAccelerator::PerformD3DScaling (or inside InitializeD3DVideoProcessing) to ensure that the input texture format matches the expected format (e.g., DXGI_FORMAT_NV12), mirroring the check present in PerformD3DCopy:

C++
if (input_texture_desc.Format != DXGI_FORMAT_NV12) {
  LOG(ERROR) << "Format mismatch: scaling source format " << input_texture_desc.Format
             << " is not DXGI_FORMAT_NV12";
  return E_INVALIDARG;
}

Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85


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

Likely the scaling path omitted the DXGI format check that the copy path performs, so an unsupported input format could reach a blit that fails silently while returning success, leaving the destination texture uninitialised.

Impact

Could disclose cross-origin GPU memory, but only if the renderer is already compromised and the specific driver silently drops the blit while reporting success; the steps are theoretical and were not executed.

What the attacker needed

Compromised renderer process; Windows GPU process with D3D11 video processing; driver that silently fails the blit but returns S_OK

The fix

An explicit DXGI format check should be added at the start of PerformD3DScaling (or in InitializeD3DVideoProcessing) requiring the input texture to be DXGI_FORMAT_NV12, mirroring PerformD3DCopy.

How it was found

  1. From a compromised renderer, create a GPU SharedImage backed by a D3D11 texture with a bindable but VideoProcessor-unsupported DXGI format.
  2. Request a video encoding session via the media.mojom.VideoEncodeAccelerator interface, specifying PIXEL_FORMAT_NV12 as the input format.
  3. Send an Encode IPC message with the unsupported format texture handle but label the VideoFrame metadata as PIXEL_FORMAT_NV12 to pass upstream validation.
  4. Make the VideoFrame's visible_rect resolution differ from the encoder's initialised input size so PerformD3DScaling runs instead of PerformD3DCopy.
  5. If the driver's blit silently fails while returning success, the uninitialised destination texture is encoded and returned as compressed video frames.

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 graphics card has its own memory, separate from normal system memory, and programs ask the driver to copy or resize images inside it. Here the code that resizes an image before encoding it never checked what kind of image format it was given. If the driver quietly does nothing but still says it worked, the encoder reads whatever leftover data was already sitting in that memory, which might belong to another website.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.