Use after free in Web Authentication (CVE-2026-12443)
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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 WebAuthn UI controller's cancel request handler. Changing the dialog step to closed can synchronously trigger the teardown of the hosting WebContents, destroying the controller while it is still executing. Subsequent instructions on the call stack access and dereference a member pointer on the freed controller.
Affected files:
chrome/browser/webauthn/authenticator_request_dialog_controller.cc
Estimated timestamp from git blame: 2019-02-06
Root Cause Analysis
In chrome/browser/webauthn/authenticator_request_dialog_controller.cc, the function CancelAuthenticatorRequest() contains the following logic:
void AuthenticatorRequestDialogController::CancelAuthenticatorRequest() {
...
if (is_request_complete()) {
SetCurrentStep(Step::kClosed); // [1] May synchronously free `this`
}
for (auto& observer : model_->observers) { // [2] Use-After-Free read of `this->model_`
observer.OnCancelRequest();
}
}
When is_request_complete() is true (such as when the UI is on the Step::kKeyNotRegistered or Step::kTimedOut error sheets), calling SetCurrentStep(Step::kClosed) updates the model step to Step::kClosed (chrome/browser/webauthn/authenticator_request_dialog_model.cc:157). This computes the new step UI type as StepUIType::NONE, causing the model to call view_controller_.reset() and synchronously destroy the underlying constrained tab-modal views::Widget.
Under certain conditions—most notably when the WebAuthn flow is hosted within an Extension Popup bubble (ExtensionPopup in chrome/browser/ui/views/extensions/extension_popup.cc)—destroying the modal widget changes the focus and triggers OnWidgetTreeActivated inside ExtensionPopup. Since the web-modal dialog has closed, the popup immediately schedules self-destruction via CloseDeferredIfNecessary(), which synchronously deletes the ExtensionViewHost and its owned WebContents.
This synchronous teardown propagates down through ~AuthenticatorImpl (Mojo DocumentService) -> ~AuthenticatorCommonImpl -> ~RequestState -> ~ChromeAuthenticatorRequestDelegate -> ~AuthenticatorRequestDialogController. This frees the controller (this) allocation while it is still executing. When SetCurrentStep returns, the call stack dereferences the freed controller to read model_->observers, resulting in a Use-After-Free (UAF).
Potential Attack Vector / Reproduction Steps
As our tooling agent does not have the capability to run code or execute a proof of concept, these are suggested/potential steps that should lead to triggering the vulnerability:
- Register a Chrome Extension that displays a browser action popup containing WebAuthn functionality.
- Open the extension popup, and call
navigator.credentials.create(...)orget(...)such that an error sheet (likeStep::kKeyNotRegistered) is shown in a tab-modal dialog. - The user or script cancels the WebAuthn request (e.g. by dismissing the dialog or aborting with an
AbortSignal). CancelAuthenticatorRequest()runs, callingSetCurrentStep(Step::kClosed), which synchronously destroys the WebAuthn widget.- The widget closure triggers
OnWidgetTreeActivatedon theExtensionPopup. It detects that no active web modal is present, causing it to synchronously close itself and delete its hostedWebContents. - The
WebContentsdeletion destroysAuthenticatorImpl, which deallocates theAuthenticatorRequestDialogController(this). - The call stack returns to the controller and accesses
this->model_on the freed memory, causing a UAF read and potential indirect virtual call hijack.
Suggested Fix
To prevent the UAF, use the existing base::WeakPtr of the controller to check whether this has been synchronously destroyed during the step transition before accessing any member variables:
void AuthenticatorRequestDialogController::CancelAuthenticatorRequest() {
...
base::WeakPtr<AuthenticatorRequestDialogController> weak_this = GetWeakPtr();
if (is_request_complete()) {
SetCurrentStep(Step::kClosed);
}
if (!weak_this) {
return;
}
for (auto& observer : model_->observers) {
observer.OnCancelRequest();
}
}
Evaluated with Chrome root at commit: b2fea2e31df308d0f04e4ae47def4c4f939ee141
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.
What is known
A critical-severity memory corruption bug in Web Authentication (Google Chrome). Chrome VRP made it public on 16 June 2026 as CVE-2026-12443. Fixed in version 149.0.7827.155.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.