]> CyberLeo.Net >> Repos - FreeBSD/releng/10.1.git/commit
The Sun RPC framework uses a netbuf structure to represent the
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 29 Sep 2015 18:07:18 +0000 (18:07 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 29 Sep 2015 18:07:18 +0000 (18:07 +0000)
commitc1862022a27cd6bdf8761b1635f39c2dbe2fb8b8
tree2f75cbbba8e549cc0089f6ee3a4473cd9d3a9c97
parent08c2487f5411470b6ce02612d93ac1f5c51578ce
The Sun RPC framework uses a netbuf structure to represent the
transport specific form of a universal transport address.  The
structure is expected to be opaque to consumers.  In the current
implementation, the structure contains a pointer to a buffer
that holds the actual address.

In rpcbind(8), netbuf structures are copied directly, which would
result in two netbuf structures that reference to one shared
address buffer.  When one of the two netbuf structures is freed,
access to the other netbuf structure would result in an undefined
result that may crash the rpcbind(8) daemon.

Fix this by making a copy of the buffer that is going to be freed
instead of doing a shallow copy.

Security: FreeBSD-SA-15:24.rpcbind
Security: CVE-2015-7236
Approved by: so

git-svn-id: svn://svn.freebsd.org/base/releng/10.1@288385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
UPDATING
sys/conf/newvers.sh
usr.sbin/rpcbind/rpcb_svc_com.c