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

Type Confusion in GPU (CVE-2026-11052)

A type confusion in the GPU process allows a compromised renderer to cause an out-of-bounds read and potentially an arbitrary memory write. The flaw arises because a non-shared-memory backing is incorrectly marked as supporting memory access, leading to an unchecked cast.

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. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the security team.

Overview: When CompoundImageBacking wraps a non-SHM backing, it incorrectly flags the backing as supporting kMemory. A subsequent call to GetSharedMemoryPixmaps results in an unchecked static_cast to SharedMemoryImageBacking*, causing an out-of-bounds read that can be leveraged for an arbitrary memory write in the GPU process.

Affected files:

  • gpu/command_buffer/service/shared_image/compound_image_backing.cc
  • gpu/command_buffer/service/shared_image/shared_memory_image_backing.h
  • gpu/command_buffer/service/shared_image/wrapped_graphite_texture_backing.cc

Estimated timestamp from git blame: 2026-02-26

Summary

A potential type confusion vulnerability exists in CompoundImageBacking::GetSharedMemoryPixmaps due to incorrect initialization in the WrapExternalBacking path. When a non-SharedMemoryImageBacking (such as a WrappedGraphiteTextureBacking) is wrapped, it is incorrectly marked as supporting SharedImageAccessStream::kMemory. Subsequent calls to GetSharedMemoryPixmaps perform an unchecked static_cast to SharedMemoryImageBacking*, leading to an out-of-bounds read. By grooming the GPU process heap, a compromised renderer could exploit this out-of-bounds read to forge a std::vector<SkPixmap> object and achieve an arbitrary memory write in the GPU process.

Vulnerability Details

  1. Incorrect Initialization: In gpu/command_buffer/service/shared_image/compound_image_backing.cc, the CompoundImageBacking constructor used by WrapExternalBacking (lines 947-997) initializes the wrapped backing's access streams with element.access_streams = AccessStreamSet::All() (line 982). This incorrectly includes SharedImageAccessStream::kMemory, regardless of the actual backing type.

  2. Type Confusion: The method GetShmElement() returns the first element whose access_streams contains kMemory. Due to the incorrect initialization, this returns the wrapped non-SHM backing. The method GetSharedMemoryPixmaps() then performs a static_cast<SharedMemoryImageBacking*> on this element (line 1605) and calls .pixmaps().

  3. Out-of-Bounds Read: Because SharedMemoryImageBacking is larger than a backing like WrappedGraphiteTextureBacking (by roughly 120-180 bytes depending on the platform), the access to the pixmaps_ member at the end of the class layout results in reading memory past the end of the actual object allocation.

Potential Exploitation Scenario

The following is a theoretical exploitation path, as we have not executed a full proof-of-concept:

  1. Heap Grooming: A compromised renderer process grooms the GPU process heap to place a fake std::vector<SkPixmap> structure immediately adjacent to where a new WrappedGraphiteTextureBacking will be allocated. This fake vector points to fake SkPixmap objects with attacker-controlled destination addresses in their fPixels (writable_addr()) members.
  2. Backing Creation: The renderer requests a non-SHM SharedImage. The GPU process allocates a WrappedGraphiteTextureBacking, which is then wrapped by CompoundImageBacking::WrapExternalBacking (due to the kUseCompoundImageBackingAsDefault feature).
  3. State Invalidation: The renderer accesses the SharedImage via a stream (e.g., kGL) that triggers a dynamic backing allocation (due to the kUseDynamicBackingAllocations feature). Writing to this new backing makes the original "SHM" element stale.
  4. Trigger IPC: The renderer calls the Windows-specific Mojo IPC GpuChannel::CopyToGpuMemoryBufferAsync.
  5. Arbitrary Write: CompoundImageBacking::CopyToGpuMemoryBufferAsync detects the stale SHM element, retrieves the new GPU backing, and calls GetSharedMemoryPixmaps(). This triggers the type confusion and out-of-bounds read, returning a reference to the attacker's fake std::vector. This reference is passed to gpu_backing->ReadbackToMemoryAsync(). The underlying implementation (e.g., GLTextureImageBacking::ReadbackToMemory) iterates over the fake vector and executes a readback (like glReadPixels) to the attacker-specified memory addresses, resulting in a controlled memory write in the GPU process.

Note: MiraclePtr (BRP) does not mitigate this issue, as the vulnerability relies on an unchecked static_cast causing a deterministic memory offset read, rather than out-of-bounds indexing on a protected raw_ptr.

Suggested Fix

The initialization in CompoundImageBacking should be updated to ensure kMemory is not blindly added to access_streams for backings that do not genuinely support it. Additionally, GetSharedMemoryPixmaps() could be fortified by replacing the static_cast with a type check or a dynamic cast to ensure the underlying backing is indeed a SharedMemoryImageBacking before accessing its members.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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

The constructor for CompoundImageBacking incorrectly sets the access streams of a wrapped backing to include kMemory regardless of the backing's actual type, and GetSharedMemoryPixmaps performs an unchecked static_cast assuming the backing is a SharedMemoryImageBacking.

Impact

A compromised renderer could exploit this to achieve an arbitrary memory write in the GPU process, potentially leading to further compromise, though the report notes this is a theoretical path not yet proven with a full proof-of-concept.

What the attacker needed

Compromised renderer process; Windows platform; features kUseCompoundImageBackingAsDefault and…

The fix

The initialization should be updated to not blindly add kMemory to access streams for backings that do not support it, and GetSharedMemoryPixmaps should use a type check or dynamic cast instead of an unchecked static_cast.

How it was found

  1. A compromised renderer grooms the GPU process heap to place a fake vector structure adjacent to where a new backing will be allocated.
  2. The renderer requests a non-SHM SharedImage, causing the GPU process to allocate a backing that is then wrapped by CompoundImageBacking.
  3. The renderer accesses the SharedImage via a stream that triggers a dynamic backing allocation, making the original element stale.
  4. The renderer calls the Windows-specific Mojo IPC GpuChannel::CopyToGpuMemoryBufferAsync.
  5. CompoundImageBacking::CopyToGpuMemoryBufferAsync detects the stale element and calls GetSharedMemoryPixmaps(), triggering the type confusion and out-of-bounds read.
  6. The resulting fake vector is passed to ReadbackToMemoryAsync, which writes to attacker-specified memory addresses.

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.

This report describes a bug in a graphics component where the code confuses two different types of objects. A malicious program running in a less privileged part of the browser could trick the graphics process into reading and writing memory it shouldn't, potentially taking control. The bug is in how the code checks what kind of object it is handling.

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.