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

Use after free in Frames (CVE-2026-113104)

An automated analysis claims a use-after-free in the Android render widget host view's touch event handler, because a weak pointer check is missing after a second synchronous call that can destroy the view. A compromised renderer could in theory trigger the free and then have the browser read freed memory, potentially leading to code execution outside the sandbox.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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 (UAF) vulnerability exists in RenderWidgetHostViewAndroid::OnTouchEvent due to a missing weak_this validation after synchronous touch event routing. If the view is synchronously destroyed during the routing call, subsequent member accesses on the freed this pointer can lead to memory corruption in the browser process. This could potentially be leveraged by a compromised renderer to execute arbitrary code outside the sandbox.

Affected files:

  • content/browser/renderer_host/render_widget_host_view_android.cc

Estimated timestamp from git blame: 2026-06-12

Root Cause Analysis

In content/browser/renderer_host/render_widget_host_view_android.cc, the function RenderWidgetHostViewAndroid::OnTouchEvent dispatches touch events to the input routing infrastructure. While the function implements a weak_this check after the first re-entrant gesture provider call, it lacks a corresponding check after the second synchronous re-entrant call to input_helper_->RouteOrForwardTouchEvent(web_event):

C++
// content/browser/renderer_host/render_widget_host_view_android.cc:1678-1706
auto weak_this = weak_ptr_factory_.GetWeakPtr();
// Keep the gesture provider alive during event dispatch as it can trigger
// synchronous view destruction.
scoped_refptr<ui::FilteredGestureProvider> protector(gesture_provider_);
ui::FilteredGestureProvider::TouchHandlingResult result =
    protector->OnTouchEvent(event);              // 1st re-entrant call
if (!weak_this) {                               // guard #1 — OK
  return false;
}
if (!result.succeeded)
  return false;

blink::WebTouchEvent web_event = ui::CreateWebTouchEventFromMotionEvent(...);
if (web_event.GetType() == blink::WebInputEvent::Type::kUndefined)
  return false;

input_helper_->RouteOrForwardTouchEvent(web_event);   // L1696: 2nd re-entrant call
// <--- A second weak_this check is missing here! --->

if (observing_root_window_ && result.moved_beyond_slop_region) {  // L1702: UAF read on 'this'
  if (sync_compositor_)                                            // L1703: UAF read on 'this'
    sync_compositor_->RequestOneBeginFrame();                      // L1704: Call on freed memory
}
return true;

If the RenderWidgetHostViewAndroid instance is synchronously destroyed during the execution of RouteOrForwardTouchEvent(), the stack will unwind back to line 1702. The code then attempts to read this->observing_root_window_ (a boolean) and the this->sync_compositor_ smart pointer from the freed memory of the this pointer.


Potential Exploit Flow

An attacker with control over a compromised renderer could potentially trigger the Use-After-Free via the following steps:

  1. Deactivate Touch Consumers: The compromised renderer sends a Mojo IPC message FrameWidgetHost::SetHasTouchEventConsumers(TouchEventConsumers touch_event_consumers) with has_touch_event_handlers = false to the browser process. This updates PassthroughTouchEventQueue state, setting has_handlers_ = false.
  2. Initiate Touch Input: The attacker initiates a touch move event that exceeds the slop region, triggering RenderWidgetHostViewAndroid::OnTouchEvent.
  3. Synchronous Filtering and ACK: Since has_handlers_ == false, PassthroughTouchEventQueue::QueueEvent immediately processes the event via FilterBeforeForwarding (returning kFilteredNoPageHandlers) and runs the completion callback synchronously on the UI thread.
  4. Synchronous Destruction: The synchronous ACK triggers registered input event observers or JNI callouts. If any observer or subsequent handler synchronously tears down the parent WebContents (for example, due to a synchronous tab closure or navigation), the RenderWidgetHostViewAndroid object is deleted and its memory is deallocated.
  5. Heap Grooming: The attacker grooms the browser process heap to reclaim the newly freed memory slot of RenderWidgetHostViewAndroid with controlled data, configuring the bytes at the observing_root_window_ offset to evaluate to true and setting the sync_compositor_ offset to a pointer of a fake object.
  6. Use-After-Free Execution: The stack unwinds back to line 1702. Lacking a weak_this safety validation, the execution reads the groomed memory, evaluates the conditional branches as true, and executes sync_compositor_->RequestOneBeginFrame(). Inside RequestOneBeginFrame(), the fake object's state triggers virtual function calls (e.g., via a fake BeginFrameSource pointer), resulting in control flow hijacking (RCE) in the unsandboxed browser process.

Note: The exact observer or callback that triggers synchronous destruction in a production environment is a suggested trigger path and remains unconfirmed, as our automated analysis tools do not have the capability to run code or execute a live proof-of-concept.


Suggested Fix

The issue can be resolved by adding a validation check of weak_this immediately after the synchronous routing call:

Diff
  input_helper_->RouteOrForwardTouchEvent(web_event);
 
+ if (!weak_this) {
+   return false;
+ }
+
  // Send a proactive BeginFrame for this vsync to reduce scroll latency for

Evaluated with Chrome root at commit: b5b015ea5f690560237d1f0cff1405844cd12b8d


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 a missing weak-pointer validity check after a second synchronous, re-entrant call that can destroy the view, so later member accesses use a dangling `this`.

Impact

A compromised renderer could potentially corrupt browser-process memory and execute arbitrary code outside the sandbox, though the report notes the trigger path is unconfirmed and no proof of concept was run.

What the attacker needed

Compromised renderer; ability to send crafted touch input; heap grooming in browser process

The fix

The report suggests adding a weak-pointer validity check immediately after the synchronous routing call and returning early if the view is gone.

How it was found

  1. The compromised renderer tells the browser the frame has no touch event handlers.
  2. The attacker sends a touch move that exceeds the slop region, reaching the touch event handler.
  3. With no handlers, the event is filtered and acknowledged synchronously on the UI thread.
  4. The synchronous acknowledgement can tear down the parent contents, freeing the view.
  5. The attacker grooms the heap to reclaim the freed slot with controlled data.
  6. Execution returns to the later lines, reads the groomed memory and calls through the fake compositor 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 program frees an object but keeps using the old pointer to it, that is a use-after-free: the memory may already belong to something else, so the program reads or calls attacker-influenced data. Here a touch event handler calls into other code that can close the view and free it, then carries on using the now-freed object. The report is from an automated tool and admits it has not run any proof of concept.

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.