mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-12 06:01:58 +00:00
Bluetooth: L2CAP: Fix use-after-free in l2cap_disconnect_{req,rsp}
commita2a9339e1cupstream. Similar to commitd0be8347c6("Bluetooth: L2CAP: Fix use-after-free caused by l2cap_chan_put"), just use l2cap_chan_hold_unless_zero to prevent referencing a channel that is about to be destroyed. Cc: stable@kernel.org Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Min Li <lm0963hack@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
71964e93fc
commit
348d446762
1 changed files with 6 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue