[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <167367241680.28163.5038142496471587881.git-patchwork-notify@kernel.org>
Date: Sat, 14 Jan 2023 05:00:16 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Jisoo Jang <jisoo.jang@...sei.ac.kr>
Cc: pabeni@...hat.com, krzysztof.kozlowski@...aro.org,
netdev@...r.kernel.org, edumazet@...gle.com, kuba@...nel.org,
dokyungs@...sei.ac.kr, linuxlovemin@...sei.ac.kr
Subject: Re: [PATCH v4] net: nfc: Fix use-after-free in local_cleanup()
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 11 Jan 2023 22:19:14 +0900 you wrote:
> Fix a use-after-free that occurs in kfree_skb() called from
> local_cleanup(). This could happen when killing nfc daemon (e.g. neard)
> after detaching an nfc device.
> When detaching an nfc device, local_cleanup() called from
> nfc_llcp_unregister_device() frees local->rx_pending and decreases
> local->ref by kref_put() in nfc_llcp_local_put().
> In the terminating process, nfc daemon releases all sockets and it leads
> to decreasing local->ref. After the last release of local->ref,
> local_cleanup() called from local_release() frees local->rx_pending
> again, which leads to the bug.
>
> [...]
Here is the summary with links:
- [v4] net: nfc: Fix use-after-free in local_cleanup()
https://git.kernel.org/netdev/net/c/4bb4db7f3187
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists