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

Use after free in Tab Strip (CVE-2026-12455)

A use-after-free vulnerability exists in the browser process when touch-dragging a tab across windows, because a synchronous event transfer can destroy the drag controller and then the code accesses freed memory. An attacker could potentially cause memory corruption or a crash, but the report is based on static analysis and no live exploit is demonstrated.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 21 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 (UAF) vulnerability exists in the browser process due to reentrant destruction during event transfer. When touch-dragging a tab, calling GestureRecognizer::TransferEventsTo synchronously dispatches synthetic events that can destroy the active TabDragController or its target context. Subsequent accesses to members on the deleted this pointer or the target_context raw pointer lead to memory corruption.

Affected files:

  • chrome/browser/ui/views/tabs/dragging/tab_drag_controller.cc
  • chrome/browser/ui/views/tabs/tab_strip.cc

Estimated timestamp from git blame: 2015-03-18

Detailed Description

A potential Use-After-Free (UAF) vulnerability exists in the browser process of Google Chrome on Aura-based platforms (Windows, ChromeOS, and Linux with touch input) within TabDragController::DragBrowserToNewTabStrip.

Root Cause and Mechanism

When touch-dragging a tab across browser windows, TabDragController::DragBrowserToNewTabStrip invokes GestureRecognizer::TransferEventsTo() synchronously to transfer event stream ownership between the attached view and the target view's widget:

C++
// chrome/browser/ui/views/tabs/dragging/tab_drag_controller.cc (lines 1028-1030)
GetAttachedBrowserWidget()->GetGestureRecognizer()->TransferEventsTo(
    attached_native_view, target_context->GetWidget()->GetNativeView(),
    ui::TransferTouchesBehavior::kDontCancel);

Inside GestureRecognizerImpl::TransferEventsTo (ui/events/gestures/gesture_recognizer_impl.cc, line 158), the code cancels active touches on other consumers by dispatching synthetic touch cancel events (ui::TouchEvent with kTouchCancelled) through the complete Aura event pipeline. This dispatch is fully synchronous and reentrant.

If one of these synchronous events causes the tab drag session to abort (for example, by triggering a gesture end event or a capture loss), the drag controller terminates. Specifically, ending the drag runs EndDragImpl, which executes owning_context->DestroyDragController(), resetting the std::unique_ptr<TabDragController> inside TabStrip (at chrome/browser/ui/views/tabs/tab_strip.cc:479) and destroying this.

Upon returning from TransferEventsTo(), DragBrowserToNewTabStrip immediately accesses fields on the deleted this pointer (such as current_state_ on line 1033) and later accesses the raw target_context pointer (which may have been freed during window closure or event cancellation on line 1047), leading to Use-After-Free memory corruption.

Comparison with Guarded Paths

An identical call to TransferEventsTo() located in TabDragController::DetachIntoNewBrowserAndRunMoveLoop() is properly protected with a WeakPtr liveness check and a reentrancy guard:

C++
// chrome/browser/ui/views/tabs/dragging/tab_drag_controller.cc (lines 1603-1618)
{
  auto ref = weak_factory_.GetWeakPtr();
  base::WeakAutoReset<TabDragController, bool> reentrant_destruction_guard(
      ref, &TabDragController::expect_stay_alive_, true);
  ...
  attached_widget->GetGestureRecognizer()->TransferEventsTo(
      attached_widget->GetNativeView(), dragged_widget->GetNativeView(),
      ui::TransferTouchesBehavior::kDontCancel);

  CHECK(ref) << "Drag session was ended as part of transferring events...";
}

However, the call inside DragBrowserToNewTabStrip lacks any such liveness checks or guards.

Potential Steps to Reproduce

Since our analysis is static and our tooling does not run live code, the following are suggested/potential steps to trigger this condition:

  1. Open two Chrome browser windows on an Aura platform with touch support enabled.
  2. Initiate a touch drag of a tab from the source window to the destination window.
  3. Trigger a gesture cancellation or nested event loop processing (for example, via window close IPCs or focus changes coordinated by a compromised renderer process) precisely while TransferEventsTo is processing synchronous event dispatch.
  4. Observe if a crash or memory corruption occurs due to the subsequent evaluation of current_state_ on line 1033.

Suggested Remediation

Add a base::WeakPtr liveness check immediately following the TransferEventsTo call inside DragBrowserToNewTabStrip to exit safely if the controller was destroyed:

C++
#if defined(USE_AURA)
  base::WeakPtr<TabDragController> ref(weak_factory_.GetWeakPtr());
  // Only Aura windows are gesture consumers.
  GetAttachedBrowserWidget()->GetGestureRecognizer()->TransferEventsTo(
      attached_native_view, target_context->GetWidget()->GetNativeView(),
      ui::TransferTouchesBehavior::kDontCancel);
  if (!ref) {
    return Liveness::kDeleted;
  }
#endif

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 call to TransferEventsTo in DragBrowserToNewTabStrip lacks a liveness check or reentrancy guard, so synchronous event dispatch can destroy the TabDragController and leave dangling pointers.

Impact

A compromised renderer could potentially trigger a crash or memory corruption in the browser process, but the report is based on static analysis and no live exploit is demonstrated.

What the attacker needed

Aura platform with touch input; Two browser windows; Compromised renderer to coordinate events

The fix

The code should be fixed by adding a WeakPtr liveness check immediately after the TransferEventsTo call to exit safely if the controller was destroyed.

How it was found

  1. Open two Chrome browser windows on an Aura platform with touch support enabled.
  2. Initiate a touch drag of a tab from the source window to the destination window.
  3. Trigger a gesture cancellation or nested event loop processing precisely while TransferEventsTo is processing synchronous event dispatch.
  4. Observe if a crash or memory corruption occurs due to the subsequent evaluation of current_state_ on line 1033.

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 a bug where a program keeps using memory after it has been freed, which can lead to crashes or, in serious cases, let an attacker run their own code. Here, while you drag a tab with touch, the browser runs some event-handling code that can unexpectedly close the drag session and free the object that is still being used. The report is theoretical and no working attack is shown.

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.