1
0
Fork 0
alistair23-linux/include/net/bluetooth
Luiz Augusto von Dentz 6ad2e647d9 Bluetooth: Disconnect if E0 is used for Level 4
commit 8746f135bb upstream.

E0 is not allowed with Level 4:

BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C page 1319:

  '128-bit equivalent strength for link and encryption keys
   required using FIPS approved algorithms (E0 not allowed,
   SAFER+ not allowed, and P-192 not allowed; encryption key
   not shortened'

SC enabled:

> HCI Event: Read Remote Extended Features (0x23) plen 13
        Status: Success (0x00)
        Handle: 256
        Page: 1/2
        Features: 0x0b 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          Secure Simple Pairing (Host Support)
          LE Supported (Host)
          Secure Connections (Host Support)
> HCI Event: Encryption Change (0x08) plen 4
        Status: Success (0x00)
        Handle: 256
        Encryption: Enabled with AES-CCM (0x02)

SC disabled:

> HCI Event: Read Remote Extended Features (0x23) plen 13
        Status: Success (0x00)
        Handle: 256
        Page: 1/2
        Features: 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          Secure Simple Pairing (Host Support)
          LE Supported (Host)
> HCI Event: Encryption Change (0x08) plen 4
        Status: Success (0x00)
        Handle: 256
        Encryption: Enabled with E0 (0x01)
[May 8 20:23] Bluetooth: hci0: Invalid security: expect AES but E0 was used
< HCI Command: Disconnect (0x01|0x0006) plen 3
        Handle: 256
        Reason: Authentication Failure (0x05)

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-17 10:11:22 +02:00
..
bluetooth.h Bluetooth: Fix locking in bt_accept_enqueue() for BH context 2019-01-22 09:51:20 +01:00
hci.h Bluetooth: Add support for LE ping feature 2019-07-06 15:29:12 +02:00
hci_core.h Bluetooth: Disconnect if E0 is used for Level 4 2020-10-17 10:11:22 +02:00
hci_mon.h Bluetooth: Add support for sending MGMT commands and events to monitor 2016-09-19 20:19:34 +02:00
hci_sock.h Bluetooth: Add support for controller specific logging 2015-11-19 17:50:28 +01:00
l2cap.h Bluetooth: L2CAP: Fix calling sk_filter on non-socket based channel 2020-10-17 10:11:22 +02:00
mgmt.h Bluetooth: Implement secondary advertising on different PHYs 2018-07-30 13:44:53 +02:00
rfcomm.h Bluetooth: convert rfcomm_dlc.refcnt from atomic_t to refcount_t 2017-04-12 22:02:36 +02:00
sco.h Bluetooth: Move SCO timeout constants into net/bluetooth/sco.c 2014-07-11 13:58:58 +03:00