AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 59 Bitcoin

SFT-8680: check derivation path length before indexing into it

Public commit record

What the developer wrote

Authored by Matt Gleason

50/100 · Thin
SFT-8680: check derivation path length before indexing into it
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in the Passport hardware wallet's BIP-322 message signing code. Previously, when parsing a PSBT (a Bitcoin data format), the code could read past the end of an empty or too-short 'derivation path' field because it checked the first byte before confirming the field was long enough. The fix reorders the checks so the length is validated before any byte is accessed. This prevents a potential crash or undefined behavior when handling a malformed signing request.

Recommended action

Treat as a low-to-moderate reliability/security hardening fix. Review whether the crash could be triggered from an untrusted source (e.g., a scanned QR code or USB/NFC PSBT) and confirm the device fails safely rather than entering an unhandled exception. No immediate CVE is indicated by the commit alone, but a defensive advisory note may be warranted if the malformed input is attacker-controllable.

Security signals we found

01

Out-of-bounds read / index error on untrusted PSBT input

02

Validation order bug: first-byte check before length check

03

BIP-322 signing request parsing hardened

04

New unit tests for empty and one-byte derivation values

Risk score

Why this scored 59/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.