[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164452321091.17968.16088246642739956763.git-patchwork-notify@kernel.org>
Date: Thu, 10 Feb 2022 20:00:10 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Vladimir Oltean <vladimir.oltean@....com>
Cc: netdev@...r.kernel.org, f.fainelli@...il.com, andrew@...n.ch,
vivien.didelot@...il.com, olteanv@...il.com, davem@...emloft.net,
kuba@...nel.org, rafael.richter@....de, daniel.klauer@....de
Subject: Re: [PATCH net] net: dsa: mv88e6xxx: fix use-after-free in
mv88e6xxx_mdios_unregister
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Thu, 10 Feb 2022 19:40:17 +0200 you wrote:
> Since struct mv88e6xxx_mdio_bus *mdio_bus is the bus->priv of something
> allocated with mdiobus_alloc_size(), this means that mdiobus_free(bus)
> will free the memory backing the mdio_bus as well. Therefore, the
> mdio_bus->list element is freed memory, but we continue to iterate
> through the list of MDIO buses using that list element.
>
> To fix this, use the proper list iterator that handles element deletion
> by keeping a copy of the list element next pointer.
>
> [...]
Here is the summary with links:
- [net] net: dsa: mv88e6xxx: fix use-after-free in mv88e6xxx_mdios_unregister
https://git.kernel.org/netdev/net/c/51a04ebf2112
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