Messages in this thread | | | Subject | Re: [PATCH net v2] macsec: fix UAF bug for real_dev | From | patchwork-bot+netdevbpf@kernel ... | Date | Wed, 01 Jun 2022 10:50:12 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (master) by Paolo Abeni <pabeni@redhat.com>:
On Tue, 31 May 2022 15:45:00 +0800 you wrote: > Create a new macsec device but not get reference to real_dev. That can > not ensure that real_dev is freed after macsec. That will trigger the > UAF bug for real_dev as following: > > ================================================================== > BUG: KASAN: use-after-free in macsec_get_iflink+0x5f/0x70 drivers/net/macsec.c:3662 > Call Trace: > ... > macsec_get_iflink+0x5f/0x70 drivers/net/macsec.c:3662 > dev_get_iflink+0x73/0xe0 net/core/dev.c:637 > default_operstate net/core/link_watch.c:42 [inline] > rfc2863_policy+0x233/0x2d0 net/core/link_watch.c:54 > linkwatch_do_dev+0x2a/0x150 net/core/link_watch.c:161 > > [...]
Here is the summary with links: - [net,v2] macsec: fix UAF bug for real_dev https://git.kernel.org/netdev/net/c/196a888ca657
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |