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

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

Two call sites in the WebAuthn dialog controller call SetCurrentStep() and then touch members of the controller without checking whether the call destroyed it. An observer reacting to the step transition can close the tab, freeing the controller, so the following member access is a use-after-free in the browser process.

h3ee Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 43 days

Security Bug

Important: Please do not change the component of this bug manually.

Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md

Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs

Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp

NOTE: Security bugs are normally made public once a fix has been widely deployed.


VULNERABILITY DETAILS Incomplete fix for crbug.com/536584251 — two additional unguarded SetCurrentStep() call sites in AuthenticatorRequestDialogController remain after two rounds of fixes (crbug.com/522566295 and crbug.com/536584251).

Bug 536584251 (commit 25e013dd59d3e, 2026-07-23) added WeakPtr guards after SetCurrentStep() in HideDialogAndDispatchToPlatformAuthenticator() and StartPasskeyUpgradeRequest(). Bug 522566295 (commit 0ed0be437d706, 2026-06-11) did the same for CancelAuthenticatorRequest(). Two call sites with post-call member access were missed by both rounds:

Site 1: StartGuidedFlowForMostLikelyTransportOrShowMechanismSelection() authenticator_request_dialog_controller.cc:810-811 Site 2: OnCableEvent() authenticator_request_dialog_controller.cc:1078-1083

Both use the identical destruction mechanism confirmed and fixed in 522566295 and 536584251:

SetCurrentStep(step) -> model_->SetStep(step) // model.cc:157 -> view_controller_.reset() // model.cc:167 (NONE-type steps) -> for (observer : observers) observer.OnStepTransition() // model.cc:177-179 -> observer closes tab -> ~WebContentsImpl -> ~AuthenticatorCommon -> ~ChromeAuthenticatorRequestDelegate -> ~AuthenticatorRequestDialogController // this freed

The controller is owned via unique_ptr<AuthenticatorRequestDialogController> in ChromeAuthenticatorRequestDelegate (h:309-310). MiraclePtr does NOT protect — the UAF is on this pointer (member access after controller destruction), not on a raw_ptr member.

SITE 1 — StartGuidedFlowForMostLikelyTransportOrShowMechanismSelection

authenticator_request_dialog_controller.cc:809-811:

