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

Insufficient validation of untrusted input in Media (CVE-2026-10911)

The GPU process fails to validate dimensions, strides and offsets of a DMA buffer supplied by a compromised renderer through the SharedImage video frame path. An attacker with renderer code execution could forge oversized metadata and cause out-of-bounds memory access in a VA-API driver, potentially escaping the GPU sandbox.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A compromised renderer can supply inconsistent dmabuf dimensions and strides via SharedImageVideoFrameData during video encoding. The GPU process fails to validate these dimensions against the actual dmabuf file size in release builds before passing them to the VA-API driver. This can lead to out-of-bounds memory access by the driver or GPU hardware, potentially allowing a GPU sandbox escape.

Affected files:

  • media/gpu/vaapi/vaapi_wrapper.cc
  • media/mojo/mojom/video_frame_mojom_traits.cc
  • media/mojo/services/mojo_video_encode_accelerator_service.cc
  • media/gpu/chromeos/platform_video_frame_utils.cc
  • media/gpu/buffer_validation.cc
  • ui/gfx/mojom/native_handle_types_mojom_traits.cc

Estimated timestamp from git blame: 2026-01-21

Description

There is a potential vulnerability in the GPU process where it fails to properly validate the dimensions, strides, and offsets of a DMA buffer (dmabuf) provided by the renderer via a SharedImageVideoFrameData Mojo message. While the is_dmabuf_data deserialization path rigorously checks that the provided planes fit within the actual file descriptor size, the is_shared_image_data path lacks these critical checks.

This allows a compromised renderer to pass a small, valid dmabuf but forge excessively large stride, offset, and dimension metadata. This metadata propagates through the media stack and is ultimately passed to third-party VA-API drivers (such as Intel iHD or Mesa Gallium) via vaCreateSurfaces. If the driver or GPU hardware trusts these dimensions, it will perform out-of-bounds memory accesses, potentially leading to memory corruption within the GPU process and a renderer-to-GPU sandbox escape.

Technical Details

  1. Deserialization bypasses validation: In media/mojo/mojom/video_frame_mojom_traits.cc, when a VideoFrame is deserialized and hits the is_shared_image_data() path, it extracts an ExportedSharedImage and calls VideoFrame::WrapMappableSharedImage. In media/base/video_frame.cc, this function blindly copies the stride, offset, and size from the GpuMemoryBufferHandle's NativePixmapHandle into the frame's ColorPlaneLayout. Crucially, it never compares these values against the actual physical size of the DMA buffer FD, unlike the media::GetFileSize check performed in the is_dmabuf_data() path.
  2. Encode size check bypassed: In media/mojo/services/mojo_video_encode_accelerator_service.cc, MojoVideoEncodeAcceleratorService::Encode explicitly bypasses coded_size consistency checks if the frame is a MappableSharedImage (!frame->HasMappableSharedImage() && !frame->HasSharedImage()).
  3. Ineffective defense-in-depth: Later in the pipeline, CreateNativePixmapDmaBuf (in media/gpu/chromeos/platform_video_frame_utils.cc) calls CreateGpuMemoryBufferHandle, which invokes VerifyGpuMemoryBufferHandle. While this function correctly checks the dmabuf size using GetFileSize, it is entirely wrapped in an #if DCHECK_IS_ON() block, leaving release builds unprotected. Furthermore, even in debug builds, a failure only triggers a DLOG_IF(WARNING) and does not reject the invalid handle.
  4. Driver exploitation: The frame reaches VaapiVideoEncodeAccelerator::CreateSurfacesForMappableSIEncoding, which extracts the unvalidated NativePixmap and passes it to VaapiWrapper::CreateVASurfaceForPixmap. In media/gpu/vaapi/vaapi_wrapper.cc (FillVADRMPRIMESurfaceDescriptor), the code queries the true dmabuf size via lseek(dma_buf_fd, 0, SEEK_END). However, it still blindly copies the attacker-controlled width, height, pitch (stride), and offset into the VADRMPRIMESurfaceDescriptor and passes it to vaCreateSurfaces.

Potential Attacker Steps

Note: Fortify LLM agent does not currently have the ability to run code, so these are suggested steps to trigger the vulnerability based on static analysis.

  1. Compromise the Renderer: An attacker first gains arbitrary code execution in the Renderer process.
  2. Allocate a small buffer: The attacker allocates a legitimately sized, small DMA buffer.
  3. Forge Mojo Metadata: The attacker constructs a malicious media::mojom::VideoFrame using the SharedImageVideoFrameData path. They embed the valid FD but forge the ExportedSharedImage metadata to contain a massive coded_size, along with enormous stride and offset values for the planes.
  4. Trigger Video Encode: The attacker sends this frame to the GPU process via WebRTC or WebCodecs hardware encoding paths (media::mojom::VideoEncodeAccelerator::Encode).
  5. Achieve OOB Access: The GPU process accepts the frame, bypasses dimension checks, and instructs the VA-API driver to create a surface using the massive dimensions backed by the small FD. The driver configures the GPU (or uses a CPU fallback) to process the frame, resulting in an out-of-bounds read/write into GPU process memory, which can be leveraged for a sandbox escape.

Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8


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. Please feel free to reach out to me if you have concerns or feedback.

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 SharedImage deserialisation path copies stride, offset and size from the renderer-supplied native handle without comparing them to the actual DMA buffer file size, unlike the dmabuf path.

Impact

A compromised renderer could cause out-of-bounds memory access in the GPU process and potentially escape the GPU sandbox, though the report is based on static analysis and has not been demonstrated.

What the attacker needed

Code execution in the renderer process; hardware video encoding available

The fix

The SharedImage path should validate plane dimensions, strides and offsets against the real DMA buffer file size, and the existing size check should reject invalid handles in release builds rather than only logging in debug builds.

How it was found

  1. Gain arbitrary code execution in the renderer process.
  2. Allocate a small, legitimately sized DMA buffer.
  3. Build a video frame message using the SharedImage path with the valid file descriptor but forged large coded size, stride and offset values.
  4. Send the frame to the GPU process through a hardware video encoding path.
  5. The GPU process accepts the frame and passes the forged dimensions to the VA-API driver, causing out-of-bounds access.

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 web browser splits work into processes: a renderer draws pages and a GPU process talks to graphics hardware. A DMA buffer is a block of memory shared with the graphics driver. Here the GPU process trusted size numbers sent by the renderer without checking them against the real buffer size, so a malicious renderer could make the driver read or write outside the buffer.

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.