]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: SMP: Fix not generating mackey and ltk when repairing
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 17 Nov 2025 18:45:13 +0000 (13:45 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 20 Nov 2025 22:02:07 +0000 (17:02 -0500)
commit545d7827b2cd5de5eb85580cebeda6b35b3ff443
treeeee93edbd51b3854b82d6d8fe6aaea1a06e10080
parentc884a0b27b4586e607431d86a1aa0bb4fb39169c
Bluetooth: SMP: Fix not generating mackey and ltk when repairing

The change eed467b517e8 ("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 ffee202a78c2 ("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: eed467b517e8 ("Bluetooth: fix passkey uninitialized when used")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/smp.c