WebAuthn request that needs a security-key PIN crashes the browser process on Linux
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
43.4.0
What operating system(s) are you using?
Other Linux
Operating System Version
CachyOS (Arch-based), Linux 7.1.8-1-cachyos, KDE Plasma 6 (Wayland)
What arch are you using?
x64
Last Known Working Electron version
None found. 43.4.1, 42.9.0, and 39.8.10 also crashed with SIGTRAP, but those runs followed an earlier crash that had left the YubiKey 5 unresponsive, so they are consistent with the finding rather than clean data. The clean single-key runs below are on 43.4.0.
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
When a WebAuthn request reaches a USB security key that requires a PIN and Electron has no PIN prompt to show, the request should reject (for example with NotAllowedError) and the app should keep running.
Actual Behavior
The browser process dies with SIGTRAP from a CHECK about 0.7 s after launch, during navigator.credentials.create() and before the key is touched. With --enable-logging=stderr --vmodule=device_event_log_impl=1, the FIDO log ends right after Chromium reads the key's PIN retry count:
FIDO: DEBUG: fido_device.cc:70 The device supports the CTAP2 protocol.
FIDO: DEBUG: ctap2_device_operation.h:91 <- 0x6 (kAuthenticatorClientPin) {1: 2, 2: 7}
FIDO: DEBUG: ctap2_device_operation.h:188 -> {5: 0}
FIDO: DEBUG: ctap2_device_operation.h:91 <- 0x6 (kAuthenticatorClientPin) {1: 2, 2: 1}
FIDO: DEBUG: ctap2_device_operation.h:188 -> {3: 8}{5: 0} answers the UV-retries query and {3: 8} reports 8 PIN retries.
Results with the gist on 43.4.0:
| Keys plugged in | Result |
|---|---|
| YubiKey 5 only | Crash during create(), no touch |
| YubiKey 4 only | create() OK, get() OK |
| Both; YubiKey 4 touched | create() OK, get() OK; the log shows a clean cancel of the YubiKey 5's operation |
The YubiKey 5 (USB 1050:0406, firmware 5.8.0) reports alwaysUv: true, uv: true, clientPin: true, bioEnroll: true, makeCredUvNotRqd: false, and pinUvAuthToken: true, so every operation needs user verification. The YubiKey 4 (USB 1050:0407) is U2F only.
Testcase Gist URL
https://gist.github.com/nisavid/a7e5438b6ceef5a0761898dc99ec6b64
Additional Information
The gist is a minimal main-process app that serves index.html on http://localhost and runs navigator.credentials.create() for a non-resident credential with userVerification: "discouraged", then navigator.credentials.get() with that credential. get() takes userVerification from the uv query parameter (default discouraged); REPRO_QUERY='?uv=preferred' sets it, which the crashing runs used, though the single-key run crashed inside create() before get() ran. Run it with a PIN-protected FIDO2 key plugged in:
electron . --enable-logging=stderr --vmodule=device_event_log_impl=1This is narrower than #24573, which tracks the missing Linux FIDO2 PIN UI: here a request that needs the PIN takes the browser process down instead of rejecting. It surfaced in the Proton Pass desktop app (/usr/lib/electron43/electron /usr/share/proton-pass/app.asar), whose in-app sign-in crashed three times on 2026-09-24 with a main-thread stack identical to the gist's. Chrome was not tested.
The distro electron43 binary is stripped. systemd-coredump labels frame 0 cppgc::internal::FatalImpl, but that 7-byte exported symbol (push rbp; mov rbp,rsp; int3; ud2) is an identical-code-folded IMMEDIATE_CRASH stub, so the name is a misattribution. Identifying the other frames by the source-path strings their functions reference gives: a device.mojom.HidConnection read, then device/fido/hid/fido_hid_device.cc (message received), then the device/fido/ctap2_device_operation.h response callback, then the crash stub. The gist's core has the same stack hash as the Proton Pass cores.
My reading, as inference: the key's alwaysUv makes the request need PIN/UV, the request handler moves on to PIN collection after reading the retry counts, and with no PIN UI on Linux the browser process hits a CHECK instead of failing the request.
Source: electron/electron