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

Bug: Fix BLE Random Data Overlap

Public commit record

What the developer wrote

Authored by cedwies

83/100 · Strong
Bug: Fix BLE Random Data Overlap

When generating a new ble IRK and a new
ble identity address, we generate 32 random
bytes, using random[0-16) for IRK and
random[16,21) for identity address.

The current implementation has a bug which
causes the identity address to be
random[6,12), resulting in an overlap. This
means that the ble identity address leaks 6
bytes of our ble identity resolving key.

Test was added to test this behavior.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit fixes a bug in the BitBox02 hardware wallet firmware where two Bluetooth privacy values were accidentally created from overlapping random bytes. The device intended to use the first 16 random bytes for a secret key (IRK) and a separate later 6 bytes for the public Bluetooth address. Due to an indexing mistake, the address was taken from bytes 6-11 instead of bytes 16-21, meaning 6 bytes of the secret key were also broadcast as part of the public address. This leaks part of the secret key to anyone scanning Bluetooth signals nearby, slightly weakening Bluetooth privacy. A unit test was added to prevent the bug from returning.

Recommended action

Users with BitBox02 Plus devices should update to firmware containing this fix to ensure their BLE IRK is not partially leaked via the identity address. Reviewers should confirm the regression test passes and consider whether any previously generated BLE addresses should be rotated.

Security signals we found

01

Information disclosure: 6 bytes of the 16-byte BLE Identity Resolving Key leaked into the public BLE identity address.

02

Privacy weakening: partial IRK exposure reduces the effectiveness of BLE privacy/resolving mechanisms.

03

Bug class: off-by/incorrect buffer offset in memcpy.

04

Regression test added to enforce correct random byte partitioning.

Risk score

Why this scored 51/100

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