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

fix(core): raise `DataError` in THP pairing

Public commit record

What the developer wrote

Authored by M1nd3r

80/100 · Strong
fix(core): raise `DataError` in THP pairing

- Receipt of messages with invalid data fields during pairing now results in `Failure` with code `DataError` instead of code `FirmwareError`.

[no changelog]
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit changes how the Trezor hardware wallet reports certain pairing errors. Previously, invalid data sent during the Trezor-Host Pairing (THP) process triggered an internal 'FirmwareError' code. Now it returns a more appropriate 'DataError' code. This is mainly a correctness and user-experience improvement: callers see a clearer error and are less likely to mistake bad host input for a device firmware bug. It does not appear to fix a memory corruption, bypass, or direct asset-stealing vulnerability.

Recommended action

Treat as a low-risk correctness fix. Review whether any host/client code relies on the previous FirmwareError code for THP pairing failures and update expectations to DataError. No urgent patching required for security reasons based on the diff alone.

Security signals we found

01

Error-code hygiene: replacing FirmwareError/ThpError with DataError for malformed protocol input

02

Input validation tightened: CPACE host public key now checked for exact 32-byte length instead of only non-None

03

New negative test cases for invalid CPACE key values and lengths

04

No changelog entry, suggesting internal cleanup rather than advertised security fix

Risk score

Why this scored 29/100

Our methodology →
Potential impact 5/30
Exploitability 3/25
Stealth signal 4/15
Affected reach 5/15
Confidence 8/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.