linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] net/ppp: A use after free in ppp_unregister_channe
@ 2021-03-11 12:34 lyl2019
  2021-03-12 10:12 ` Tom Parkin
  2021-03-15 11:50 ` Guillaume Nault
  0 siblings, 2 replies; 8+ messages in thread
From: lyl2019 @ 2021-03-11 12:34 UTC (permalink / raw)
  To: paulus, davem; +Cc: linux-ppp, netdev, linux-kernel

File: drivers/net/ppp/ppp_generic.c

In ppp_unregister_channel, pch could be freed in ppp_unbridge_channels()
but after that pch is still in use. Inside the function ppp_unbridge_channels,
if "pchbb = pch" is true and then pch will be freed.

I checked the commit history and found that this problem is introduced from
4cf476ced45d7 ("ppp: add PPPIOCBRIDGECHAN and PPPIOCUNBRIDGECHAN ioctls").

I have no idea about how to generate a suitable patch, sorry.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-15 16:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 12:34 [BUG] net/ppp: A use after free in ppp_unregister_channe lyl2019
2021-03-12 10:12 ` Tom Parkin
2021-03-12 14:47   ` lyl2019
2021-03-15  9:57     ` Tom Parkin
2021-03-15 12:18     ` Guillaume Nault
2021-03-15 16:58       ` Tom Parkin
2021-03-15 12:04   ` Guillaume Nault
2021-03-15 11:50 ` Guillaume Nault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).