3 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8779
5 Patch copied from the bug reporter's 3rd-party repository:
7 https://github.com/guidovranken/rpcbomb/blob/master/rpcbind_patch.txt
9 diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
10 index 5862c26..e11f61b 100644
11 --- a/src/rpcb_svc_com.c
12 +++ b/src/rpcb_svc_com.c
15 #include <rpc/rpcb_prot.h>
16 #include <rpc/svc_dg.h>
17 +#include <rpc/rpc_com.h>
18 #include <netconfig.h>
21 @@ -432,7 +433,7 @@ rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp /*__unused*/,
23 xdr_encap_parms(XDR *xdrs, struct encap_parms *epp)
25 - return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), ~0));
26 + return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), RPC_MAXDATASIZE));