Modifications and additions in 3.5.5 Pairing Failed

Security Threat in Bluetooth® LESC Pairing

The changes described here are listed in chapters 3.5.3 and 4.5.3 of the erratum document.

A paragraph was added to the Bluetooth® Core Specification to clarify how to report a failed pairing attempt due to an invalid public key.

During LE Secure Connections pairing, this command should be sent if the remote device’s public key is invalid (see [Vol 3] Part H, Section 2.3.5.6.1). The Reason field should be set to "DHKey Check Failed”.
pairing failed packet

It is recommended to send DHKey Check Failed due to an invalid public key. There is no restriction on when this DHKey Check Failed should happen, as long as it is reported when the public key is identified as being invalid.

The ble_lesc module APIs available in nRF5 SDK v15.0.0 generates a random DHKey if an invalid public key is detected. This causes the required DHKey Check Failed response to be sent to the peer signaling a breakdown of the pairing procedure.