Skip to content

bugfix: bound Delta Mode PIN reconstruction - #748

Open
scgbckbone wants to merge 1 commit into
Coldcard:masterfrom
scgbckbone:bugfix/delta-pin-bounds
Open

bugfix: bound Delta Mode PIN reconstruction#748
scgbckbone wants to merge 1 commit into
Coldcard:masterfrom
scgbckbone:bugfix/delta-pin-bounds

Conversation

@scgbckbone

Copy link
Copy Markdown
Collaborator

Bound bootloader Delta Mode PIN reconstruction and fail closed on malformed PIN data. Removes the unnecessary terminator write and prevents the reverse walk from moving before the buffer.

This is a defense-in-depth correctness fix, not an exploitable security issue: supported PIN entry and trick-PIN provisioning cannot produce the malformed inputs needed to reach these bounds.

Validation: Mk4 and Q pins.o compile. No Python test applies because the simulator does not execute bootloader C.

@scgbckbone scgbckbone left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK by KIMI 3

@doc-hex doc-hex added the bootloader Affects bootloader ROM area, set in stone at factory. label Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bootloader Affects bootloader ROM area, set in stone at factory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants