Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1293807

Re: use-after-free in sixpack_close

From One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Newsgroups linux.kernel
Subject Re: use-after-free in sixpack_close
Date 2015-12-17 12:50 +0100
Message-ID <qGFei-7iO-13@gated-at.bofh.it> (permalink)
References <qGELf-74q-1@gated-at.bofh.it>
Organization Intel Corporation

Show all headers | View raw


> This report is then followed by a dozen of other use-after-free reports.
> 
> On commit edb42dc7bc0da0125ceacab810a553ce1f0cac8d (Dec 15).
> 
> Thank you

sixpack_close does unregister_netdev(sp->dev), which frees sp as sp is
actually allocated via alloc_netdev()

Then deletes two timers within sp

Then frees two buffers indexed off sp

The mkiss driver also appears to share the same bug and references
ax->rbuff/xbuff after they have been freed, and then writes to ax->tty.


Alan



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

use-after-free in sixpack_close Dmitry Vyukov <dvyukov@google.com> - 2015-12-17 12:20 +0100
  Re: use-after-free in sixpack_close One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-17 12:50 +0100
    Re: use-after-free in sixpack_close David Miller <davem@davemloft.net> - 2015-12-17 22:10 +0100
      Re: use-after-free in sixpack_close Ralf Baechle DL5RB <ralf@linux-mips.org> - 2015-12-17 22:40 +0100
      Re: use-after-free in sixpack_close One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-18 00:50 +0100
        Re: use-after-free in sixpack_close David Miller <davem@davemloft.net> - 2015-12-18 22:10 +0100
          Re: use-after-free in sixpack_close One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-18 23:10 +0100

csiph-web