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

sign_psbt: fix reply count for exact chunk sizes

Public commit record

What the developer wrote

Authored by kkdao

68/100 · Adequate
sign_psbt: fix reply count for exact chunk sizes

When the signed PSBT length is an exact multiple of the output chunk
size, the reply advertised one message too many. The host then asked
for the extra chunk and the device aborted on an assertion. Count the
messages by rounding up instead.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in how Blockstream Jade counts the number of message chunks needed to send back a signed Bitcoin transaction (PSBT). When the transaction size was an exact multiple of the chunk size, the device told the host there was one extra chunk. When the host asked for that non-existent chunk, the device hit an internal assertion and aborted. The fix rounds the chunk count up correctly. A new test exercises sizes right at the chunk-size boundary.

Recommended action

Treat as a low-severity reliability/denial-of-service fix. Ensure the patch is included in firmware builds and that the new boundary tests pass. No immediate incident response is warranted unless the crash can be chained with other bugs; the commit itself does not indicate that.

Security signals we found

01

Integer division off-by-one in chunk/message count

02

Device abort on assertion when host requests non-existent chunk

03

Denial-of-service-like symptom: valid signing flow can crash the device

04

Boundary-size test cases added for exact multiples of chunk size

Risk score

Why this scored 43/100

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