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

Uninitialized Use in Media (CVE-2026-11089)

A function that converts video frames to NV12 format uses floor division for the UV plane size while buffer allocation uses ceil semantics, leaving edge bytes uninitialized. A compromised renderer could obtain those uninitialized bytes through the encoded video output, potentially bypassing ASLR or leaking cross-process data.

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 potential vulnerability in media::internals::MergeUV allows a compromised renderer to leak uninitialized GPU or Mediaserver memory. When converting video frames with odd dimensions to NV12, MergeUV uses floor division for UV plane size while allocations use ceil semantics, resulting in uninitialized edge bytes being encoded into the output.

Affected files:

  • media/base/video_frame_converter_internals.cc
  • media/base/video_frame_converter.cc
  • media/gpu/windows/mf_video_encoder_shared_state.cc
  • media/gpu/android/ndk_video_encode_accelerator.cc

Estimated timestamp from git blame: 2024-05-13

Vulnerability Summary

A potential memory leak exists in media::internals::MergeUV. When converting frames with odd dimensions to NV12 format, the function under-writes the UV plane. The underlying uninitialized memory (from GPU or mediaserver heaps) is subsequently encoded by hardware video encoders and returned to the renderer, allowing an attacker to bypass ASLR or steal sensitive cross-process data.

Vulnerability Details

Initial logic and parameters are validated when a compromised renderer initializes a VideoEncodeAccelerator with odd dimensions (e.g., 1001x1001). Standard processing is applied to establish the Mojo IPC and hardware codec setup, leading directly to the VideoFrameConverter when scaling is required.

The core vulnerability is located in media/base/video_frame_converter_internals.cc. The NV12 format requires U and V planes to be subsampled by a factor of 2. For an odd dimension like 1001, the buffer allocation calculates the required size using ceil semantics (e.g., VideoFrame::Rows yields 501 rows). However, MergeUV uses floor division:

C++
// From media/base/video_frame_converter_internals.cc
libyuv::MergeUVPlane(src_u, src_u_stride, src_v, src_v_stride,
                     dest_uv, dest_uv_stride,
                     dest.visible_rect().width() / 2,   // Floor division
                     dest.visible_rect().height() / 2); // Floor division

For a 1001x1001 frame, this writes 500x500 chroma samples. The 501st row and the trailing columns remain unwritten. Because the backing buffers (such as those from Android's AMediaCodec_getInputBuffer or Windows' MFCreateAlignedMemoryBuffer) are typically uninitialized, these edge pixels retain stale data. The hardware encoder compresses the full 501x501 UV plane into the H.264/HEVC/VP9 bitstream, leaking the uninitialized memory to the renderer process.

Potential Attack Steps

Note: These are suggested steps; our tooling does not yet have the ability to run code.

  1. A compromised renderer initializes media.mojom.VideoEncodeAccelerator with a Config using odd dimensions (e.g., input_visible_size = {1001, 1001}).
  2. Standard processing occurs to allocate the input buffers for the hardware encoder. These buffers contain uninitialized GPU/mediaserver heap memory.
  3. The renderer submits a VideoFrame where the visible_rect slightly differs from the coded_size, forcing the GPU process to route the frame through VideoFrameConverter::ConvertAndScale.
  4. MergeUV interleaves the U and V planes but stops one row/column short due to the floor division.
  5. The hardware encoder reads the entire buffer, including the unwritten edge pixels, and encodes the uninitialized memory into the video bitstream.
  6. The compromised renderer decodes the returned bitstream and recovers the leaked bytes from the edge macroblocks.

Proposed Fix

Update MergeUV in media/base/video_frame_converter_internals.cc to use ceil semantics, aligning with the allocation logic in VideoFrame. For example:

C++
                     (dest_frame.visible_rect().width() + 1) / 2,
                     (dest_frame.visible_rect().height() + 1) / 2);

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 a mismatch between the buffer allocation size (using ceil division) and the number of samples written by MergeUV (using floor division), leaving the final row and column uninitialized.

Impact

A compromised renderer could leak uninitialised GPU or mediaserver memory, potentially bypassing ASLR or stealing sensitive cross-process data.

What the attacker needed

Compromised renderer process; hardware video encoder available; odd frame dimensions

The fix

MergeUV should be updated to use ceil semantics, matching the allocation logic in VideoFrame.

How it was found

  1. A compromised renderer initialises the video encode accelerator with odd dimensions.
  2. Input buffers for the hardware encoder are allocated, containing uninitialised memory.
  3. The renderer submits a frame whose visible rectangle differs from the coded size, forcing conversion.
  4. MergeUV interleaves the U and V planes but stops one row and column short.
  5. The hardware encoder reads the whole buffer, including the unwritten edge pixels.
  6. The renderer decodes the returned bitstream and recovers the leaked bytes.

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 frame is converted to a format called NV12, the colour information is stored at half the resolution of the brightness information. For odd frame sizes, the code that fills in the colour information stops one row and one column short, so the last few bytes are never written. Those bytes contain whatever was left in memory from other programs, and the video encoder then includes them in the output, which the attacker can read.

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.