Re: [PATCH v2] net: usb: fix possible use-after-free in smsc75xx_bind

From: patchwork-bot+netdevbpf
Date: Wed Jun 16 2021 - 15:40:11 EST


Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed, 16 Jun 2021 10:48:33 +0800 you wrote:
> The commit 46a8b29c6306 ("net: usb: fix memory leak in smsc75xx_bind")
> fails to clean up the work scheduled in smsc75xx_reset->
> smsc75xx_set_multicast, which leads to use-after-free if the work is
> scheduled to start after the deallocation. In addition, this patch
> also removes a dangling pointer - dev->data[0].
>
> This patch calls cancel_work_sync to cancel the scheduled work and set
> the dangling pointer to NULL.
>
> [...]

Here is the summary with links:
- [v2] net: usb: fix possible use-after-free in smsc75xx_bind
https://git.kernel.org/netdev/net/c/56b786d86694

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html