Use after free in Aura (CVE-2026-7911)
A use-after-free in aura::Window's destructor on Windows arises because a non-fatal re-entrancy check allows a nested message loop to trigger a second destruction of the same window. An attacker could potentially exploit this to achieve remote code execution in the browser process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 38 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A potential Use-After-Free vulnerability exists in aura::Window on Windows due to a non-fatal re-entrancy guard in its destructor. A nested message loop during destruction can allow a second, re-entrant destruction of the same window, bypassing MiraclePtr and leading to a highly reliable UAF. An attacker could potentially exploit this to achieve Remote Code Execution in the browser process.
Affected files:
ui/aura/window.cccontent/browser/renderer_host/render_widget_host_view_aura.ccui/wm/core/transient_window_manager.cccontent/browser/renderer_host/legacy_render_widget_host_win.cc
Estimated timestamp from git blame: 2026-01-15
Vulnerability Description
A potential Use-After-Free (UAF) and double-free vulnerability exists in aura::Window::~Window() on Windows. The destructor guards against re-entrant destruction with CHECK(!is_destroying_, base::NotFatalUntil::M149). Because this check is non-fatal in builds prior to M149, it triggers a DumpWithoutCrashing but allows execution to continue.
During window destruction, aura::Window notifies its delegate. For a RenderWidgetHostViewAura (RWHVA), this notification eventually calls LegacyRenderWidgetHostHWND::Destroy(), which invokes the Windows API ::DestroyWindow(). This API synchronously pumps the thread's message loop, which can process pending IPCs.
If the destruction of the window's parent is triggered during this nested message loop, the parent will iterate through its transient children and call delete on the child window again. This re-enters the ~Window() destructor.
MiraclePtr (BRP) Bypass
When the inner (re-entrant) destructor executes, it successfully removes the window from its parent's children_ list, its transient parent's transient_children_ list, and its delegate's window_ member. Since all of these are raw_ptrs, clearing them drops the MiraclePtr reference count to zero.
When the inner destructor finishes, operator delete genuinely frees the memory to the allocator (bypassing the BackupRefPtr quarantine). When the nested message loop unwinds, the outer destructor resumes execution using its implicit this pointer—which is an unprotected raw C++ pointer—pointing to the now-freed memory. The outer destructor then iterates over the observers_ list, providing a reliable primitive for virtual call hijacking.
Suggested Attacker Steps
Note: These are potential steps based on static analysis; our tooling does not yet have the ability to run code to produce a working Proof of Concept.
- A compromised renderer process creates a popup window, which is initialized as a transient child of the main renderer window.
- The renderer sends an IPC to close the popup, triggering
delete window_;and entering the "outer"aura::Window::~Window(). - The outer destructor notifies the delegate, leading to a call to
::DestroyWindow()on Windows, which pumps the message loop. - During this pump, the attacker triggers the destruction of the main window (e.g., by crashing the renderer or via another IPC).
- The main window tears down and calls
deleteon its transient children, including the popup. This enters the "inner"~Window()destructor. - The non-fatal
CHECKis bypassed. The inner destructor clears allraw_ptrreferences to the popup and frees the memory. - The attacker sprays the heap via IPCs processed in the still-running message loop, reallocating the freed
aura::Windowmemory with a forgedbase::ObserverList. - The nested message loop unwinds, and the outer destructor resumes. It iterates the attacker-controlled
observers_list and callsobserver.OnWindowDestroying(this). - The attacker hijacks the virtual method call to achieve Remote Code Execution (RCE) in the browser process.
Suggested Fix
The re-entrancy guard in aura::Window::~Window() must be made strictly fatal to prevent the inner destructor from proceeding.
Change:
CHECK(!is_destroying_, base::NotFatalUntil::M149);
To:
CHECK(!is_destroying_);
Alternatively, if telemetry is still required without crashing the whole browser in release builds immediately, use base::ImmediateCrash() or base::debug::Alias to halt the specific execution path once the dump is generated, preventing the destructor from continuing.
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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 re-entrancy guard in the window destructor is non-fatal, so a nested message loop can re-enter the destructor and free the object while the outer destructor still holds a raw pointer to it.
Impact
An attacker could potentially achieve remote code execution in the browser process, though the report notes these are potential steps from static analysis without a working proof of concept.
What the attacker needed
Compromised renderer process; Windows platform; Chrome build before M149
The fix
The re-entrancy guard should be made strictly fatal so the inner destructor cannot proceed.
How it was found
- A compromised renderer creates a popup window as a transient child of the main window.
- The renderer sends an IPC to close the popup, entering the outer destructor.
- The outer destructor notifies the delegate, calling ::DestroyWindow() which pumps the message loop.
- During the pump, the attacker triggers destruction of the main window.
- The main window deletes its transient children, entering the inner destructor and freeing the popup.
- The attacker sprays the heap to reallocate the freed window with a forged observer list, then the outer destructor resumes and calls a virtual method on the controlled list.
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 frees memory but then keeps using it, like deleting a file and still reading from it. Here, a window object is destroyed twice because a Windows API call processes other messages in the middle of destruction, and the second destruction frees the memory while the first is still running. An attacker who controls those messages could then put fake data in the freed memory and take over 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.