Description: Bluetooth: bnep: bnep_add_connection() should verify that it's dealing with l2cap socket References: https://source.android.com/security/bulletin/pixel/2017-12-01 Notes: bwh> Depends on commit b3916db32c4a "Bluetooth: hidp: verify l2cap sockets" bwh> which is also an important security fix. Should also apply commit bwh> 96c26653ce65 "Bluetooth: cmtp: cmtp_add_connection() should verify that bwh> it's dealing with l2cap socket". Bugs: upstream: released (3.19-rc3) [71bb99a02b32b4cc4265118e85f6035ca72923f0] 4.9-upstream-stable: N/A "Fixed before branching point" 3.16-upstream-stable: released (3.16.52) [77369e6ee42b28a529932f5f7a5522de73310d21] 3.2-upstream-stable: released (3.2.97) [d5623517462d7bdf03cae13e8b713389b0cdd381] sid: released (4.0.2-1) 4.9-stretch-security: N/A "Fixed before branching point" 3.16-jessie-security: released (3.16.51-3+deb8u1) [bugfix/all/bluetooth-bnep-bnep_add_connection-should-verify-tha.patch] 3.2-wheezy-security: released (3.2.96-1) [bugfix/all/bluetooth-bnep-bnep_add_connection-should-verify-tha.patch]