Bluetooth: LE Security fixes/improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Bluetooth: Fix potential NULL pointer dereference in SMPnet/ | +7 | 0 replies | |
| 2/6 | Bluetooth: Add missing cmd_status handler for LE_Start_Encryptionnet/ | +34 | 0 replies | |
| 3/6 | Bluetooth: Fix SMP confirmation callback handlingnet/ | +4 | 0 replies | |
| 4/6 | Bluetooth: Add SMP flag to track which side is the initiatornet/ net/ | +7 | 1 reply | |
| 5/6 | Bluetooth: Don't try to confirm locally initiated SMP pairingnet/ | +5 | 0 replies | |
| 6/6 | Bluetooth: Remove LTK re-encryption procedurenet/ net/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)