if (pending_step_) { SetCurrentStep(*pending_step_); // CAN DESTROY this pending_step_.reset(); // UAF: read+write to freed member }

pending_step_ is populated by design: when SetCurrentStep() is called before the dialog is showing (started_ == false), the step is queued (line 1742: "Dialog isn't showing yet. Remember to show this step when it appears."). When StartFlow() sets started_ = true (line 746) and calls this function (line 775), the pending step is consumed. At this point started_ is true, so SetCurrentStep() takes the model_->SetStep() path — triggering view_controller_.reset() and the observer loop.

If the pending step is a StepUIType::NONE step (kClosed, kPlatformAuthenticator, kPasskeyUpgrade, kPasswordOsAuth, kPasskeyAutofill — model.cc:50-56), view_controller_.reset() fires, which is the exact destruction trigger confirmed in the ASAN output for bug 536584251:

#14 TabModel::~TabModel #17 TabStripModel::CloseWebContentsAt <- observer closes tab #18 AuthenticatorRequestDialogModel::SetStep

For non-NONE steps, the observer loop (model.cc:177-179) still dispatches OnStepTransition() to all observers, which can also trigger tab closure and controller destruction.

Call paths to this function:

  • StartFlow() line 775 (kModal/kModalImmediate presentation) -> web-reachable via navigator.credentials.create() / navigator.credentials.get()
  • TransitionToModalWebAuthnRequest() line 799 -> web-reachable via conditional UI -> modal transition (navigator.credentials.get({mediation: "conditional"}) + user clicks a passkey suggestion)

Compare with GUARDED CancelAuthenticatorRequest (same file, line 628+):

base::WeakPtr<AuthenticatorRequestDialogController> weak_this = weak_factory_.GetWeakPtr(); if (is_request_complete()) { SetCurrentStep(Step::kClosed); } if (!weak_this) { // GUARD return; }

SITE 2 — OnCableEvent

authenticator_request_dialog_controller.cc:1077-1083:

if (model_->step() != Step::kCableV2Connecting) { SetCurrentStep(Step::kCableV2Connecting); // CAN DESTROY this cable_connecting_sheet_timer_.Start( // UAF: method call on freed member FROM_HERE, base::Milliseconds(1250), base::BindOnce(&AuthenticatorRequestDialogController:: OnCableConnectingTimerComplete, weak_factory_.GetWeakPtr())); // UAF: freed member access }

kCableV2Connecting is StepUIType::DIALOG (model.cc:62-63, default case), so view_controller_.reset() does not fire. However, the observer loop at model.cc:177-179 runs unconditionally for all step types, and any observer that reacts to the step transition can close the tab and destroy the controller. After SetCurrentStep() returns, three member accesses follow: cable_connecting_sheet_timer_ (method call), weak_factory_ (address-of), and the implicit this for the BindOnce member function pointer.

OnCableEvent is called when a caBLE/hybrid Bluetooth event occurs during WebAuthn. This is web-reachable: a relying party using the hybrid transport (QR code / phone as authenticator) triggers BLE advertising events that route to this function.

SCOPE OF UNGUARDED SITES There are 40+ SetCurrentStep() calls in the file. Only 3 are guarded (lines 628, 1003, 2357 — added by the two fix commits). Most of the remaining ~37 are safe because SetCurrentStep is the last statement before return or end-of-function (tail position). The two sites above are the only ones with confirmed post-call member access in the current code.

BISECT Both sites were present before commit 25e013dd59d3e (2026-07-23, bug 536584251) which fixed HideDialogAndDispatchToPlatformAuthenticator and StartPasskeyUpgradeRequest but missed these two. The fix opportunity was this commit.

Site 1 (pending_step_ path) has been present since the pending_step_ mechanism was introduced. Site 2 (OnCableEvent) has been present since the caBLE V2 hybrid flow was added.

VERSION Chrome Version: 152.0.7974.0 (dev) Operating System: macOS 26.2

REPRODUCTION CASE Environment: ASAN build: is_asan=true is_debug=false is_component_build=false dcheck_always_on=true

Apply poc.patch (base: a227b14fea96e) and rebuild: cd chromium/src git apply poc.patch autoninja -C out/ASAN chrome

Serve poc.html over localhost (WebAuthn requires secure context; localhost over plain HTTP qualifies) and launch: python3 poc_server.py & ASAN_OPTIONS="symbolize=1:external_symbolizer_path=third_party/llvm-build/
Release+Asserts/bin/llvm-symbolizer"
out/ASAN/Chromium.app/Contents/MacOS/Chromium
--no-first-run --disable-default-apps
--no-default-browser-check
--user-data-dir=/tmp/chrome-vrp-asan
http://localhost:8080/poc.html 2>&1 | tee asan_output.txt

  1. Click "Create Passkey" button
  2. ASAN crash: heap-use-after-free in AuthenticatorRequestDialogController:: StartGuidedFlowForMostLikelyTransportOrShowMechanismSelection (pending_step_.reset() on freed this)

What the patch does (production code only, no test modifications): All PoC modifications are guarded with !base::CommandLine::ForCurrentProcess()->HasSwitch("type") which ensures they only execute in the browser process (renderer and other child processes have --type=renderer/gpu/etc. on their command line).

  • PocDestructionObserver (anonymous namespace): A model observer that reacts to the step transition to kClosed by closing the hosting tab. This is the same observer-based destruction mechanism used in the Chromium team's own fix regression test for crbug.com/522566295 and in the accepted PoC for crbug.com/536584251. The model's SetStep() dispatches OnStepTransition() to all observers; the observer fires in that loop, closing the tab -> destroying WebContents -> destroying the controller.

  • StartFlow(): In the browser process, after setting started_=true, sets pending_step_ = Step::kClosed (a StepUIType::NONE step that triggers view_controller_.reset() in model_->SetStep()), registers PocDestructionObserver, then calls StartGuidedFlowForMostLikelyTransportOrShowMechanismSelection() directly. The function checks if (pending_step_) -> true, calls SetCurrentStep(*pending_step_) with started_=true -> model_->SetStep() -> observer fires -> tab closed -> controller freed -> returns to pending_step_.reset() on freed memory.

  • StartGuidedFlowForMostLikelyTransportOrShowMechanismSelection(): UNMODIFIED. The function's existing code at line 810-811 is the vulnerability — SetCurrentStep(*pending_step_) followed by pending_step_.reset() with no WeakPtr guard.

Site 2 (OnCableEvent) is not covered by this PoC because caBLE/hybrid requires Bluetooth hardware interaction. The code analysis in the bug report demonstrates the same pattern — SetCurrentStep() followed by unguarded member access.

FOR CRASHES Type of crash: browser process

Crash state (Site 1, from asan_output.txt):

==43878==ERROR: AddressSanitizer: heap-use-after-free on address 0x61600025b708 at pc 0x00037cd8501c bp 0x00016fbe3d90 sp 0x00016fbe3d88 READ of size 1 at 0x61600025b708 thread T0 #0 AuthenticatorRequestDialogController:: StartGuidedFlowForMostLikelyTransportOrShowMechanismSelection() #1 AuthenticatorRequestDialogController::StartFlow(...) #2 ChromeAuthenticatorRequestDelegate::ShowUI(...) #3 UiReadinessBarrier::TryToShowUI() #4 ChromeAuthenticatorRequestDelegate:: OnTransportAvailabilityEnumerated(...) #5 device::FidoRequestHandlerBase:: MaybeSignalTransportsEnumerated() #6 device::FidoRequestHandlerBase::DiscoveryStarted(...) #7 device::fido::mac::FidoTouchIdDiscovery:: OnAuthenticatorAvailable(bool)

0x61600025b708 is located 136 bytes inside of 640-byte region [0x61600025b680,0x61600025b900)

freed by thread T0 here: #1 ChromeAuthenticatorRequestDelegate:: ~ChromeAuthenticatorRequestDelegate() #3 content::AuthenticatorCommonImpl::RequestState::~RequestState() #5 content::AuthenticatorImpl::~AuthenticatorImpl() #6 content::DocumentAssociatedData::~DocumentAssociatedData() #7 content::RenderFrameHostImpl::~RenderFrameHostImpl() #12 content::WebContentsImpl::~WebContentsImpl() #14 tabs::TabModel::~TabModel() #17 TabStripModel::CloseWebContentsAt(...) <- observer closes tab #18 AuthenticatorRequestDialogModel::SetStep(...) #19 AuthenticatorRequestDialogController:: StartGuidedFlowForMostLikelyTransportOrShowMechanismSelection() #20 AuthenticatorRequestDialogController::StartFlow(...)

previously allocated by thread T0 here: #2 ChromeAuthenticatorRequestDelegate:: ChromeAuthenticatorRequestDelegate(content::RenderFrameHost*) #3 AuthenticatorRequestScheduler:: CreateRequestDelegate(content::RenderFrameHost*)

MiraclePtr Status: NOT PROTECTED No raw_ptr<T> access to this region was detected prior to this crash. This crash is still exploitable with MiraclePtr.

Site 2 (OnCableEvent) is not reproduced in this PoC because caBLE/hybrid requires Bluetooth hardware interaction. The expected crash state:

==PID==ERROR: AddressSanitizer: heap-use-after-free READ of size N at 0x... thread T0 #0 base::OneShotTimer::Start (cable_connecting_sheet_timer_ on freed this) #1 AuthenticatorRequestDialogController::OnCableEvent freed by thread T0: (same destruction chain as Site 1)

RELATED BUGS

  • Bug 536584251 (commit 25e013dd59d3e): Fixed identical UAF in HideDialogAndDispatchToPlatformAuthenticator() and StartPasskeyUpgradeRequest() — same SetCurrentStep() destruction path. This is the PARENT bug that this report is an incomplete fix of.
  • Bug 522566295 (commit 0ed0be437d706): Fixed identical UAF in CancelAuthenticatorRequest() — first round of fix.

SUGGESTED FIX See attached fix.patch. Add WeakPtr guards after SetCurrentStep() at both sites, identical to the fix pattern established in commits 0ed0be437d706 and 25e013dd59d3e.

CREDIT INFORMATION Reporter credit: h3ee

The original report as published on the Chromium issue tracker, by h3ee. 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 the code calls SetCurrentStep() and then accesses controller members without a WeakPtr guard, even though that call can synchronously destroy the controller via observer callbacks.

Impact

A web page can trigger a use-after-free in the browser process, which crashes the browser and may be exploitable; the second site was not reproduced because it needs Bluetooth interaction.

What the attacker needed

Victim visits a crafted page; WebAuthn passkey flow triggered; second site needs Bluetooth hardware

The fix

WeakPtr guards should be added after SetCurrentStep() at both sites, matching the earlier fixes.

How it was found

  1. Build an ASAN Chrome with the provided patch applied
  2. Serve the proof-of-concept page over localhost and launch the browser at it
  3. Click the Create Passkey button
  4. Observe the ASAN heap-use-after-free crash in the guided-flow function

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 a website asks the browser to create or use a passkey, Chrome shows a dialog managed by a controller object. Changing the dialog's step can notify other parts of the browser, and one of those can close the tab, which deletes the controller. The code then keeps using the deleted object, which is a use-after-free and can crash the browser.

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.