Files
linux-stable-mirror/net/bluetooth
Luiz Augusto von Dentz 429bcd8ffa Bluetooth: SMP: Fix not generating mackey and ltk when repairing
[ Upstream commit 545d7827b2 ]

The change eed467b517 ("Bluetooth: fix passkey uninitialized when used")
introduced a goto that bypasses the creation of temporary mackey and ltk
which are later used by the likes of DHKey Check step.

Later ffee202a78 ("Bluetooth: Always request for user confirmation for
Just Works (LE SC)") which means confirm_hint is always set in case
JUST_WORKS so the branch checking for an existing LTK becomes pointless
as confirm_hint will always be set, so this just merge both cases of
malicious or legitimate devices to be confirmed before continuing with the
pairing procedure.

Link: https://github.com/bluez/bluez/issues/1622
Fixes: eed467b517 ("Bluetooth: fix passkey uninitialized when used")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-07 06:24:54 +09:00
..
2025-11-24 10:35:56 +01:00
2025-11-24 10:35:56 +01:00
2025-11-13 15:34:31 -05:00