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.ccchrome/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:
- Create a page with an
iframeand a target element inside it. - Add
mousedownandmouseupevent listeners to the target element. - Trigger the Actor feature to click the element. This causes
ToolExecutor::ExecuteToolto invokeClickTool::Execute, which creates aClickDispatcherthat synchronously fires themousedownevent. - In the
mousedownJavaScript listener, execute a busy-wait loop for 35 seconds to block the renderer main thread. - While the thread is blocked, the browser process's 30-second
kGlicActorPageToolTimeoutexpires, causing it to send aCancelToolMojo IPC to the renderer. - When the 35-second busy-wait completes, the main thread resumes. The delayed 5ms
DoMouseUptask is not yet runnable, so the task scheduler processes the pendingCancelToolIPC. ChromeRenderFrameObserver::CancelToolcallstool_executor_->CancelTool(), which chains toClickTool::Cancel()and thenClickDispatcher::Cancel().- Since the 5ms timer hasn't fired, the mouse is still "down".
ClickDispatcher::Cancel()callsDoMouseUpImpl(), which synchronously dispatches themouseupevent viawidget->HandleInputEvent(). - The attacker's
mouseuplistener is executed. The listener callswindow.frameElement.remove(), detaching the iframe. - Blink synchronously processes the detachment, calling
RenderFrameImpl::FrameDetached. This destroys theRenderFrameImpl, which notifiesChromeRenderFrameObserver::OnDestruct, destroying the observer. This implicitly destroys theToolExecutor,ClickTool, andClickDispatcher. - The attacker uses heap grooming in the
mouseuplistener to overwrite the freedToolExecutorchunk. - Execution unwinds back to
ClickTool::Cancel()atchrome/renderer/actor/click_tool.cc:114, which callsclick_dispatcher_.reset()on the freed object. - Execution unwinds to
ToolExecutor::CancelTool(), which callsToolFinished()(chrome/renderer/actor/tool_executor.cc:277). - Inside
ToolFinished()(chrome/renderer/actor/tool_executor.cc:280), the code accesses multiple fields on the freedthispointer and executesstd::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.
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
- Create a page with an iframe and a target element inside it.
- Add mousedown and mouseup listeners to the target element.
- Trigger the Actor feature to click the element, which synchronously fires mousedown.
- In the mousedown listener, busy-wait for 35 seconds to block the renderer main thread.
- While blocked, the browser's 30-second tool timeout sends a CancelTool IPC to the renderer.
- 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.