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

bugfix: separate DFU container limit from firmware bound

Public commit record

What the developer wrote

Authored by scgbckbone

73/100 · Adequate
bugfix: separate DFU container limit from firmware bound

FW_MAX_LENGTH_MK4 now bounds only the firmware itself to the
world-checksum-covered flash region (4k aligned, no DFU-wrapper slack
carved out). New FW_MAX_DFU_SIZE_MK4 adds room for the bootloader
element and DFU wrapper so multi-element -factory.dfu images remain
selectable in the MicroSD file picker.
✓ Specific, 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 the COLDCARD firmware update process. Previously, the maximum file size allowed for a firmware update file (.dfu) was set too small because it was based on the firmware's own size limit, not accounting for extra data that comes with 'factory' update images (which include a bootloader and a DFU wrapper). As a result, legitimate factory firmware files could not be selected from the MicroSD card picker. The fix separates the two limits: one for the actual firmware size, and a larger one for the .dfu container shown in the file picker. There is no direct evidence in the commit that this was a security vulnerability, but overly restrictive size checks can sometimes hide or complicate downgrade or supply-chain issues.

Recommended action

Treat as a bugfix. Verify that the new FW_MAX_DFU_SIZE_MK4 still rejects oversized or maliciously large .dfu files, and that downstream flashing code continues to use FW_MAX_LENGTH_MK4 (or equivalent) to enforce the actual firmware region. Review whether the file picker should also validate the DFU suffix/header before accepting files by size alone.

Security signals we found

01

Boundary/length constant changed in firmware update path

02

File picker size limit relaxed to allow multi-element DFU containers

03

Firmware flash region bound kept unchanged and 4k-aligned

04

No signature, checksum, or verification logic modified

Risk score

Why this scored 34/100

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