]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
Bluetooth: L2CAP: Fix missing key size check for L2CAP_LE_CONN_REQ
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 13 Feb 2026 18:33:33 +0000 (13:33 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 23 Feb 2026 21:08:15 +0000 (16:08 -0500)
commit138d7eca445ef37a0333425d269ee59900ca1104
treeaddfa5ee74560fb0918cff496376ca4cd4c26ca7
parenta8d1d73c81d1e70d2aa49fdaf59d933bb783ffe5
Bluetooth: L2CAP: Fix missing key size check for L2CAP_LE_CONN_REQ

This adds a check for encryption key size upon receiving
L2CAP_LE_CONN_REQ which is required by L2CAP/LE/CFC/BV-15-C which
expects L2CAP_CR_LE_BAD_KEY_SIZE.

Link: https://lore.kernel.org/linux-bluetooth/5782243.rdbgypaU67@n9w6sw14/
Fixes: 27e2d4c8d28b ("Bluetooth: Add basic LE L2CAP connect request receiving support")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Christian Eggers <ceggers@arri.de>
net/bluetooth/l2cap_core.c