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

Use after free in Compositing (CVE-2026-78990)

A use-after-free occurs in the compositor's tile manager when a synchronous scheduler action destroys tiling objects that are still referenced by raw pointers in priority queues. An attacker could potentially exploit this to achieve remote code execution in the renderer process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 Chrome Security team.

Overview: When TileManager processes tiles in a posted task, state changes can trigger synchronous Scheduler actions. This can cause the active sync tree to activate, destroying tiling objects that are currently referenced by active priority queues. Because these queues use RAW_PTR_EXCLUSION for performance, dereferencing them subsequently leads to a potential Use-After-Free.

Affected files:

  • cc/tiles/tile_manager.cc
  • cc/tiles/tiling_set_eviction_queue.h
  • cc/tiles/tiling_set_raster_queue_all.h
  • cc/tiles/prioritized_tile.h
  • cc/scheduler/scheduler.cc
  • cc/tiles/picture_layer_tiling_set.cc

Estimated timestamp from git blame: 2025-07-11

Technical Details

There is a potential Use-After-Free (UAF) vulnerability in cc::TileManager caused by re-entrant scheduler actions destroying objects that are currently being iterated over.

TileManager::CheckIfMoreTilesNeedToBePrepared is executed via more_tiles_need_prepare_check_notifier_, which is a UniqueNotifier that posts a task to the compositor thread. Because this runs as a top-level posted task rather than inside a scheduler frame cycle, the Scheduler re-entrancy guards (inside_process_scheduled_actions_ and inside_scheduled_action_) are false.

When CheckIfMoreTilesNeedToBePrepared executes, it calls AssignGpuMemoryToTiles(), which constructs RasterTilePriorityQueue and EvictionTilePriorityQueue objects to manage memory. These queues iterate over PictureLayerTiling and Tile objects. For performance reasons, the internal iterators of these queues (e.g., TilingIterator in cc/tiles/tiling_set_raster_queue_all.h) store raw pointers to the tilings explicitly marked with RAW_PTR_EXCLUSION, bypassing MiraclePtr protections.

During iteration in AssignGpuMemoryToTiles() (or its eviction helpers), the code may determine that a tile is a solid color, or that it needs to be evicted. When this happens, it calls client_->NotifyTileStateChanged(..., set_needs_redraw=true).

The set_needs_redraw=true parameter propagates through LayerTreeHostImpl and ProxyImpl to Scheduler::SetNeedsRedraw(), which synchronously executes ProcessScheduledActions(). Because the re-entrancy guards are currently false, the state machine evaluates available actions. If the pending tree is ready, it may select Action::ACTIVATE_SYNC_TREE.

Executing ACTIVATE_SYNC_TREE causes PictureLayerTilingSet::UpdateTilingsToCurrentRasterSourceForActivation to synchronize tilings, which often results in the deletion of the old PictureLayerTiling objects and their owned Tile objects. When the call stack unwinds back to the loop in AssignGpuMemoryToTiles(), the loop continues and calls raster_priority_queue->Pop(). This method attempts to advance the iterator by dereferencing the RAW_PTR_EXCLUSION pointer (tiling_->TileAt(...)), resulting in a Use-After-Free on the destroyed PictureLayerTiling.

Interestingly, this hazard is known in a different part of the file. In TileManager::MarkTilesOutOfMemory, a comment explicitly notes: "If we trigger SetNeedsRedraw() inside the loop above, we may end up triggering Scheduler::ProcessScheduledActions()... Worth, it may in turn trigger ActivateSyncTree() and other actions that remove tiles in the queue, leading to UAF." However, the protection implemented there (deferring SetNeedsRedraw) was not applied to AssignGpuMemoryToTiles.

Potential Attacker Steps

Note: These are suggested/potential steps, as our tooling agent does not yet have the ability to run code or build a proof-of-concept.

  1. Trigger Layout/Paint Operations: The attacker creates a webpage that heavily manipulates layers (e.g., via CSS will-change: transform, animations, or inserting many solid-colored <div> elements) to push the compositor to its limits and prepare a pending tree for activation.
  2. Force Task Execution: The page activity causes more_tiles_need_prepare_check_notifier_ to be scheduled, kicking off AssignGpuMemoryToTiles in a fresh posted task.
  3. Trigger State Change: The iteration hits a solid color tile, triggering NotifyTileStateChanged and synchronously activating the sync tree, freeing the currently iterated PictureLayerTiling objects.
  4. Heap Grooming: Prior to this cycle, the attacker uses WebAssembly or JavaScript ArrayBuffers to manipulate the PartitionAlloc heap, preparing fake PictureLayerTiling or Tile objects to reclaim the freed memory.
  5. Hijack Execution: When queue->Pop() dereferences the dangling pointer, it accesses the attacker's fake object. By providing a fake virtual table for internal task references (e.g., raster_task_), the attacker redirects execution when RunOnWorkerThread() is invoked, potentially achieving Remote Code Execution (RCE) in the renderer process.

Suggested Fix

Similar to the strategy employed in TileManager::MarkTilesOutOfMemory, TileManager::AssignGpuMemoryToTiles and its eviction helpers should defer calling SetNeedsRedraw until after the priority queues have finished processing.

Modify client_->NotifyTileStateChanged calls inside these loops to pass set_needs_redraw=false. Track a boolean flag needs_redraw during the queue iterations. Once all priority queues have been emptied and the loops have completed, call client_->SetNeedsRedraw(/*animation_only=*/false, /*skip_if_inside_draw=*/true) if the flag was set.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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

Likely, the code calls a function that synchronously triggers scheduler actions, which destroy objects that are still being iterated over by priority queues using raw pointers.

Impact

An attacker could potentially achieve remote code execution in the renderer process.

What the attacker needed

Victim visits a malicious webpage; browser uses vulnerable compositor code

The fix

The fix should defer calling SetNeedsRedraw until after the priority queues have finished processing, similar to the strategy in MarkTilesOutOfMemory.

How it was found

  1. Create a webpage that heavily manipulates layers to push the compositor to its limits and prepare a pending tree for activation.
  2. Cause the page activity to schedule a task that runs AssignGpuMemoryToTiles.
  3. During iteration, hit a solid color tile, triggering NotifyTileStateChanged and synchronously activating the sync tree, which frees the currently iterated PictureLayerTiling objects.
  4. Use WebAssembly or JavaScript ArrayBuffers to manipulate the heap and prepare fake objects to reclaim the freed memory.
  5. When the queue dereferences the dangling pointer, it accesses the fake object, potentially redirecting execution.

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 use-after-free is a bug where a program keeps using memory after it has been freed. Here, the tile manager frees some objects while still holding pointers to them, so later use of those pointers can crash or be hijacked. An attacker might craft a webpage to trigger this and then take control of the browser.

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.