diff options
| author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-10-05 13:59:59 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-25 11:13:33 +0200 |
| commit | be91967244bec4a0f1ca0f4a207764c554bfabc2 (patch) | |
| tree | c06fed3ffd9b7c9e8326acdfa5554a038803346a /Kconfig | |
| parent | c3830fca233beab7f7928024c288a4ad5e32b00b (diff) | |
| download | linux-be91967244bec4a0f1ca0f4a207764c554bfabc2.tar.gz linux-be91967244bec4a0f1ca0f4a207764c554bfabc2.tar.bz2 linux-be91967244bec4a0f1ca0f4a207764c554bfabc2.zip | |
Bluetooth: hci_event: Fix using memcmp when comparing keys
commit b541260615f601ae1b5d6d0cc54e790de706303b upstream.
memcmp is not consider safe to use with cryptographic secrets:
'Do not use memcmp() to compare security critical data, such as
cryptographic secrets, because the required CPU time depends on the
number of equal bytes.'
While usage of memcmp for ZERO_KEY may not be considered a security
critical data, it can lead to more usage of memcmp with pairing keys
which could introduce more security problems.
Fixes: 455c2ff0a558 ("Bluetooth: Fix BR/EDR out-of-band pairing with only initiator data")
Fixes: 33155c4aae52 ("Bluetooth: hci_event: Ignore NULL link key")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions
