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

Use after free in Web Authentication (CVE-2026-12443)

Google Chrome

Originally disclosed on Chrome VRP

Critical View original
  • 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:

C++
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:

  1. Register a Chrome Extension that displays a browser action popup containing WebAuthn functionality.
  2. Open the extension popup, and call navigator.credentials.create(...) or get(...) such that an error sheet (like Step::kKeyNotRegistered) is shown in a tab-modal dialog.
  3. The user or script cancels the WebAuthn request (e.g. by dismissing the dialog or aborting with an AbortSignal).
  4. CancelAuthenticatorRequest() runs, calling SetCurrentStep(Step::kClosed), which synchronously destroys the WebAuthn widget.
  5. The widget closure triggers OnWidgetTreeActivated on the ExtensionPopup. It detects that no active web modal is present, causing it to synchronously close itself and delete its hosted WebContents.
  6. The WebContents deletion destroys AuthenticatorImpl, which deallocates the AuthenticatorRequestDialogController (this).
  7. 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:

C++
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.

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.

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.

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.