summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btusb.c
diff options
context:
space:
mode:
authorDavid Herrmann2013-04-05 14:57:34 +0200
committerGustavo Padovan2013-04-06 04:44:14 +0200
commitb3916db32c4a3124eee9f3742a2f4723731d7602 (patch)
tree342531410aa6985decfc173e3bf892d7b4ec47e8 /drivers/bluetooth/btusb.c
parentBluetooth: hidp: remove redundant error message (diff)
downloadkernel-qcow2-linux-b3916db32c4a3124eee9f3742a2f4723731d7602.tar.gz
kernel-qcow2-linux-b3916db32c4a3124eee9f3742a2f4723731d7602.tar.xz
kernel-qcow2-linux-b3916db32c4a3124eee9f3742a2f4723731d7602.zip
Bluetooth: hidp: verify l2cap sockets
We need to verify that the given sockets actually are l2cap sockets. If they aren't, we are not supposed to access bt_sk(sock) and we shouldn't start the session if the offsets turn out to be valid local BT addresses. That is, if someone passes a TCP socket to HIDCONNADD, then we access some random offset in the TCP socket (which isn't even guaranteed to be valid). Fix this by checking that the socket is an l2cap socket. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'drivers/bluetooth/btusb.c')
0 files changed, 0 insertions, 0 deletions