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

fix(core): discard low-order keys in Code Entry pairing

Public commit record

What the developer wrote

Authored by M1nd3r

77/100 · Adequate
fix(core): discard low-order keys in Code Entry pairing

[no changelog]

(cherry picked from commit c0aa2eb4777c80f4e3f63c5c6da878cda5a956ed)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
The short version

What changed, and why it matters

This update fixes a cryptographic weakness in Trezor's 'Code Entry' pairing feature, which lets a phone or computer connect to a Trezor device. Before the fix, an attacker could supply a special invalid public key that would cause the pairing process to produce a predictable shared secret (all zeros). This could let the attacker bypass the pairing check and potentially trick the device into accepting an unauthorized connection. The fix rejects these invalid keys and also uses a constant-time comparison to prevent subtle timing leaks.

Recommended action

Treat this as a security fix and ensure it is included in firmware releases. Review whether prior firmware versions without this fix are exposed to unauthorized pairing via malicious low-order CPace public keys, and consider issuing a security advisory if user-facing impact is confirmed.

Security signals we found

01

Rejection of low-order Curve25519 public keys in CPace key exchange

02

Rejection of all-zero shared secret resulting from curve25519 multiplication

03

Replacement of direct equality comparison with constant-time consteq for tag validation

04

Use of CFRG CPace draft low-order test vectors for validation

05

Cherry-pick from another commit suggests backport of a security fix

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.