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

Out of bounds read in GPU (CVE-2026-6920)

A compromised renderer could call DestroyCommandBuffer with route 0 to erase the reserved shared image interface route from the GPU channel's route map. A later FlushDeferredRequests call while the app is backgrounded then dereferences an invalid iterator, causing an out-of-bounds read.

tatiwari Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 17 days

Hello, for some prior context - our team has been experimenting with LLM powered security audits, and this is one of the reports. The bug is triggerable on Android, but due to lack of h/w I've added a unit-test which simulates the issue and showcases the bug.


A compromised renderer can call DestroyCommandBuffer(route_id=0) via Mojo to erase the reserved kSharedImageInterface route from the GPU channel's route_sequences_ map. A subsequent FlushDeferredRequests call while the application is backgrounded then dereferences end() on the route map, producing undefined behavior (shows up as out-of-bounds read under ASan).

Version

Validated on 18c701fd5a8a8, latest main at the time of reporting; The bug is reachable only on Android.

Issue

Two independent bugs combine:

Part 1: RemoveRoute called unconditionally in DestroyCommandBuffer

C++
// gpu/ipc/service/gpu_channel.cc
void GpuChannel::DestroyCommandBuffer(int32_t route_id) {
  auto it = stubs_.find(route_id);
  if (it != stubs_.end()) {       // route 0 NOT in stubs_ -> skipped
    stub = std::move(it->second);
    stubs_.erase(it);
  }
  // ...
  RemoveRoute(route_id);          // <- UNCONDITIONAL: erases route 0
}

kSharedImageInterface (route 0) is a reserved route registered via AddRoute() in CreateSharedImageStub(), but it is NOT a command buffer stub in stubs_. A renderer calling DestroyCommandBuffer(0) skips the stub guard but still calls RemoveRoute(0), erasing the route from route_sequences_.

Part 2: Missing end() check in FlushDeferredRequests

Note: OnApplicationBackgrounded() is not renderer-reachable, and requires the app to send this notification to set application_backgrounded() to true

C++
// gpu/ipc/service/gpu_channel.cc - FlushDeferredRequests
if (gpu_channel_->gpu_channel_manager()->application_backgrounded()) {
    auto it = route_sequences_.find(
        static_cast<int32_t>(GpuChannelReservedRoutes::kSharedImageInterface));
    tasks.emplace_back(it->second, ...);  // <- NO end() check -> UB
}

The same function's main loop (20 lines earlier) correctly checks it == route_sequences_.end() before dereferencing. This backgrounded code path does not.

Attack Path

Renderer --Mojo--> DestroyCommandBuffer(route_id=0)
                       |
                       +- stubs_.find(0) -> end() -> skip (harmless)
                       |
                       +- RemoveRoute(0)            <- UNCONDITIONAL
                            |
                            +- route_sequences_.erase(0)  (erases kSharedImageInterface)

Later: FlushDeferredRequests (app backgrounded) // Only called on Android
                       |
                       +- route_sequences_.find(kSharedImageInterface) -> end()
                       +- tasks.emplace_back(it->second, ...)  <- DEREF end() -> UB

Proof of Concept

Attached patch

gpu_channel_reserved_route_uaf.patch adds two tests to gpu/ipc/service/gpu_channel_unittest.cc:

  1. DestroyCommandBufferWithReservedRouteErasesSharedImageRoute - Deterministic invariant test proving Part 1 (reserved route is erased).

  2. DISABLED_FlushDeferredRequestsUBAfterReservedRouteErased - ASan crash repro proving Part 2 (container-overflow on end() deref).

ASan output (abbreviated)

==19704==ERROR: AddressSanitizer: container-overflow on address 0x11f0ef1c8ab4
  at pc 0x7ff9f728c3ec bp 0x00bb40efef00 sp 0x00bb40efef48
READ of size 4 at 0x11f0ef1c8ab4 thread T0
    #0 vector::__emplace_back_slow_path<SequenceId&, ...>
    #1 gpu::GpuChannelMessageFilter::FlushDeferredRequests gpu_channel.cc:419
    #2 gpu::GpuChannelTest_DISABLED_...::TestBody gpu_channel_unittest.cc:195

0x11f0ef1c8ab4 is located 4 bytes inside of 8-byte region
  [0x11f0ef1c8ab0, 0x11f0ef1c8ab8) allocated by thread T0 here:
    #0 operator new
    #1 gpu::GpuChannelMessageFilter::AddRoute  gpu_channel.cc:337
    #2 gpu::GpuChannel::CreateSharedImageStub   gpu_channel.cc:915

SUMMARY: AddressSanitizer: container-overflow
  gpu_channel.cc:419 in FlushDeferredRequests

Suggested Fix

C++
// Fix 1: return early if route_id is not a command buffer stub.
void GpuChannel::DestroyCommandBuffer(int32_t route_id) {
  auto it = stubs_.find(route_id);
  if (it == stubs_.end()) return;  // not a command buffer -> bail
  // ... existing cleanup ...
  RemoveRoute(route_id);
}

// Fix 2: defense-in-depth: check end() in FlushDeferredRequests.
auto it = route_sequences_.find(...kSharedImageInterface);
if (it != route_sequences_.end()) {
    tasks.emplace_back(it->second, ...);
}

Reproducing the issue

I'm attaching a patch file which adds 2 tests to show the invariant being broken (Part 1) and triggers the iterator invalidation by simulating the application being backgrounded (Part 2)

  1. Build gpu_unittests
  2. run
Shell
out/asan/gpu_unittests \
  --gtest_filter='GpuChannelTest.DestroyCommandBufferWithReservedRouteErasesSharedImageRoute'

and

Shell
out/asan/gpu_unittests \
  --gtest_also_run_disabled_tests \
  --gtest_filter='*FlushDeferredRequestsUBAfterReservedRouteErased*' \
  --single-process-tests

The original report as published on the Chromium issue tracker, by tatiwari of Microsoft. 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

Likely two mistakes combine: DestroyCommandBuffer removes a route even when the route is not a command buffer stub, and FlushDeferredRequests dereferences the result of a map lookup without checking for end().

Impact

A compromised renderer could cause an out-of-bounds read in the GPU process, leading to undefined behaviour; the bug is reachable only on Android and requires the app to be backgrounded.

What the attacker needed

Compromised renderer; Android device; app backgrounded

The fix

The report suggests returning early from DestroyCommandBuffer when the route is not a command buffer stub, and adding an end() check in FlushDeferredRequests as defence in depth.

How it was found

  1. Build the GPU unit tests with AddressSanitizer.
  2. Run the test that shows the reserved route is erased by DestroyCommandBuffer.
  3. Run the disabled test that simulates the app being backgrounded and triggers the invalid iterator dereference.

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 process (the part that draws web pages) is normally not trusted to touch the GPU process's internal bookkeeping. Here it could ask the GPU process to delete a special entry that should always exist. Later, when the app goes into the background, the GPU process tries to use that missing entry and reads memory it should not, which can crash or misbehave.

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.