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

Use after free in Aura (CVE-2026-79290)

Three recursive traversal functions in Aura's window code iterate over observers without first tracking the liveness of the window object. If an observer callback synchronously deletes the window, the subsequent attempt to read the freed children vector causes a use-after-free read and potentially a wild memory write in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

Critical View original
  • Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential Use-After-Free (UAF) vulnerability exists in the browser process within aura::Window notification methods. Observer callbacks can synchronously destroy the Window object before the methods attempt to read its children vector to instantiate a WindowTracker. This allows reading freed heap memory and can lead to a wild memory write in the browser process.

Affected files:

  • ui/aura/window.cc

Estimated timestamp from git blame: 2026-04-03

Root Cause

In ui/aura/window.cc, three recursive traversal functions are potentially vulnerable to a Use-After-Free (UAF) on the this pointer:

  • Window::NotifyRemovingFromRootWindow (at ui/aura/window.cc:1224)
  • Window::NotifyAddedToRootWindow (at ui/aura/window.cc:1236)
  • Window::NotifyWindowHierarchyChangeDown (at ui/aura/window.cc:1263)

These functions fail to establish a WindowTracker to track the liveness of this prior to executing their observer loops (unlike the fully hardened sibling NotifyWindowVisibilityChangedDown at ui/aura/window.cc:1314). If an observer callback synchronously deletes the window this, returning from the observer loop to initialize WindowTracker tracker(children_) results in a UAF read of the freed children_ member vector.

Potential Trigger Steps

Please note that these are potential trigger sequences identified via static code flow analysis; our automated tooling does not currently have the capability to execute code or provide a dynamic Proof of Concept.

  1. A window state modification (e.g., closing a panel or removing a tab) invokes Window::RemoveChildImpl on W's parent (ui/aura/window.cc:1138).
  2. RemoveChildImpl detects that the root window is changing and invokes child->NotifyRemovingFromRootWindow(new_root_window) on W (ui/aura/window.cc:1146).
  3. Inside Window::NotifyRemovingFromRootWindow (ui/aura/window.cc:1224), the method begins iterating through observers_ and invokes observer.OnWindowRemovingFromRootWindow(this, new_root).
  4. One of the registered observers is the root window's WindowEventDispatcher (ui/aura/window_event_dispatcher.cc). This invokes OnWindowHidden (ui/aura/window_event_dispatcher.cc:362), which calls invisible->CleanupGestureState().
  5. Window::CleanupGestureState() invokes env->gesture_recognizer()->CancelActiveTouches(this) (ui/aura/window.cc:1356).
  6. The GestureRecognizer cancels active touches and dispatches a touch-cancel event (ui::EventType::kTouchCancelled) to W's delegate.
  7. The delegate synchronously deletes the window (e.g., calling delete window), deallocating W and its member vector children_.
  8. Control returns to Window::NotifyRemovingFromRootWindow. The range-based loop exits, and the instruction WindowTracker tracker(children_) attempts to access the deallocated children_ member vector of this, triggering the Use-After-Free.

Impact

This vulnerability runs in the unsandboxed Browser process. Furthermore, because this involves an implicit this dereference of an in-object member vector rather than a raw pointer field, MiraclePtr does not mitigate this access. If the freed heap slot is reclaimed before the vector constructor executes, an attacker can leverage this to trigger a wild memory write when WindowTracker::Add invokes window->AddObserver(this) on a reclaimed pointer.

Recommended Fix

Ensure that a WindowTracker is instantiated to track the liveness of this before executing observer loops in all three affected functions, and abort further processing if this is deleted. For example, implement the following pattern used in NotifyWindowVisibilityChangedDown:

C++
void Window::NotifyRemovingFromRootWindow(Window* new_root) {
  if (frame_sink_id_.is_valid())
    UnregisterFrameSinkId();

  WindowTracker this_tracker;
  this_tracker.Add(this);

  for (WindowObserver& observer : observers_)
    observer.OnWindowRemovingFromRootWindow(this, new_root);

  if (!this_tracker.Contains(this))
    return;

  WindowTracker tracker(children_);
  while (!tracker.windows().empty()) {
    tracker.Pop()->NotifyRemovingFromRootWindow(new_root);
  }
}

Evaluated with Chrome root at commit: a2bea94528f4bd6cc57739c43fa3bb890b8367d3


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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 observer loops in three window notification functions do not create a WindowTracker for `this` before iterating, so a callback that deletes the window leaves the code using a dangling `this` pointer.

Impact

Because the bug is in the unsandboxed browser process and MiraclePtr does not cover this access, an attacker could potentially turn the freed memory into a wild memory write if the heap slot is reclaimed, though the report only describes a potential trigger from static analysis.

What the attacker needed

A window with an observer that deletes it; a state change that removes the window from its root

The fix

The three affected functions should create a WindowTracker for `this` before running their observer loops and abort if the window was deleted, following the pattern already used in NotifyWindowVisibilityChangedDown.

How it was found

  1. A window state change causes the parent to call RemoveChildImpl on the window.
  2. RemoveChildImpl detects a root window change and calls NotifyRemovingFromRootWindow on the window.
  3. The method iterates observers and calls OnWindowRemovingFromRootWindow.
  4. The root window's WindowEventDispatcher observer calls OnWindowHidden, which calls CleanupGestureState.
  5. CleanupGestureState cancels active touches, dispatching a touch-cancel event to the window's delegate.
  6. The delegate synchronously deletes the window, and control returns to the observer loop, which then accesses the freed children vector.

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 a piece of memory after it has been freed. Here, a window tells its observers that it is being removed, and one observer can delete the window during that notification. When the code then tries to look at the window's list of children, that list no longer exists, so it reads or writes memory that may now belong to something else.

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.