Insufficient validation of untrusted input in Media (CVE-2026-9985)
The GPU process on ChromeOS ARM did not check the real size of renderer-supplied DMA-BUF buffers before importing them into a private GL context. A compromised renderer could supply an undersized buffer with large claimed dimensions, causing an out-of-bounds read of GPU memory that could be leaked back through the hardware video encoder's output.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 14 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 Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: GLImageProcessorBackend on ChromeOS ARM fails to validate the actual size of renderer-supplied DMA-BUF file descriptors before importing them into a private GL context. A compromised renderer could exploit this by providing an undersized DMA-BUF with large claimed dimensions, leading to an out-of-bounds read of GPU memory. The leaked memory can then be exfiltrated through the hardware video encoder's output bitstream.
Affected files:
media/gpu/chromeos/gl_image_processor_backend.ccui/gfx/linux/client_native_pixmap_factory_dmabuf.ccmedia/gpu/v4l2/v4l2_video_encode_accelerator.ccui/ozone/common/native_pixmap_egl_binding.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Technical Details
A potential security vulnerability has been identified in the GPU process on ChromeOS ARM platforms, specifically within the GLImageProcessorBackend component used for hardware-accelerated video frame scaling and conversion.
-
Vulnerability Mechanism: When a renderer sends a
VideoFrameto the GPU process (e.g., for encoding viamedia::MojoVideoEncodeAcceleratorService), the frame is deserialized using Mojo traits. If the frame usesSharedImageVideoFrameData, the GPU process attempts to import the underlying buffer handle. -
Validation Bypass: The import process involves
ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc. The code performs a check on thegfx::BufferUsageof the handle. Crucially, for usages that do not require CPU access (such asgfx::BufferUsage::GPU_READorgfx::BufferUsage::SCANOUT), the factory skips the physical size validation of the file descriptor (which is typically done vialseek(fd, 0, SEEK_END)). Instead, it returns aClientNativePixmapOpaque(lines 125-131). -
OOB Read in GLImageProcessorBackend: On ARM devices, the
V4L2VideoEncodeAcceleratormay useGLImageProcessorBackendto perform NV12 scaling. The backend creates a private GL context withattribs.can_skip_validation = true(media/gpu/chromeos/gl_image_processor_backend.cc, line 285). It then imports the renderer-supplied buffer into this context as anEGLImageusing the dimensions and strides provided in the Mojo message, which have not been verified against the actual size of the DMA-BUF FD. -
Information Disclosure: When the backend executes a GL draw call to scale the image, the GPU samples from the texture. Because the actual buffer is significantly smaller than the claimed dimensions, the GPU driver performs out-of-bounds reads from adjacent GPU memory. This leaked memory is written into the output frame, which is subsequently processed by the hardware video encoder. The resulting compressed bitstream is returned to the renderer, allowing the attacker to exfiltrate the leaked data.
Potential Steps to Trigger
Note: These steps are based on a code-level analysis and have not been verified with a live proof-of-concept.
- Renderer Compromise: Gain code execution in a renderer process.
- Buffer Forgery: Create a small DMA-BUF (e.g., 1 KB) but prepare a
SharedImagemetadata claim with large dimensions (e.g., 1920x1080) and set the usage toGPU_READ. - VEA Initialization: Connect to the
media.mojom.VideoEncodeAcceleratorProviderand initialize a hardware-accelerated encoder instance. - Frame Submission: Submit the forged
VideoFrameto the encoder via theEncode()Mojo method. - Data Collection: Monitor the output bitstreams. If the backend triggers a GL-based conversion, the bitstream will contain the results of the OOB read.
Suggested Fix
All DMA-BUF imports in the GPU process should include a validation step that compares the actual file descriptor size (via fstat or lseek) against the claimed dimensions, format, offsets, and strides. The validation logic in ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc should be expanded to cover GPU_READ and SCANOUT usages when those buffers are destined for GL/EGL import in contexts where driver-side validation is disabled or insufficient.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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.
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 DMA-BUF import path skipped physical size validation for GPU_READ and SCANOUT usages, and the GL image processor then imported the buffer with can_skip_validation set, so claimed dimensions were never checked against the real file descriptor size.
Impact
A compromised renderer could read out-of-bounds GPU memory and exfiltrate it through the hardware video encoder's output bitstream, though the report notes the steps are based on code analysis and have not been verified with a live proof-of-concept.
What the attacker needed
Code execution in a renderer process; ChromeOS on ARM; hardware video encoder available
The fix
All DMA-BUF imports in the GPU process should validate the actual file descriptor size against the claimed dimensions, format, offsets and strides, including for GPU_READ and SCANOUT usages.
How it was found
- Gain code execution in a renderer process.
- Create a small DMA-BUF but claim large dimensions and GPU_READ usage.
- Connect to the video encode accelerator provider and initialise a hardware encoder.
- Submit the forged VideoFrame to the encoder via the Encode method.
- Monitor the output bitstreams for leaked data from the out-of-bounds read.
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 renderer is the part of the browser that runs web pages, and it is treated as untrusted. It can hand the GPU process a buffer (a block of memory) and claim it is a certain size. Here the GPU process trusted the claimed size instead of measuring the real buffer, so it read past the end of the small buffer and could send the extra memory back to the attacker.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.