Re: [PATCH net] net/xen-netback: prevent UAF in xenvif_flush_hash()

From: patchwork-bot+netdevbpf
Date: Wed Aug 28 2024 - 20:21:06 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Fri, 23 Aug 2024 03:11:09 +0900 you wrote:
> During the list_for_each_entry_rcu iteration call of xenvif_flush_hash,
> kfree_rcu does not exist inside the rcu read critical section, so if
> kfree_rcu is called when the rcu grace period ends during the iteration,
> UAF occurs when accessing head->next after the entry becomes free.
>
> Therefore, to solve this, you need to change it to list_for_each_entry_safe.
>
> [...]

Here is the summary with links:
- [net] net/xen-netback: prevent UAF in xenvif_flush_hash()
https://git.kernel.org/netdev/net-next/c/0fa5e94a1811

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