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

bugfix: detect RNG_SR_SEIS and RNG_SR_SECS, retry safely, and fail closed on persistent faults

Public commit record

What the developer wrote

Authored by scgbckbone

50/100 · Thin
bugfix: detect RNG_SR_SEIS and RNG_SR_SECS, retry safely, and fail closed on persistent faults
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This update fixes how the COLDCARD hardware wallet's random-number generator (RNG) handles rare hardware faults. Previously, the device could silently continue using weak or repeated random numbers if the RNG reported a seed error. Now it detects those error flags, tries a safe recovery a few times, and if the problem persists it stops with an error instead of producing bad randomness. Two keyboard drivers were also updated so a temporary RNG failure does not lock the user out before login.

Recommended action

Treat as a security-relevant bugfix and include in the next firmware release. Review whether other RNG consumers (e.g., seed generation, nonce creation) already propagate OSError correctly. Consider adding tests that simulate RNG_SR_SEIS/SECS to verify retry and fail-closed behavior.

Security signals we found

01

RNG seed-error flag detection added (RNG_SR_SEIS, RNG_SR_SECS)

02

Bounded retry with recovery sequence instead of silent continuation

03

Fail-closed escalation on persistent RNG faults

04

Zero-value and repeated-value RNG samples rejected

05

Post-read status recheck to close polling race

06

Keyboard/numpad shuffle wrapped in OSError exception handler to maintain usability

Risk score

Why this scored 66/100

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