Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Feb 2015 17:23:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 197246] [patch] use-after-free bug in pipe_dtor()
Message-ID:  <bug-197246-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197246

            Bug ID: 197246
           Summary: [patch] use-after-free bug in pipe_dtor()
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: luke.tw@gmail.com

Created attachment 152442
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152442&action=edit
patch for pipd_dtor()

There is a use-after-free bug in pipe_dtor(). This will result in kernel panic
when memguard is enabled.

* free
  pipeclose(dpipe)
  -> uma_zfree(pipe_zone, cpipe->pipe_pair);

* use
  if (dpipe->pipe_state & PIPE_NAMED) {


I attach a patch to fix this bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197246-8>