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

Fix missing return value checks for point_add calls

Public commit record

What the developer wrote

Authored by Salvatore Ingala

65/100 · Adequate
Fix missing return value checks for point_add calls

Also made the cast from size_t to int explicit, and fixed PRINTF
message that had an off-by-one.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes three places in the Ledger Bitcoin app's MuSig2 code where the result of an elliptic-curve point-addition operation was not checked for failure. If point_add fails (for example, because it produced the special 'point at infinity' or another error condition), the code previously continued using an invalid public key or nonce. The patch now aborts the signing operation and returns an error. It also corrects a debug-print index that was off by one and makes a type conversion explicit.

Recommended action

Treat as a security-hardening fix and include it in the next release. Review whether any other cryptographic calls in the MuSig2 implementation have unchecked return values. No independent CVE or advisory is supplied, so further vendor assessment is warranted to determine exploitability.

Security signals we found

01

Unchecked cryptographic operation return value (point_add)

02

Potential use of invalid/infinite elliptic-curve point in MuSig2 aggregation

03

MuSig2 nonce aggregation failure path now returns correct cosigner index

04

Explicit integer cast from size_t to int in return value

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.