Commit e87da6a0 authored by Min Li's avatar Min Li Committed by Greg Kroah-Hartman
Browse files

Bluetooth: Fix potential use-after-free when clear keys



[ Upstream commit 3673952c ]

Similar to commit c5d2b6fa ("Bluetooth: Fix use-after-free in
hci_remove_ltk/hci_remove_irk"). We can not access k after kfree_rcu()
call.

Fixes: d7d41682 ("Bluetooth: Fix Suspicious RCU usage warnings")
Signed-off-by: default avatarMin Li <lm0963hack@gmail.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6668886e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment