Bluetooth: L2CAP: Fix potential user-after-free
This fixes all instances of which requires to allocate a buffer calling alloc_skb which may release the chan lock and reacquire later which makes it possible that the chan is disconnected in the meantime. Fixes: a6a5568c ("Bluetooth: Lock the L2CAP channel when sending") Reported-by: NAlexander Coffin <alex.coffin@matician.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Showing
想要评论请 注册 或 登录