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

Use after free in Glic (CVE-2026-10957)

A use-after-free vulnerability may exist in the Chrome renderer when the Glic actor's SelectTool synchronously dispatches DOM events. Page script can destroy the tool's owning frame, freeing the tool object before execution resumes, leading to a virtual call via an attacker-controlled pointer.

Google Chrome

Originally disclosed on Chrome VRP

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

Overview: A Use-After-Free (UAF) vulnerability may exist in the renderer process when the Glic actor's SelectTool synchronously dispatches DOM events. Page script can destroy the tool's owning frame, freeing the tool object before execution resumes, leading to a virtual call via an attacker-controlled pointer.

Affected files:

  • chrome/renderer/actor/select_tool.cc
  • chrome/renderer/actor/tool_base.h
  • chrome/renderer/actor/tool_executor.h
  • chrome/renderer/chrome_render_frame_observer.h
  • content/renderer/render_frame_impl.cc

Estimated timestamp from git blame: 2025-12-01

Summary

A potential Use-After-Free (UAF) vulnerability has been identified in actor::SelectTool::Execute within the Chrome renderer process. The vulnerability occurs because setting a <select> element's value synchronously dispatches DOM events. If page script in an event handler removes the iframe hosting the tool, the entire ownership chain (including the SelectTool instance) is destroyed. Execution then returns to the now-freed SelectTool::Execute, which dereferences this->frame_ leading to a potential Remote Code Execution (RCE) in the renderer.

Root Cause Analysis

In chrome/renderer/actor/select_tool.cc:

C++
void SelectTool::Execute(ToolFinishedCallback callback) {
  // ...
  WebSelectElement select = validated_target_and_value_.value().select;
  WebString value = validated_target_and_value_.value().option_value;
  select.SetValue(value, /*send_events=*/true);   // [1] Synchronously runs page JS

  frame_->GetWebFrame()->View()->CancelPagePopup(); // [2] UAF: reads this->frame_ from freed memory
  std::move(callback).Run(MakeOkResult());
}

At [1], select.SetValue with send_events=true eventually calls MenuListSelectType::DidSelectOption. This synchronously dispatches input and change DOM events because there is no active EventQueueScope delaying them in this context.

If the attacker's page script handles these events and removes the iframe containing the tool (e.g., iframe.remove()), a synchronous teardown sequence is initiated:

  1. RenderFrameImpl::FrameDetached executes delete this;.
  2. The RenderFrameImpl destructor destroys its observers, including ChromeRenderFrameObserver.
  3. ChromeRenderFrameObserver deletes itself, destroying its ToolExecutor member.
  4. ToolExecutor destroys its std::unique_ptr<ToolBase> tool_ member, freeing the SelectTool object.

At [2], the code attempts to access this->frame_. Because this has been freed, and frame_ resides within the freed memory, this is a heap-UAF read.

Exploitation Potential

An attacker has a window during the synchronous change event execution to perform heap spraying. By reclaiming the memory slot previously occupied by SelectTool, the attacker can forge the this->frame_ pointer (which is at a known offset within the object).

BackupRefPtr (MiraclePtr) does not prevent this specific exploit pattern. While BRP protects the target of a raw_ptr/raw_ref, it cannot protect against the modification of the raw_ref object itself when its containing object (SelectTool) is freed and overwritten. In release builds, operator-> on the BRP raw_ref simply returns the forged pointer.

The subsequent call to GetWebFrame() is a pure virtual method. By providing a fake vtable via the forged pointer, the attacker gains a strong primitive for arbitrary code execution within the sandboxed renderer.

Note: These steps are theoretical, as our tooling agent does not have the ability to run code to confirm a full exploit.

Reproduction Steps (Suggested)

  1. Create a site-isolated setup (e.g., A → B → A iframes) where the inner frame A can remove the intermediate frame B without terminating its own V8 context.
  2. In the inner frame A, place a <select> element and attach a change event listener.
  3. The change handler removes the intermediate frame B (triggering tool destruction) and performs heap spraying to overwrite the SelectTool memory slot with a forged frame_ pointer.
  4. Trigger the Glic agent to perform a SelectAction on the <select> element.
  5. The renderer should attempt to dereference the attacker-controlled pointer at select_tool.cc:57.

Suggested Fix

There are two primary ways to fix this issue:

  1. Reorder operations: Call frame_->GetWebFrame()->View()->CancelPagePopup(); before select.SetValue(). This removes the immediate risk on line 57, though the subsequent callback execution must also be carefully reviewed for UAF risks.
  2. Weak Pointers: Introduce a base::WeakPtrFactory<SelectTool> and take a weak pointer before calling SetValue. After SetValue returns, check if the weak pointer is still valid before proceeding.

Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f


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.

Raised in root component due to access or custom field issues on 1707859

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 runs page script, which can free the object, and then dereferences a member of the freed object.

Impact

An attacker could potentially achieve remote code execution within the sandboxed renderer process, though the steps are theoretical and not confirmed by running code.

What the attacker needed

Victim visits a malicious page; Glic agent performs SelectAction; site-isolated iframes

The fix

The issue should be fixed by either reordering operations to call CancelPagePopup before SetValue, or by using weak pointers to check if the object is still valid after SetValue returns.

How it was found

  1. Create a site-isolated setup with nested iframes where the inner frame can remove the intermediate frame without terminating its own context.
  2. In the inner frame, place a select element and attach a change event listener.
  3. The change handler removes the intermediate frame and performs heap spraying to overwrite the SelectTool memory slot with a forged frame_ pointer.
  4. Trigger the Glic agent to perform a SelectAction on the select element.
  5. The renderer attempts to dereference the attacker-controlled pointer.

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.

When a web page changes a dropdown menu, it can run JavaScript code immediately. If that code deletes the part of the page that contains the tool, the tool's memory is freed. The program then tries to use that freed memory, which can let an attacker take control of the browser's rendering 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.