Skip to content

L3: Keystore-key-deleted race escapes as raw crash instead of KeystoreKeyLost #566

Closed

Description

@libravault-xyz

If the Keystore key is deleted between forExistingKey() and unwrap() inside VaultStore.unlockWithPin, the resulting KeyStoreException isn't caught, so it crashes the caller instead of mapping to UnlockOutcome.KeystoreKeyLost (the path that correctly routes the user to recovery-key unlock). Widen the catch to cover this case.

A correct, tested fix already exists in the now-closed PR #537 (split from #530) — see its diff. Rebase forward or reimplement following the same pattern.

Labels: bug, android

Activity

  1. added
    bug
    status:ready-for-dev
    on Aug 25, 2026
  2. added
    status:in-progress
    on Aug 25, 2026
  3. added a commit that references this issue on Aug 25, 2026
    991a94a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidbugstatus:in-progressstatus:ready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions