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.ccgpu/command_buffer/service/shared_image/shared_memory_image_backing.hgpu/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
-
Incorrect Initialization: In
gpu/command_buffer/service/shared_image/compound_image_backing.cc, theCompoundImageBackingconstructor used byWrapExternalBacking(lines 947-997) initializes the wrapped backing's access streams withelement.access_streams = AccessStreamSet::All()(line 982). This incorrectly includesSharedImageAccessStream::kMemory, regardless of the actual backing type. -
Type Confusion: The method
GetShmElement()returns the first element whoseaccess_streamscontainskMemory. Due to the incorrect initialization, this returns the wrapped non-SHM backing. The methodGetSharedMemoryPixmaps()then performs astatic_cast<SharedMemoryImageBacking*>on this element (line 1605) and calls.pixmaps(). -
Out-of-Bounds Read: Because
SharedMemoryImageBackingis larger than a backing likeWrappedGraphiteTextureBacking(by roughly 120-180 bytes depending on the platform), the access to thepixmaps_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:
- Heap Grooming: A compromised renderer process grooms the GPU process heap to place a fake
std::vector<SkPixmap>structure immediately adjacent to where a newWrappedGraphiteTextureBackingwill be allocated. This fake vector points to fakeSkPixmapobjects with attacker-controlled destination addresses in theirfPixels(writable_addr()) members. - Backing Creation: The renderer requests a non-SHM SharedImage. The GPU process allocates a
WrappedGraphiteTextureBacking, which is then wrapped byCompoundImageBacking::WrapExternalBacking(due to thekUseCompoundImageBackingAsDefaultfeature). - State Invalidation: The renderer accesses the SharedImage via a stream (e.g.,
kGL) that triggers a dynamic backing allocation (due to thekUseDynamicBackingAllocationsfeature). Writing to this new backing makes the original "SHM" element stale. - Trigger IPC: The renderer calls the Windows-specific Mojo IPC
GpuChannel::CopyToGpuMemoryBufferAsync. - Arbitrary Write:
CompoundImageBacking::CopyToGpuMemoryBufferAsyncdetects the stale SHM element, retrieves the new GPU backing, and callsGetSharedMemoryPixmaps(). This triggers the type confusion and out-of-bounds read, returning a reference to the attacker's fakestd::vector. This reference is passed togpu_backing->ReadbackToMemoryAsync(). The underlying implementation (e.g.,GLTextureImageBacking::ReadbackToMemory) iterates over the fake vector and executes a readback (likeglReadPixels) 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.
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
- A compromised renderer grooms the GPU process heap to place a fake vector structure adjacent to where a new backing will be allocated.
- The renderer requests a non-SHM SharedImage, causing the GPU process to allocate a backing that is then wrapped by CompoundImageBacking.
- The renderer accesses the SharedImage via a stream that triggers a dynamic backing allocation, making the original element stale.
- The renderer calls the Windows-specific Mojo IPC GpuChannel::CopyToGpuMemoryBufferAsync.
- CompoundImageBacking::CopyToGpuMemoryBufferAsync detects the stale element and calls GetSharedMemoryPixmaps(), triggering the type confusion and out-of-bounds read.
- 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.