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.ccmedia/mojo/mojom/video_frame_mojom_traits.ccmedia/mojo/services/mojo_video_encode_accelerator_service.ccmedia/gpu/chromeos/platform_video_frame_utils.ccmedia/gpu/buffer_validation.ccui/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
- Deserialization bypasses validation: In
media/mojo/mojom/video_frame_mojom_traits.cc, when aVideoFrameis deserialized and hits theis_shared_image_data()path, it extracts anExportedSharedImageand callsVideoFrame::WrapMappableSharedImage. Inmedia/base/video_frame.cc, this function blindly copies thestride,offset, andsizefrom theGpuMemoryBufferHandle'sNativePixmapHandleinto the frame'sColorPlaneLayout. Crucially, it never compares these values against the actual physical size of the DMA buffer FD, unlike themedia::GetFileSizecheck performed in theis_dmabuf_data()path. - Encode size check bypassed: In
media/mojo/services/mojo_video_encode_accelerator_service.cc,MojoVideoEncodeAcceleratorService::Encodeexplicitly bypassescoded_sizeconsistency checks if the frame is aMappableSharedImage(!frame->HasMappableSharedImage() && !frame->HasSharedImage()). - Ineffective defense-in-depth: Later in the pipeline,
CreateNativePixmapDmaBuf(inmedia/gpu/chromeos/platform_video_frame_utils.cc) callsCreateGpuMemoryBufferHandle, which invokesVerifyGpuMemoryBufferHandle. While this function correctly checks the dmabuf size usingGetFileSize, it is entirely wrapped in an#if DCHECK_IS_ON()block, leaving release builds unprotected. Furthermore, even in debug builds, a failure only triggers aDLOG_IF(WARNING)and does not reject the invalid handle. - Driver exploitation: The frame reaches
VaapiVideoEncodeAccelerator::CreateSurfacesForMappableSIEncoding, which extracts the unvalidatedNativePixmapand passes it toVaapiWrapper::CreateVASurfaceForPixmap. Inmedia/gpu/vaapi/vaapi_wrapper.cc(FillVADRMPRIMESurfaceDescriptor), the code queries the true dmabuf size vialseek(dma_buf_fd, 0, SEEK_END). However, it still blindly copies the attacker-controlledwidth,height,pitch(stride), andoffsetinto theVADRMPRIMESurfaceDescriptorand passes it tovaCreateSurfaces.
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.
- Compromise the Renderer: An attacker first gains arbitrary code execution in the Renderer process.
- Allocate a small buffer: The attacker allocates a legitimately sized, small DMA buffer.
- Forge Mojo Metadata: The attacker constructs a malicious
media::mojom::VideoFrameusing theSharedImageVideoFrameDatapath. They embed the valid FD but forge theExportedSharedImagemetadata to contain a massivecoded_size, along with enormousstrideandoffsetvalues for the planes. - Trigger Video Encode: The attacker sends this frame to the GPU process via WebRTC or WebCodecs hardware encoding paths (
media::mojom::VideoEncodeAccelerator::Encode). - 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.
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
- Gain arbitrary code execution in the renderer process.
- Allocate a small, legitimately sized DMA buffer.
- Build a video frame message using the SharedImage path with the valid file descriptor but forged large coded size, stride and offset values.
- Send the frame to the GPU process through a hardware video encoding path.
- 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.