Commit 77272b10 authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by sanglipeng
Browse files

Bluetooth: Fix use-after-free in hci_remove_ltk/hci_remove_irk

stable inclusion
from stable-v5.10.184
commit 2270e32bd1995f90377e217b478bc38af1ab15a9
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IRR2

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2270e32bd1995f90377e217b478bc38af1ab15a9



--------------------------------

commit c5d2b6fa upstream.

Similar to commit 0f7d9b31 ("netfilter: nf_tables: fix use-after-free
in nft_set_catchall_destroy()"). We can not access k after kfree_rcu()
call.

Cc: stable@vger.kernel.org
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 avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 83311582
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment