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

bootloader/stage1: fix erase handling for partially erased blocks

Public commit record

What the developer wrote

Authored by Marko Bencun

50/100 · Thin
bootloader/stage1: fix erase handling for partially erased blocks
✓ 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 the BitBox02 bootloader's firmware-erase routine. Previously, when erasing leftover padding after a firmware update, the bootloader started erasing at the exact page where the firmware ended. Because flash memory can only be erased in larger fixed-size blocks, this could leave the final firmware chunk sharing an erase block with padding. That shared block might be erased unintentionally, potentially corrupting the newly written firmware. The fix aligns the erase start to a full erase-block boundary and re-checks whether pages are already erased before acting. The changelog explicitly calls this a fix for 'partially erased flash blocks.'

Recommended action

Treat this as a security-relevant bootloader fix and ensure devices are updated to bootloader v1.2.2. Review whether the previous behavior could lead to a bricked or partially corrupted firmware update under specific size/alignment conditions, and confirm the rewritten last chunk path was safe in prior releases.

Security signals we found

01

Bootloader firmware erase routine could erase a flash block containing both firmware and padding

02

Fix aligns erase start to erase-block boundary and re-checks erased state before erasing

03

Changelog describes the change as a fix for 'partially erased flash blocks'

04

Version bump indicates this is a released bootloader update

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.