]> git.ipfire.org Git - people/ms/linux.git/commit
Bluetooth: Fix valid Identity Address check
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 14 Jan 2015 18:51:37 +0000 (20:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:52:44 +0000 (14:52 -0800)
commitf879c09458deaffbbde453fb95d0117a014fdb72
tree355ec1c8ebc8f4edaa89172c3d46fc25244e5063
parentc86e12f0192b1c700ba884b6db1957fe7b79d2b3
Bluetooth: Fix valid Identity Address check

commit e12af489b91d47a806f4e96e4edc20df612482e7 upstream.

According to the Bluetooth core specification valid identity addresses
are either Public Device Addresses or Static Random Addresses. IRKs
received with any other type of address should be discarded since we
cannot assume to know the permanent identity of the peer device.

This patch fixes a missing check for the Identity Address when receiving
the Identity Address Information SMP PDU.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/smp.c