[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200618.201416.134857504304955791.davem@davemloft.net>
Date: Thu, 18 Jun 2020 20:14:16 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ap420073@...il.com
Cc: kuba@...nel.org, netdev@...r.kernel.org, xeb@...l.ru,
eric.dumazet@...il.com
Subject: Re: [PATCH net v2] ip6_gre: fix use-after-free in
ip6gre_tunnel_lookup()
From: Taehee Yoo <ap420073@...il.com>
Date: Tue, 16 Jun 2020 16:04:00 +0000
> In the datapath, the ip6gre_tunnel_lookup() is used and it internally uses
> fallback tunnel device pointer, which is fb_tunnel_dev.
> This pointer variable should be set to NULL when a fb interface is deleted.
> But there is no routine to set fb_tunnel_dev pointer to NULL.
> So, this pointer will be still used after interface is deleted and
> it eventually results in the use-after-free problem.
>
> Test commands:
...
> Splat looks like:
...
> Suggested-by: Eric Dumazet <eric.dumazet@...il.com>
> Fixes: c12b395a4664 ("gre: Support GRE over IPv6")
> Signed-off-by: Taehee Yoo <ap420073@...il.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists