Luiz Augusto von Dentz
1dd8db17ad
Bluetooth: Disconnect if E0 is used for Level 4
...
commit 8746f135bb01872ff412d408ea1aa9ebd328c1f5 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 11:02:19 +02:00
..
2020-01-29 10:24:22 +01:00
2020-08-21 11:01:54 +02:00
2020-01-12 11:24:27 +01:00
2019-12-21 10:41:45 +01:00
2020-10-01 20:40:12 +02:00
2020-07-31 16:44:06 +02:00
2020-10-01 20:40:18 +02:00
2020-10-17 11:02:19 +02:00
2020-06-03 08:16:45 +02:00
2019-05-08 07:19:07 +02:00
2019-07-10 09:55:33 +02:00
2020-06-03 08:16:41 +02:00
2020-10-01 20:40:04 +02:00
2018-09-19 22:47:15 +02:00
2020-05-20 08:15:30 +02:00
2019-12-05 15:35:12 +01:00
2018-07-22 14:27:39 +02:00
2020-04-13 10:32:53 +02:00
2020-01-12 11:24:19 +01:00
2020-10-01 20:40:01 +02:00
2020-03-20 09:07:39 +01:00
2020-10-01 20:40:04 +02:00
2020-09-03 11:21:15 +02:00
2017-05-25 15:44:41 +02:00
2018-09-15 09:43:01 +02:00
2020-01-29 10:24:26 +01:00
2019-04-17 08:36:44 +02:00
2020-10-01 20:39:59 +02:00
2020-07-22 09:10:47 +02:00
2019-06-22 08:17:22 +02:00
2020-07-22 09:10:47 +02:00
2020-10-14 09:48:12 +02:00
2020-10-01 20:40:18 +02:00
2020-05-20 08:15:30 +02:00
2016-10-20 11:23:08 -04:00
2020-10-14 09:48:14 +02:00
2020-09-12 11:47:39 +02:00
2020-07-22 09:10:48 +02:00
2020-05-02 17:23:08 +02:00
2020-08-21 11:02:04 +02:00
2020-10-14 09:48:16 +02:00
2020-10-14 09:48:13 +02:00
2019-03-23 13:19:44 +01:00
2020-06-03 08:16:29 +02:00
2020-08-21 11:01:49 +02:00
2020-01-12 11:24:23 +01:00
2019-04-03 06:24:14 +02:00
2020-10-14 09:48:17 +02:00
2020-06-30 15:38:37 -04:00
2020-10-14 09:48:15 +02:00
2018-04-29 11:32:02 +02:00
2020-10-01 20:40:11 +02:00
2016-10-19 10:58:04 -04:00
2020-10-01 20:40:00 +02:00
2020-10-01 20:40:06 +02:00
2020-10-14 09:48:11 +02:00
2020-10-14 09:48:14 +02:00
2020-08-21 11:01:50 +02:00
2020-10-14 09:48:16 +02:00
2020-08-21 11:02:08 +02:00
2020-08-21 11:02:04 +02:00
2016-10-06 09:52:23 -07:00