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

Use after free in Payments (CVE-2026-11657)

A use-after-free exists in the browser process when handling the Mandatory Reauth opt-in bubble on macOS. An attacker-controlled opener page could close the popup during a nested run loop, leading to a virtual call on a freed object and potentially arbitrary code execution in the unsandboxed browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 25 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) exists in the browser process when handling the Mandatory Reauth opt-in bubble on macOS. A nested run loop triggered during system authentication allows the controller to be destroyed, leading to virtual function calls on a freed object when authentication completes.

Affected files:

  • chrome/browser/ui/autofill/payments/mandatory_reauth_bubble_controller_impl.cc
  • chrome/browser/ui/autofill/autofill_bubble_controller_base.cc
  • chrome/browser/device_reauth/mac/device_authenticator_mac.mm

Estimated timestamp from git blame: 2023-05-23

Summary

A potential Use-After-Free (UAF) vulnerability has been identified in MandatoryReauthBubbleControllerImpl::OnBubbleClosed within the browser process. On macOS, accepting the mandatory reauth opt-in bubble can trigger a synchronous system authentication flow. This flow invokes AuthorizationCopyRights, which spins a nested run loop. If the associated WebContents and its controller are destroyed during this nested loop (e.g., via a window.close() call from an opener page), the code will proceed to access the freed controller once the authentication dialog is dismissed.

Vulnerability Details

In chrome/browser/ui/autofill/payments/mandatory_reauth_bubble_controller_impl.cc, the OnBubbleClosed method handles the closure of the opt-in bubble. When a user accepts the prompt, the following logic is executed:

C++
// chrome/browser/ui/autofill/payments/mandatory_reauth_bubble_controller_impl.cc:205
std::move(accept_mandatory_reauth_callback_).Run();
// ...
UpdatePageActionIcon(); // line 229

On macOS, if biometrics (Touch ID) are not configured, this callback leads to DeviceAuthenticatorMac::AuthenticateWithMessage, which invokes authenticator_->AuthenticateUserWithNonBiometrics. This call ultimately triggers AuthorizationCopyRights in base/mac/authorization_util.mm, displaying a system password prompt.

AuthorizationCopyRights spins a nested run loop on the UI thread to keep the interface responsive. While this nested loop is active, the browser can process other tasks, including window destruction requests. If the bubble was shown in a popup window, an attacker-controlled opener page can call popup.close(). This results in the destruction of the popup's WebContents and all associated WebContentsUserData, including the MandatoryReauthBubbleControllerImpl object.

When the user interacts with the system password prompt, the nested loop exits and the stack unwinds back to OnBubbleClosed. The code then attempts to call UpdatePageActionIcon() at line 229. At this point, the this pointer is dangling. Because UpdatePageActionIcon is a virtual method defined in AutofillBubbleControllerBase, this results in a virtual call on a freed object, potentially leading to arbitrary code execution in the unsandboxed browser process.

Potential Impact

This issue could allow for a sandbox escape and arbitrary code execution in the context of the browser process. While it requires the user to interact with the Mandatory Reauth bubble, it can be triggered without an initial renderer compromise.

Suggested Reproduction Steps (Potential)

  1. Using macOS, ensure Touch ID and Apple Watch authentication are not configured for the user.
  2. In Chrome, ensure a credit card is saved and the Mandatory Reauth opt-in promo is eligible to be shown.
  3. Navigate to a site that opens a popup window via window.open().
  4. In the popup, trigger the Mandatory Reauth opt-in bubble (e.g., via an autofill flow).
  5. Click the "Yes" button on the bubble.
  6. While the macOS system password prompt is visible, have the opener window call popup.close() on the popup window handle.
  7. Dismiss the macOS password prompt (accept or cancel).
  8. Observe if a crash occurs in the browser process due to a Use-After-Free in OnBubbleClosed.

Recommended Fix

The controller should check its own lifetime using a base::WeakPtr after returning from the potentially synchronous authentication callback. If the controller has been destroyed, it should return early from OnBubbleClosed before attempting to call UpdatePageActionIcon().

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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

The code does not check whether the controller object still exists after a synchronous authentication call that spins a nested run loop, allowing the object to be destroyed before it is used again.

Impact

This could allow for a sandbox escape and arbitrary code execution in the browser process, though it requires the user to interact with the Mandatory Reauth bubble.

What the attacker needed

MacOS without Touch ID or Apple Watch; saved credit card and eligible promo; victim clicks 'Yes' on the bubble; attacker-controlled opener page

The fix

The controller should check its own lifetime using a base::WeakPtr after returning from the authentication callback and return early if it has been destroyed.

How it was found

  1. On macOS, ensure Touch ID and Apple Watch authentication are not configured.
  2. In Chrome, ensure a credit card is saved and the Mandatory Reauth opt-in promo is eligible.
  3. Navigate to a site that opens a popup window.
  4. In the popup, trigger the Mandatory Reauth opt-in bubble.
  5. Click the 'Yes' button on the bubble.
  6. While the macOS system password prompt is visible, have the opener window close the popup.

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. Here, while a system password prompt is open, another part of the browser can close the window and destroy the object that the code will later use. This can crash the browser or, in theory, let an attacker run their own code.

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.