Use after free in Passwords (CVE-2026-10901)
A use-after-free was reported in the macOS password autofill manager: while a synchronous system authentication dialog is open, the page can destroy the frame, which deletes the manager object, and the code then dereferences it when the dialog closes. The report claims this could allow arbitrary code execution inside the unsandboxed browser process, though the steps are theoretical and no proof of concept was run.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 7 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 PasswordAutofillManager on macOS during fallback device authentication. If the containing frame is destroyed while the synchronous macOS password modal dialog is active, the manager is deleted but its member variables are subsequently dereferenced upon dialog dismissal. This could potentially allow arbitrary code execution inside the unsandboxed browser process.
Affected files:
components/password_manager/core/browser/password_autofill_manager.cc
Estimated timestamp from git blame: 2022-08-26
Description
A potential Use-After-Free (UAF) vulnerability exists in PasswordAutofillManager::DidAcceptSuggestion on macOS. This issue stems from a synchronous nested run loop run during non-biometric fallback authentication.
While mitigations exist in DeviceAuthenticatorMac using a weak pointer guard to protect its own lifetime, the calling frame PasswordAutofillManager::DidAcceptSuggestion lacks lifetime tracking after the synchronous authentication flow returns, leading to a potential UAF on the this pointer.
Root Cause Analysis
- In
PasswordAutofillManager::DidAcceptSuggestion(components/password_manager/core/browser/password_autofill_manager.ccline 288), accepting a standard password suggestion invokesOnPasswordCredentialSuggestionAccepted(line 427). - If device re-authentication is required but biometric authentication (Touch ID) is currently unavailable (e.g., due to clamshell mode or biometric lockout),
DeviceAuthenticatorMac::AuthenticateWithMessage(chrome/browser/device_reauth/mac/device_authenticator_mac.mmline 71) falls back to non-biometric authentication viaAuthenticateUserWithNonBiometrics(line 92). - This eventually calls
password_manager_util_mac::AuthenticateUser(chrome/browser/password_manager/password_manager_util_mac.mmline 73) which invokesbase::mac::GetAuthorizationRightsWithPrompt(line 88). - This displays a system modal dialog (
AuthorizationCopyRightswithkAuthorizationFlagInteractionAllowed) that runs a synchronous nestedCFRunLoopon the main UI thread to keep the application responsive while the prompt is active. - During this nested run loop, the attacker-controlled page can trigger a navigation or close the frame, which causes
RenderFrameDeletedto fire. ContentPasswordManagerDriverFactory::RenderFrameDeleted(components/password_manager/content/browser/content_password_manager_driver_factory.ccline 116) erases the driver fromframe_driver_map_, immediately destroying theContentPasswordManagerDriverand its inlinePasswordAutofillManagermember (components/password_manager/content/browser/content_password_manager_driver.hline 215).- When the user dismisses the OS modal dialog, the nested run loop finishes and execution unwinds back to
PasswordAutofillManager::DidAcceptSuggestion(line 433). - The code immediately dereferences member fields of
this(such aspassword_client_andpassword_manager_driver_) to determine if it should enter a loading state. Since thePasswordAutofillManagerinstance has been destroyed, this results in a Use-After-Free.
MiraclePtr (BackupRefPtr) Status
Because PasswordAutofillManager is allocated inline within ContentPasswordManagerDriver and there are no external raw_ptr<PasswordAutofillManager> pointers keeping its refcount active at this point in the call stack, the memory is immediately deallocated back to PartitionAlloc and is reclaimable, potentially bypassing MiraclePtr protections.
Potential Steps to Trigger the Vulnerability
Note: These steps are theoretical/suggested based on static analysis; our tooling does not currently have the capability to run code or execute a proof of concept.
- Run Google Chrome on macOS with a locked-out or unavailable Touch ID configuration (such as clamshell mode) and a device screen lock configured.
- Navigate to an attacker-controlled page containing a password form and trigger the autofill suggestions dropdown.
- Accept a password suggestion to trigger the OS authentication prompt.
- While the modal authentication prompt is displayed, have the page automatically close the containing frame or perform a cross-origin navigation.
- Dismiss the authentication prompt. This returns control to
DidAcceptSuggestion, which should result in a browser process crash or unexpected memory access.
Suggested Remediation
Add a base::WeakPtr guard in PasswordAutofillManager::DidAcceptSuggestion to track the lifetime of this across the reauthentication flow. For example:
base::WeakPtr<PasswordAutofillManager> weak_this = weak_ptr_factory_.GetWeakPtr();
// ... Call to OnPasswordCredentialSuggestionAccepted ...
if (!weak_this) {
return;
}
// Safely resume post-authentication logic using weak_this
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.
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 calling method lacks lifetime tracking across a synchronous nested run loop, so the object can be destroyed by frame teardown while the modal authentication prompt is active and is then dereferenced on return.
Impact
This could potentially allow arbitrary code execution inside the unsandboxed browser process, though the report only predicts a crash or unexpected memory access and no exploit was demonstrated.
What the attacker needed
MacOS with Touch ID unavailable or locked out; device screen lock configured; victim accepts a saved password suggestion; victim dismisses the system prompt
The fix
The report suggests guarding the method with a weak pointer so it returns safely if the object was destroyed during authentication; it does not say a fix was shipped.
How it was found
- Run Chrome on macOS with Touch ID unavailable or locked out and a screen lock configured.
- Open an attacker-controlled page with a password form and show the autofill suggestions.
- Accept a password suggestion so the system authentication prompt appears.
- While the prompt is shown, have the page close the frame or navigate cross-origin.
- Dismiss the prompt, which returns to the accepting method and should crash or access freed memory.
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 you pick a saved password, Chrome on a Mac may ask you to confirm with your fingerprint or your system password. That confirmation dialog pauses the browser's normal flow but still lets the web page do things in the background. The bug is that the page can close itself while the dialog is open, which throws away the object that was waiting for the answer, and when the dialog closes the code still tries to use that thrown-away object, which can crash the browser or worse.
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.