[Bug 197246] [patch] use-after-free bug in pipe_dtor()
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Feb 1 17:23:08 UTC 2015
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 at FreeBSD.org
Reporter: luke.tw at 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.
More information about the freebsd-bugs
mailing list