Skip to content

host/sm: Reject Legacy pairing confirm reflection attack#2201

Open
guy-m wants to merge 1 commit intoapache:masterfrom
guy-m:guym/jw_pair_reflection_attack
Open

host/sm: Reject Legacy pairing confirm reflection attack#2201
guy-m wants to merge 1 commit intoapache:masterfrom
guy-m:guym/jw_pair_reflection_attack

Conversation

@guy-m
Copy link
Copy Markdown
Contributor

@guy-m guy-m commented Apr 7, 2026

When the responder mirrors the initiator's confirm and random values
(Sconfirm=Mconfirm, Srand=Mrand), the c1 check passes trivially,
bypassing mismatch detection and causing an
HCI encryption failure (0x06) instead of Pairing Failed (0x04).

Detect Srand==Mrand in ble_sm_lgcy_random_rx and abort
with BLE_SM_ERR_CONFIRM_MISMATCH.

Fixes SM/CEN/JW/BI-06-C and SM/CEN/PKE/BI-03-C

@guy-m guy-m changed the title host/sm: Reject Legacy JW pairing confirmation reflection attack host/sm: Reject Legacy pairing confirmation reflection attack Apr 7, 2026
@guy-m guy-m changed the title host/sm: Reject Legacy pairing confirmation reflection attack host/sm: Reject Legacy pairing confirm reflection attack Apr 7, 2026
@guy-m guy-m force-pushed the guym/jw_pair_reflection_attack branch from 5ff549b to 670d7b5 Compare April 8, 2026 11:51
When the responder mirrors the initiator's confirm and random
values (Sconfirm=Mconfirm, Srand=Mrand), the c1 check passes
trivially, bypassing mismatch detection and causing an HCI
encryption failure (0x06) instead of Pairing Failed (0x04).

Detect Srand==Mrand in ble_sm_lgcy_random_rx and abort
with LE_SM_ERR_CONFIRM_MISMATCH.

Fixes SM/CEN/JW/BI-06-C and SM/CEN/PKE/BI-03-C
@guy-m guy-m force-pushed the guym/jw_pair_reflection_attack branch from 670d7b5 to a2bb049 Compare April 8, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants