]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: L2CAP: Fix not checking l2cap_chan security level
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 7 May 2025 19:00:30 +0000 (15:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:57 +0000 (11:13 +0200)
commit9c2afd452041fe4c21d7b6a59b1f4f0bc030f54c
tree282e6bad6793087089566d83dfdfbb6febccfcd9
parent0b1874a5b1173fbcb2185ab828f4c33d067e551e
Bluetooth: L2CAP: Fix not checking l2cap_chan security level

[ Upstream commit 7af8479d9eb4319b4ba7b47a8c4d2c55af1c31e1 ]

l2cap_check_enc_key_size shall check the security level of the
l2cap_chan rather than the hci_conn since for incoming connection
request that may be different as hci_conn may already been
encrypted using a different security level.

Fixes: 522e9ed157e3 ("Bluetooth: l2cap: Check encryption key size on incoming connection")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/l2cap_core.c