Re: [PATCH net v2] netdevsim: fib: fix use-after-free of FIB data via debugfs

From: patchwork-bot+netdevbpf

Date: Tue Jun 02 2026 - 16:04:53 EST


Hello:

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

On Fri, 29 May 2026 06:57:17 -0700 you wrote:
> netdevsim: fib: fix use-after-free of FIB data via debugfs
>
> Writing to the netdevsim debugfs file
> "netdevsim/netdevsimN/fib/nexthop_bucket_activity" enters
> nsim_nexthop_bucket_activity_write(), which looks up a nexthop in
> data->nexthop_ht under rtnl_lock(). If a network namespace teardown,
> devlink reload or device deletion runs concurrently, nsim_fib_destroy()
> frees that rhashtable (and the surrounding nsim_fib_data) while the
> write is still in flight, leading to a slab-use-after-free:
>
> [...]

Here is the summary with links:
- [net,v2] netdevsim: fib: fix use-after-free of FIB data via debugfs
https://git.kernel.org/netdev/net-next/c/5893cc75a191

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