Skip to content

Bluetooth: LE Security fixes/improvements

[email protected] linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Bluetooth: Fix potential NULL pointer dereference in SMPnet/bluetooth/smp.c+7 -10 replies
2/6Bluetooth: Add missing cmd_status handler for LE_Start_Encryptionnet/bluetooth/hci_event.c+34 -00 replies
3/6Bluetooth: Fix SMP confirmation callback handlingnet/bluetooth/smp.c+4 -00 replies
4/6Bluetooth: Add SMP flag to track which side is the initiatornet/bluetooth/smp.c net/bluetooth/smp.h+7 -01 reply
5/6Bluetooth: Don't try to confirm locally initiated SMP pairingnet/bluetooth/smp.c+5 -00 replies
6/6Bluetooth: Remove LTK re-encryption procedurenet/bluetooth/smp.c net/bluetooth/smp.h+7 -490 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Bluetooth: LE Security fixes/improvements

Hi,

Here's a set of patches I've ended up creating today due to various issues found with LE security handling. Most of the issues fixed have been in the three for a bit longer time, but the issue fixed by 3/6 was introduced (by me) by the change to use passkey notification instead of confirmation.

I've left the LTK re-encryption removal to be the last patch since it can be debated whether we want it or not. I've on occasion had quite many LTK re-encryption failures when testing against my iPhone, but mostly it works just fine. Removing the re-encryption drops the failures to 0. Today I kept getting local failures (Start Encrypt cmd_status) constantly with local Intel Bluetooth hardware and a Bluetooth mouse. Removing the re-encryption made this work again.

Johan

----------------------------------------------------------------
Johan Hedberg (6):
Bluetooth: Fix potential NULL pointer dereference in SMP
Bluetooth: Add missing cmd_status handler for LE_Start_Encryption
Bluetooth: Fix SMP confirmation callback handling
Bluetooth: Add SMP flag to track which side is the initiator
Bluetooth: Don't try to confirm locally initiated SMP pairing
Bluetooth: Remove LTK re-encryption procedure

 net/bluetooth/hci_event.c | 34 +++++++++++++++++++++
 net/bluetooth/smp.c       | 71
++++++++++++++++---------------------------
 net/bluetooth/smp.h       |  7 ++---
 3 files changed, 63 insertions(+), 49 deletions(-)