Insufficient validation of untrusted input in GPU (CVE-2026-9898)
The GPU process fails to validate Vulkan YCbCr conversion parameters received from the renderer via IPC, allowing a compromised renderer to send out-of-bounds enum values that are passed directly to the Vulkan driver. This can potentially trigger out-of-bounds memory access within the driver, leading to a GPU sandbox escape.
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: The GPU process fails to validate Vulkan YCbCr conversion parameters received from the renderer via IPC. A compromised renderer can send out-of-bounds enum values that are passed directly to the Vulkan driver via Dawn or Skia. This can potentially trigger out-of-bounds memory access within the driver, leading to a GPU sandbox escape.
Affected files:
gpu/ipc/common/vulkan_ycbcr_info_mojom_traits.hgpu/command_buffer/service/shared_image/shared_image_format_service_utils.cccomponents/viz/service/display_embedder/skia_output_surface_impl.cc
Estimated timestamp from git blame: 2019-08-13
Description
There is a potential sandbox escape vulnerability where a compromised Renderer process can send out-of-bounds Vulkan enum values to the GPU process via IPC. When these values are passed to the underlying Vulkan driver, they can cause undefined behavior (such as out-of-bounds array indexing), potentially allowing the attacker to execute arbitrary code within the highly privileged GPU process.
Root Cause
The gpu.mojom.VulkanYCbCrInfo Mojo struct defines Vulkan enum parameters (like suggested_ycbcr_model and suggested_ycbcr_range) as opaque uint32 and uint64 fields instead of strongly-typed Mojo enums. Consequently, Mojo's automatic enum validation is bypassed.
During deserialization in the GPU process, StructTraits<gpu::mojom::VulkanYCbCrInfoDataView, gpu::VulkanYCbCrInfo>::Read (gpu/ipc/common/vulkan_ycbcr_info_mojom_traits.h) unconditionally copies these raw integer values into the C++ gpu::VulkanYCbCrInfo struct without any bounds checking.
Vulnerable Code Path
- A compromised renderer embeds a malicious
gpu::VulkanYCbCrInfoinside aviz::TransferableResourceand sends it to the Viz service in the GPU process. - In Viz, when compositing on Android with the Graphite/Dawn backend,
SkiaOutputSurfaceImpl::MakePromiseSkImageSinglePlaneis called to sample the texture. - The unvalidated
ycbcr_infois passed togpu::GraphitePromiseTextureInfo, which callsToDawnYCbCrVkDescriptor(gpu/command_buffer/service/shared_image/shared_image_format_service_utils.cc). - The raw
uint32_tvalues are copied directly into awgpu::YCbCrVkDescriptor. - Dawn processes this descriptor in
dawn::native::vulkan::CreateSamplerYCbCrConversionCreateInfo(third_party/dawn/src/dawn/native/vulkan/UtilsVulkan.cpp). It blindlystatic_casts the out-of-bounds integers to Vulkan enums (e.g.,VkSamplerYcbcrModelConversion) and passes them to thevkCreateSamplerYcbcrConversionVulkan API call. - Note: The Ganesh path is similarly vulnerable via
gpu::CreateVulkanYcbcrConversionInfoingpu/command_buffer/service/skia_utils.cc.
Production Vulkan drivers typically lack robust bounds checking for API enums due to performance reasons. Passing invalid enums is known to cause drivers to perform out-of-bounds array reads or writes when looking up internal formats or conversion matrices.
Potential Attacker Steps
Note: These are potential steps to trigger the vulnerability, as this AI agent does not currently have the capability to execute code or build a working Proof of Concept.
- Achieve arbitrary code execution within the Renderer process sandbox.
- Craft a malicious
viz::CompositorFramecontaining aviz::TransferableResource. - Populate the
ycbcr_infometadata field of theTransferableResource. - Set the underlying
uint32_tfields (e.g.,suggested_ycbcr_model,suggested_ycbcr_range,suggested_xchroma_offset,suggested_ychroma_offset) to extremely large values (e.g.,0xFFFFFFFF) that do not correspond to valid Vulkan enums. - Submit the
CompositorFrameto the Viz compositor in the GPU process via the standard Mojo IPC channel. - The GPU process will deserialize the frame, pass the malicious enums to the Vulkan driver, and trigger an out-of-bounds memory access, which the attacker can shape to achieve remote code execution in the GPU process.
Suggested Fix
Implement strict validation for all fields in gpu::VulkanYCbCrInfo when they cross the IPC boundary.
Modify StructTraits<gpu::mojom::VulkanYCbCrInfoDataView, gpu::VulkanYCbCrInfo>::Read in gpu/ipc/common/vulkan_ycbcr_info_mojom_traits.h to verify that each uint32_t value corresponds to a valid and supported Vulkan enum constant (e.g., checking against the maximum valid enum values for VkSamplerYcbcrModelConversion, VkSamplerYcbcrRange, etc.). If any value is out of bounds, the Read function should return false to reject the IPC message and terminate the misbehaving renderer.
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
The Mojo struct defines Vulkan enum parameters as plain integers instead of strongly-typed enums, so Mojo's automatic validation is bypassed and the GPU process copies the raw values without bounds checking.
Impact
A compromised renderer could potentially trigger out-of-bounds memory access in the Vulkan driver, leading to a GPU sandbox escape and arbitrary code execution within the highly privileged GPU process.
What the attacker needed
Compromised renderer process; Android with Graphite/Dawn backend; Vulkan driver lacking bounds checks
The fix
The Read function should validate that each uint32_t value corresponds to a valid Vulkan enum constant and reject the IPC message if any value is out of bounds.
How it was found
- Achieve arbitrary code execution within the Renderer process sandbox.
- Craft a malicious CompositorFrame containing a TransferableResource.
- Populate the ycbcr_info metadata field of the TransferableResource.
- Set the underlying uint32_t fields to extremely large values that do not correspond to valid Vulkan enums.
- Submit the CompositorFrame to the Viz compositor in the GPU process via the standard Mojo IPC channel.
- The GPU process deserializes the frame, passes the malicious enums to the Vulkan driver, and triggers an out-of-bounds memory 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 separates its code into processes: a renderer (which runs web pages) and a GPU process (which handles graphics). The renderer can send messages to the GPU process. This report says the GPU process does not check some numbers in those messages, so a compromised renderer could send bad numbers that confuse the graphics driver and possibly let an attacker escape the renderer's security sandbox.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.