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

Use after free in Actor (CVE-2026-15116)

A use-after-free exists in the renderer's Actor tool cancellation path: cancelling an active click tool synchronously dispatches a mouseup event, letting a page's listener detach the frame and destroy the tool and executor while still on the call stack. The unwinding code then touches freed memory, which the report says could lead to remote code execution in the renderer.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 29 days

Flapjack, 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 Use-After-Free (UAF) vulnerability exists in the renderer process when cancelling an active Glic Actor tool. The cancellation sequence synchronously dispatches a DOM mouseup event, allowing a malicious page to detach the frame and destroy the active tool and its executor while they are still on the call stack. Upon return from the event dispatch, the unwinding code accesses the freed objects.

Affected files:

  • chrome/renderer/actor/click_tool.cc
  • chrome/renderer/actor/tool_executor.cc

Estimated timestamp from git blame: 2025-12-10

Summary

A Use-After-Free (UAF) vulnerability has been identified in the actor::ClickTool and actor::ToolExecutor classes in the renderer process. The vulnerability occurs because the tool cancellation process (ToolExecutor::CancelTool) synchronously dispatches a mouseup event to the Blink engine via ClickDispatcher::DoMouseUpImpl. This synchronous dispatch allows an attacker-controlled JavaScript event listener to detach the frame, which synchronously destroys the RenderFrameImpl and its associated objects, including the ToolExecutor and the active ClickTool. When the synchronous event dispatch returns, the methods on the call stack continue execution on the freed memory.

Technical Details

To trigger this vulnerability, an attacker must win a race condition to ensure that the CancelTool IPC is processed before the 5ms delayed task in ClickDispatcher::DoMouseDown executes. This can be achieved reliably by stalling the renderer main thread.

Suggested steps an attacker might follow:

  1. Create a page with an iframe and a target element inside it.
  2. Add mousedown and mouseup event listeners to the target element.
  3. Trigger the Actor feature to click the element. This causes ToolExecutor::ExecuteTool to invoke ClickTool::Execute, which creates a ClickDispatcher that synchronously fires the mousedown event.
  4. In the mousedown JavaScript listener, execute a busy-wait loop for 35 seconds to block the renderer main thread.
  5. While the thread is blocked, the browser process's 30-second kGlicActorPageToolTimeout expires, causing it to send a CancelTool Mojo IPC to the renderer.
  6. When the 35-second busy-wait completes, the main thread resumes. The delayed 5ms DoMouseUp task is not yet runnable, so the task scheduler processes the pending CancelTool IPC.
  7. ChromeRenderFrameObserver::CancelTool calls tool_executor_->CancelTool(), which chains to ClickTool::Cancel() and then ClickDispatcher::Cancel().
  8. Since the 5ms timer hasn't fired, the mouse is still "down". ClickDispatcher::Cancel() calls DoMouseUpImpl(), which synchronously dispatches the mouseup event via widget->HandleInputEvent().
  9. The attacker's mouseup listener is executed. The listener calls window.frameElement.remove(), detaching the iframe.
  10. Blink synchronously processes the detachment, calling RenderFrameImpl::FrameDetached. This destroys the RenderFrameImpl, which notifies ChromeRenderFrameObserver::OnDestruct, destroying the observer. This implicitly destroys the ToolExecutor, ClickTool, and ClickDispatcher.
  11. The attacker uses heap grooming in the mouseup listener to overwrite the freed ToolExecutor chunk.
  12. Execution unwinds back to ClickTool::Cancel() at chrome/renderer/actor/click_tool.cc:114, which calls click_dispatcher_.reset() on the freed object.
  13. Execution unwinds to ToolExecutor::CancelTool(), which calls ToolFinished() (chrome/renderer/actor/tool_executor.cc:277).
  14. Inside ToolFinished() (chrome/renderer/actor/tool_executor.cc:280), the code accesses multiple fields on the freed this pointer and executes std::move(completion_callback_).Run(), leading to potential Remote Code Execution (RCE) in the renderer process.

While ClickDispatcher::DoMouseUpImpl correctly checks !weak_this after returning from HandleInputEvent, its callers (ClickTool and ToolExecutor) do not verify if they were destroyed during the synchronous call.

(Note: These are suggested steps based on static analysis; our tooling does not yet execute code to provide a working PoC.)

Proposed Fix

The objects on the call stack must check for their own destruction after any synchronous call that can execute script. ClickTool::Cancel should use a base::WeakPtr to check its existence before accessing its members. Similarly, ToolExecutor::CancelTool must verify the ToolExecutor is still alive before calling ToolFinished or accessing this.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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 cancellation code does not check whether the tool objects were destroyed during a synchronous event dispatch that can run attacker script.

Impact

The report claims this could lead to remote code execution in the renderer process, though it notes the steps come from static analysis and no working proof of concept was executed.

What the attacker needed

Actor feature available to the page; attacker-controlled page with an iframe; attacker wins a timing race

The fix

The objects on the call stack should check for their own destruction after any synchronous call that can run script, for example using a weak pointer before touching members.

How it was found

  1. Create a page with an iframe and a target element inside it.
  2. Add mousedown and mouseup listeners to the target element.
  3. Trigger the Actor feature to click the element, which synchronously fires mousedown.
  4. In the mousedown listener, busy-wait for 35 seconds to block the renderer main thread.
  5. While blocked, the browser's 30-second tool timeout sends a CancelTool IPC to the renderer.
  6. When the busy-wait ends, the pending CancelTool is processed and synchronously dispatches mouseup, whose listener detaches the iframe and frees the tool objects.

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 program frees an object's memory but keeps using it, that is a use-after-free. Here, cancelling an automated click makes the browser run page JavaScript in the middle of its own cleanup, and that script can delete the very objects the cleanup code is still using. The report suggests this could let an attacker run their own code inside the browser's renderer 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.