lkml.org 
[lkml]   [2022]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH net v2] macsec: fix UAF bug for real_dev
From
Date
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


\
 
 \ /
  Last update: 2022-06-01 12:52    [W:0.075 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site