summaryrefslogtreecommitdiff
path: root/drivers/usb/input/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorOleh Konko <security@1seal.org>2026-03-31 11:52:13 +0000
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-04-01 16:48:06 -0400
commit20756fec2f0108cb88e815941f1ffff88dc286fe (patch)
treebed4e80c3c9f65bb05c1fd613f5e5c5c3bee18c3 /drivers/usb/input/git@git.tavy.me:linux.git
parentd05111bfe37bfd8bd4d2dfe6675d6bdeef43f7c7 (diff)
Bluetooth: SMP: derive legacy responder STK authentication from MITM state
The legacy responder path in smp_random() currently labels the stored STK as authenticated whenever pending_sec_level is BT_SECURITY_HIGH. That reflects what the local service requested, not what the pairing flow actually achieved. For Just Works/Confirm legacy pairing, SMP_FLAG_MITM_AUTH stays clear and the resulting STK should remain unauthenticated even if the local side requested HIGH security. Use the established MITM state when storing the responder STK so the key metadata matches the pairing result. This also keeps the legacy path aligned with the Secure Connections code, which already treats JUST_WORKS/JUST_CFM as unauthenticated. Fixes: fff3490f4781 ("Bluetooth: Fix setting correct authentication information for SMP STK") Cc: stable@vger.kernel.org Signed-off-by: Oleh Konko <security@1seal.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/usb/input/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions