[PATCH 0/3] Fix Legacy Pairing using the mgmt interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

During tests it was found a problem that when using the mgmt to pair
devices that only support Legacy Pairing, it was not working. Here are
some logs[1].

The problem is that pairing was using the HIGH security level, which
for devices without SSP support means using a 16 digit pin code. Which
is unacceptable in most scenarios.

One question that might be asked is why this isn't a problem when not
using the mgmt interface. The problem doesn't happen when using the
hciops backend because the way that the pin code is requested in
userspace (the interesting bit is at plugins/hciops.c:1348, inside
pin_code_request()), userspace at that point has no information if the
pin code request should be marked as "secure" or not.

The solution for this problem is divided in two main parts, adding one
more condition for deciding whether to authenticate the link, if the
link requires MITM protection no matter the security level we should
authenticate the link. The other part is to decrease the requested
security level when pairing using the mgmt interface.


Cheers,
--

[1] http://littlechina.org/~vcgomes/hcidump-master.txt
    http://littlechina.org/~vcgomes/hcidump-slave.txt
    http://littlechina.org/~vcgomes/kernel-log.txt


Vinicius Costa Gomes (3):
  Bluetooth: Require authentication if MITM protection is requested
  Bluetooth: Fix not sending a Link Key Negative Reply
  Bluetooth: Use the MEDIUM security level for pairings

 net/bluetooth/hci_event.c |   13 ++++++++-----
 net/bluetooth/mgmt.c      |    8 +++-----
 2 files changed, 11 insertions(+), 10 deletions(-)

--
1.7.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux