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

Use after free in GPU (CVE-2026-9931)

A use-after-free exists in the browser's animation code because a callback can destroy the animation sequence while it is still being processed. An attacker who can trigger the right UI animation could potentially execute code in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 48 days

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: A potential Use-After-Free exists in LayerAnimationSequence::Progress() due to an unguarded outcall to ProgressToEnd(). Synchronous observer callbacks during this outcall can re-entrantly destroy the animation sequence, leading to member accesses on freed memory and potential browser process code execution.

Affected files:

  • ui/compositor/layer_animation_sequence.cc

Estimated timestamp from git blame: 2021-02-25

Vulnerability Details

A potential Use-After-Free (UAF) vulnerability exists in ui/compositor/layer_animation_sequence.cc. The LayerAnimationSequence::Progress() method processes a sequence of animation elements in a while loop. At line 96, it makes an unguarded outcall:

C++
    // Let the element we're passing finish.
    if (elements_[current_index]->ProgressToEnd(delegate))
      redraw_required = true;
    last_start_ += element_duration;
    ++last_element_;
    // ...

When ProgressToEnd(delegate) is called on the element, it notifies the delegate (typically a ui::Layer) to update its properties (e.g., SetBoundsFromAnimation). The Layer then synchronously notifies its observers (e.g., views::View or aura::Window components) of the property change.

If an observer reacts to this notification by aborting the animation or starting a new, conflicting animation, it triggers a call to LayerAnimator::StopAnimating(). This results in LayerAnimator::FinishAnimation() being called for the active sequence.

FinishAnimation removes the sequence from the animator's queue, transferring ownership into a local std::unique_ptr<LayerAnimationSequence> removed. When FinishAnimation returns, this local pointer goes out of scope, destroying the LayerAnimationSequence and its associated elements.

As the stack unwinds, execution returns to the while loop in LayerAnimationSequence::Progress(). Because there is no liveness check after the outcall, the function continues to execute lines 98-105 using the implicitly captured this pointer, which now points to freed memory.

Because the access is via the implicit this pointer rather than an explicit base::raw_ptr, BackupRefPtr (BRP) does not mitigate this UAF.

Potential Attacker Steps

Note: These are suggested steps; our tooling agent cannot dynamically run code to verify the full chain.

  1. Trigger UI Animation: An attacker in a compromised renderer process uses JavaScript/DOM manipulation to trigger a browser-process UI animation (e.g., rapidly resizing a window or triggering tab strip animations).
  2. Force Re-entrant Deletion: The attacker orchestrates the UI state so that a View observer synchronously stops the active animation in response to a bounds or transform update during an animation tick.
  3. Reclaim Memory: Concurrent with the animation tick, the attacker uses Mojo primitives (e.g., BlobRegistry or Data Pipes) to spray the browser process heap, attempting to allocate attacker-controlled data into the exact memory chunk freed by the sequence's destruction.
  4. Control Flow Hijack: When LayerAnimationSequence::Progress() resumes, it reads from the attacker-controlled elements_ vector. On the next loop iteration, it attempts to call a virtual method (e.g., IsFinished or Start) on an element. This dereferences an attacker-supplied vtable pointer, leading to arbitrary code execution (a Sandbox Escape).

Recommended Fix

The call to ProgressToEnd() at line 96 should be guarded with a base::WeakPtr check. The developers already recognized this re-entrancy risk for the Progress() call at line 113 of the exact same function:

C++
    base::WeakPtr<LayerAnimationSequence> alive(AsWeakPtr());
    if (elements_[current_index]->Progress(now, delegate))
      redraw_required = true;
    if (!alive)
      return;

A similar check must be applied around line 96. Additionally, the Start(...) call at line 110, as well as the element iteration loops in LayerAnimationSequence::ProgressToEnd() and LayerAnimationSequence::Abort(), lack WeakPtr checks and should be audited to prevent similar re-entrancy UAFs.

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

The code calls out to a delegate without checking whether the animation sequence still exists afterwards, so a re-entrant callback can free it and the loop then uses the dangling pointer.

Impact

An attacker could potentially execute arbitrary code in the browser process, leading to a sandbox escape, though the report notes the steps are suggested and not dynamically verified.

What the attacker needed

Compromised renderer process; ability to trigger UI animations; precise timing of observer callback

The fix

The call to ProgressToEnd() should be guarded with a base::WeakPtr check, and similar checks should be added to other unguarded calls in the same function.

How it was found

  1. Trigger a browser-process UI animation from a compromised renderer using JavaScript or DOM manipulation.
  2. Arrange for a View observer to synchronously stop the active animation during an animation tick.
  3. Spray the browser process heap with Mojo primitives to reclaim the freed memory.
  4. When the loop resumes, it reads attacker-controlled data and calls a virtual method, leading to code 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 happens when a program keeps using memory after it has been freed. Here, an animation tells other parts of the browser about a change, and one of those parts can cancel the animation, which frees the animation's memory. The code then carries on using that freed memory, which an attacker might exploit to run their own code.

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.