linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] USB: serial: console: fix two use-after-free bugs
@ 2017-10-04  9:01 Johan Hovold
  2017-10-04  9:01 ` [PATCH 1/2] USB: serial: console: fix use-after-free on disconnect Johan Hovold
  2017-10-04  9:01 ` [PATCH 2/2] USB: serial: console: fix use-after-free after failed setup Johan Hovold
  0 siblings, 2 replies; 9+ messages in thread
From: Johan Hovold @ 2017-10-04  9:01 UTC (permalink / raw)
  To: linux-usb; +Cc: Andrey Konovalov, linux-kernel, Johan Hovold

A recent clean-up patch of mine did more than intended and introduced
the potential for a use-after-free on disconnect under some very
specific circumstances. Fortunately those circumstances were not obscure
enough to prevent Andrey's fuzzing from triggering the bug.

While fixing this one I found a related issue through inspection which
dates back to 2006.

Johan


Johan Hovold (2):
  USB: serial: console: fix use-after-free on disconnect
  USB: serial: console: fix use-after-free after failed setup

 drivers/usb/serial/console.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.14.2

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

end of thread, other threads:[~2017-10-09 11:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-04  9:01 [PATCH 0/2] USB: serial: console: fix two use-after-free bugs Johan Hovold
2017-10-04  9:01 ` [PATCH 1/2] USB: serial: console: fix use-after-free on disconnect Johan Hovold
2017-10-04 14:39   ` Greg KH
2017-10-07  8:56   ` Jaejoong Kim
2017-10-09 10:41     ` Johan Hovold
2017-10-09 11:05   ` Andrey Konovalov
2017-10-09 11:10     ` Johan Hovold
2017-10-04  9:01 ` [PATCH 2/2] USB: serial: console: fix use-after-free after failed setup Johan Hovold
2017-10-04 14:39   ` Greg KH

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).