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

Use after free in Autofill (CVE-2026-10934)

A use-after-free exists in the Android Authenticator Selection Dialog because the C++ view object deletes itself on dismissal while the Java UI remains clickable during a 200ms fade-out animation. An attacker could trigger a native callback on the freed object, potentially leading to arbitrary code execution in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 53 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.

Overview: A potential Use-After-Free (UAF) exists in the browser process when dismissing the Android Authenticator Selection Dialog. The C++ view object deletes itself upon dismissal, but the Java-side UI remains clickable during a 200ms fade-out animation, allowing an attacker to trigger a native callback on the freed object.

Affected files:

  • chrome/browser/ui/android/autofill/authenticator_selection_dialog_view_android.cc
  • chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AuthenticatorSelectionDialogBridge.java
  • chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AuthenticatorSelectionDialog.java

Estimated timestamp from git blame: 2023-01-06

Summary

A potential Use-After-Free (UAF) vulnerability exists in the browser process due to a lifecycle mismatch between the C++ AuthenticatorSelectionDialogViewAndroid and its Java-side UI counterpart during dialog dismissal. This may allow a compromised renderer to achieve arbitrary code execution in the browser process (Sandbox Escape).

Technical Details

The vulnerability occurs during the dismissal sequence of the Authenticator Selection tab-modal dialog:

  1. Setup: When created, AuthenticatorSelectionDialogViewAndroid passes reinterpret_cast<intptr_t>(this) to AuthenticatorSelectionDialogBridge.java, where it is stored as a jlong (mNativeCardUnmaskAuthenticationSelectionDialogView).
  2. Dismissal: If a background navigation occurs, TabModalLifetimeHandler clears active dialogs. ModalDialogManager.dismissDialog() immediately triggers the controller's onDismiss callback.
  3. The Free: This callback routes to the JNI method AuthenticatorSelectionDialogViewAndroid::OnDismissed(), which executes delete this;. The C++ object is now freed.
  4. The Window: Immediately following the onDismiss callback, TabModalPresenter begins a 200ms fade-out animation. During this time, the ModalDialogView remains attached to the Android view hierarchy and its click listeners remain active.
  5. The Use: If a user clicks a button during this 200ms window, the click event routes to AuthenticatorSelectionDialogBridge.onOptionSelected(). The Java bridge uses its dangling jlong pointer to invoke the native OnOptionSelected() method on the freed C++ object.
  6. Exploitation: Inside the freed object, a virtual call is made: controller_->SetSelectedChallengeOptionId(...). Because the dangling reference is a jlong, MiraclePtr does not protect it. If an attacker sprays the browser heap and reallocates the freed memory, they can overwrite the controller_ field. When the raw_ptr<controller_> is dereferenced, it fetches the attacker's fake pointer and executes an indirect call through a fake vtable, hijacking control flow.

Potential Reproduction Steps

Note: These are suggested steps; our tooling agent does not yet have the ability to run code to verify an active exploit.

  1. The user browses to an attacker-controlled page that triggers an autofill prompt for a card requiring authentication (e.g., CVC/OTP).
  2. The user taps the card to display the Authenticator Selection tab-modal dialog.
  3. The attacker's page executes a Javascript navigation (e.g., location.href = '...';) precisely timed to occur just as the user taps the "Continue" button.
  4. The navigation triggers the dialog's dismissal (freeing the C++ object) milliseconds before the tap event is processed by the Android UI thread.
  5. The tap event fires during the 200ms exit animation, invoking the JNI callback on the freed C++ object.

Suggested Fix

The Java AuthenticatorSelectionDialogBridge must invalidate its native pointer upon dismissal.

  1. In AuthenticatorSelectionDialogBridge.java, remove the final modifier from mNativeCardUnmaskAuthenticationSelectionDialogView.
  2. Inside AuthenticatorSelectionDialogBridge.onDialogDismissed(), set mNativeCardUnmaskAuthenticationSelectionDialogView = 0; after making the JNI call.
  3. Add a check if (mNativeCardUnmaskAuthenticationSelectionDialogView == 0) return; at the beginning of onOptionSelected() and any other methods that call back into JNI.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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.

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 lifecycle mismatch: the Java bridge holds a raw pointer to the C++ object and does not invalidate it when the C++ object is deleted during dismissal, while the Java UI remains interactive during the fade-out animation.

Impact

A compromised renderer could potentially achieve arbitrary code execution in the browser process, escaping the sandbox.

What the attacker needed

Android device; attacker-controlled web page; user interaction (tap); compromised renderer

The fix

The Java bridge should invalidate its native pointer upon dismissal and check for a null pointer before calling back into native code.

How it was found

  1. The user browses to an attacker-controlled page that triggers an autofill prompt for a card requiring authentication.
  2. The user taps the card to display the Authenticator Selection tab-modal dialog.
  3. The attacker's page executes a JavaScript navigation precisely timed to occur just as the user taps the 'Continue' button.
  4. The navigation triggers the dialog's dismissal, freeing the C++ object milliseconds before the tap event is processed.
  5. The tap event fires during the 200ms exit animation, invoking the JNI callback on the freed C++ object.

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 happens when a program frees memory but still keeps a pointer to it, and later uses that pointer as if the memory were still valid. Here, the dialog's C++ object is deleted when the dialog is dismissed, but the Java part of the dialog can still be clicked for a short time, so a click can call back into the freed object. This could let an attacker who controls a web page take over the browser 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.