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

Uninitialized Use in Codecs (CVE-2026-14010)

A Windows GPU process function sets the active length of an input buffer to the encoder's reported minimum size, which can exceed the actual video frame allocation, leaving trailing heap memory uninitialized. This uninitialized memory is then encoded into the compressed video stream and returned to an unprivileged renderer, potentially leaking GPU process heap data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 35 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 information disclosure vulnerability exists in the Windows GPU process within MediaFoundationVideoEncodeAccelerator::PopulateInputSampleBuffer due to mismatched input buffer size configuration. When the encoder's reported minimum input size (cbSize) exceeds the video frame allocation size, uninitialized trailing heap memory is advertised as valid data via SetCurrentLength. This uninitialized memory can then be encoded into the compressed video stream and returned to an unprivileged renderer.

Affected files:

  • media/gpu/windows/media_foundation_video_encode_accelerator_win.cc

Estimated timestamp from git blame: 2024-05-01

Root Cause Analysis

In MediaFoundationVideoEncodeAccelerator::PopulateInputSampleBuffer (located in media/gpu/windows/media_foundation_video_encode_accelerator_win.cc), there is a potential GPU-process heap memory disclosure issue.

When allocating a fresh buffer for CPU-backed input frames, the code retrieves the encoder's reported minimum input size requirements (input_stream_info.cbSize). If cbSize is non-zero, it creates an aligned memory buffer via MFCreateAlignedMemoryBuffer sized to cbSize and immediately sets the buffer's active length to cbSize:

C++
hr = MFCreateAlignedMemoryBuffer(
    input_stream_info.cbSize ? input_stream_info.cbSize
                             : VideoFrame::AllocationSize(kTargetPixelFormat, input_visible_size_),
    ..., &input_buffer);
...
hr = input_buffer->SetCurrentLength(
    input_stream_info.cbSize ? input_stream_info.cbSize
                             : VideoFrame::AllocationSize(kTargetPixelFormat, input_visible_size_));

However, the subsequent conversion step only writes VideoFrame::AllocationSize(PIXEL_FORMAT_NV12, input_visible_size_) bytes into the buffer using ConvertAndScale():

C++
auto frame_in_buffer = VideoFrame::WrapExternalYuvData(
    kTargetPixelFormat, input_visible_size_, ...,
    dst_y_stride, dst_uv_stride, dst_y, dst_uv,
    frame->timestamp());

auto status = frame_converter_.ConvertAndScale(*frame, *frame_in_buffer);

When input_stream_info.cbSize is larger than the required allocation size (which commonly occurs due to vendor-specific or macroblock-alignment requirements), the trailing cbSize - AllocationSize bytes remain completely uninitialized. Because the active length was set to cbSize, the MFT is told that the entire buffer contains valid data.

This is confirmed to be an implementation defect by looking at the sibling function CopyInputSampleBufferFromGpu, which correctly sets the active length to the actual number of written bytes:

C++
size_t copied_bytes =
    input_visible_size_.width() * input_visible_size_.height() * 3 / 2;
hr = input_buffer->SetCurrentLength(copied_bytes);

Potential Exploitation Steps

An attacker could potentially exploit this behavior using the following steps (note that our tooling agent does not currently have the capability to execute this code or provide a working proof of concept, so these are suggested/potential steps):

  1. An unprivileged renderer can access this path without any user permission via WebCodecs (VideoEncoder) or WebRTC APIs.
  2. By specifying an even but non-macroblock-aligned input size (e.g., 1922x1082), the renderer can force a scenario where the hardware encoder MFT expects alignment (e.g., 1936x1088) and reports cbSize > AllocationSize.
  3. The renderer then submits a CPU-backed frame for encoding.
  4. When PopulateInputSampleBuffer executes, the hardware encoder processes the input buffer, reading and compressing the uninitialized tail padding according to its internal layout requirements, and incorporates this data into the compressed H.264/HEVC/AV1 stream.
  5. The compressed stream containing the leaked GPU process memory is returned to the renderer via BitstreamBufferReady. Since a new IMFSample can be created for every frame, an attacker could continuously sample distinct GPU-process heap regions over time.

Suggested Fix

To prevent this information disclosure, the allocated buffer should be zero-initialized immediately after creation to ensure no stale heap memory is leaked. Alternatively, the unused trailing region should be explicitly zeroed before calling ConvertAndScale():

C++
MediaBufferScopedPointer scoped_buffer(input_buffer.Get());
std::span<uint8_t> buffer_span = scoped_buffer.as_span();
size_t written_size = dst_y_size + dst_uv_size;
if (buffer_span.size() > written_size) {
  std::fill(buffer_span.begin() + written_size, buffer_span.end(), 0);
}

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.

How it worked

Root cause

The code sets the buffer's active length to the encoder's reported minimum size without ensuring that the entire buffer is initialized, so trailing bytes remain uninitialized when the encoder reads them.

Impact

An attacker could potentially leak GPU process heap memory by continuously sampling distinct regions over time, though the report notes that no working proof of concept was executed.

What the attacker needed

Windows GPU process; Renderer access via WebCodecs or WebRTC; No user permission required

The fix

The allocated buffer should be zero-initialized immediately after creation, or the unused trailing region should be explicitly zeroed before calling ConvertAndScale().

How it was found

  1. An unprivileged renderer accesses the vulnerable path via WebCodecs or WebRTC APIs.
  2. The renderer specifies an even but non-macroblock-aligned input size to force the encoder to report a larger minimum size.
  3. The renderer submits a CPU-backed frame for encoding.
  4. The encoder processes the input buffer, reading and compressing the uninitialized tail padding.
  5. The compressed stream containing leaked GPU process memory is returned to the renderer.

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 video encoder asks for a buffer of a certain size, the code allocates that much memory but only fills part of it with actual video data. The rest is left as whatever was previously in memory, which could be sensitive. The encoder then treats the whole buffer as valid and compresses the leftover data into the video file, so someone could see bits of memory they shouldn't.

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.