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

Use after free in Core (CVE-2026-15120)

A use-after-free exists in RenderWidgetHostViewAura when updating text input state because synchronous IME calls can pump the message loop and destroy the view. A compromised renderer could exploit this to achieve browser process remote code execution.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 26 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. 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 exists in RenderWidgetHostViewAura when updating text input state due to unguarded synchronous IME subsystem calls. On Windows, these calls can trigger nested message loops that process pending destruction events, fully freeing the view object. Continuing execution using freed raw stack pointers bypasses MiraclePtr, potentially allowing a compromised renderer to achieve browser process RCE.

Affected files:

  • content/browser/renderer_host/render_widget_host_view_aura.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Vulnerability Details

A potential Use-After-Free (UAF) vulnerability exists in content/browser/renderer_host/render_widget_host_view_aura.cc within the RenderWidgetHostViewAura::OnUpdateTextInputStateCalled method. This method performs synchronous calls into the Input Method Editor (IME) subsystem without guarding against the synchronous destruction of the this object.

Specifically, at line 3431, the method executes:

C++
GetInputMethod()->OnTextInputTypeChanged(this);

On Windows, this routes to TSF (Text Services Framework) COM APIs (e.g., in InputMethodWinTSF::OnTextInputTypeChanged). These TSF COM calls can synchronously pump the UI thread's message loop (such as via ::NotifyWinEvent). If a pending UI message triggers the destruction of the WebContents or window (e.g., a concurrent tab closure), RenderWidgetHostViewAura::~RenderWidgetHostViewAura will run synchronously on the same thread.

During destruction, the view unregisters itself from TextInputManager's observer list. The ObserverList uses UncheckedObserverAdapter, which internally holds a raw_ptr. Calling RemoveObserver zeroes out this raw_ptr. As this was the final raw_ptr holding the object alive, the MiraclePtr (BackupRefPtr / BRP) reference count drops to zero, and PartitionAlloc fully frees the object's memory.

However, the OnUpdateTextInputStateCalled function is executing with this and updated_view as raw C++ stack pointers (which do not increment BRP refcounts). When the TSF message loop unwinds and the IME call returns, execution continues on these freed pointers.

At line 3475, the code accesses the freed memory:

C++
if (auto* render_widget_host = updated_view->host()) {
  render_widget_host->RequestCompositionUpdates(...);
}

If an attacker reallocates this memory, they can control the returned render_widget_host pointer. The call to RequestCompositionUpdates internally makes a virtual method call to GetWidgetInputHandler(), allowing an attacker to hijack control flow.

Potential Attacker Steps

Note: These are suggested/potential steps based on code analysis, as our tooling agent does not currently have the ability to run code or build a functional Proof of Concept.

  1. Gain Initial Execution: An attacker first compromises a renderer process (e.g., via a v8 vulnerability).
  2. Trigger State Update: The compromised renderer crafts and sends a mojom::WidgetHost::TextInputStateChanged IPC message to the browser process to update its text input state.
  3. Concurrent Destruction: Concurrently, the attacker triggers a window or tab closure event (e.g., via a secondary compromised renderer or Web Worker IPC).
  4. Message Loop Pumping: The TextInputStateChanged IPC reaches RenderWidgetHostViewAura::OnUpdateTextInputStateCalled, triggering the synchronous OnTextInputTypeChanged IME call. This pumps the message loop, processing the closure event and synchronously destroying the RenderWidgetHostViewAura object.
  5. Memory Reallocation: The attacker uses heap grooming/spraying in the browser process to immediately reallocate the freed RenderWidgetHostViewAura memory chunk with a fake object. This fake object is crafted to ensure the host_ pointer points to another fake RenderWidgetHostImpl object under the attacker's control.
  6. Control Flow Hijack: The IME call returns. The browser uses the raw updated_view pointer to read the attacker-controlled host_ pointer and calls RequestCompositionUpdates. This triggers a virtual method call (GetWidgetInputHandler()) on the fake RenderWidgetHostImpl, jumping to an attacker-supplied address (vtable hijacking) and resulting in an unsandboxed browser process RCE.

Suggested Fix

Implement base::WeakPtr guards in RenderWidgetHostViewAura::OnUpdateTextInputStateCalled. Capture a WeakPtr to this before any IME subsystem calls, and explicitly check its validity before accessing any members or using the updated_view pointer afterwards.

C++
base::WeakPtr<RenderWidgetHostViewAura> weak_this = weak_ptr_factory_.GetWeakPtr();

if (did_update_state)
  GetInputMethod()->OnTextInputTypeChanged(this);

if (!weak_this)
  return;
// ... proceed safely ...

Evaluated with Chrome root at commit: 65b3256311f3ab6fb9870eaa522de7e6dd2663bb


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

Likely the method calls into the IME subsystem without guarding against synchronous destruction of the object, then continues using raw stack pointers after the object is freed.

Impact

A compromised renderer could potentially achieve browser process remote code execution, bypassing MiraclePtr.

What the attacker needed

Compromised renderer process; Windows OS

The fix

The fix should add base::WeakPtr guards in OnUpdateTextInputStateCalled to check validity after IME calls.

How it was found

  1. Compromise a renderer process.
  2. Send a TextInputStateChanged IPC message to update text input state.
  3. Trigger a concurrent window or tab closure event.
  4. The IME call pumps the message loop, processing the closure and destroying the view.
  5. Reallocate the freed memory with a fake object.
  6. The IME call returns and the browser uses the freed pointer, leading to control flow hijack.

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 when a program keeps using memory after it has been freed. Here, a function calls into the Windows input method, which can process other events and delete the object the function is still using. An attacker who already controls a web page's renderer could then take over the browser process.

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.