You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
938 B

  1. Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
  2. Date: 2017-05-29
  3. Initial Package Version: 0.2.4 (also affects earlier versions)
  4. Upstream Status: Unknown
  5. Origin: Guido Vranken
  6. Description: Fixes CVE-2017-8779 (DOS by remote attackers - memory consumption
  7. without subsequent free).
  8. diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
  9. index 5862c26..e11f61b 100644
  10. --- a/src/rpcb_svc_com.c
  11. +++ b/src/rpcb_svc_com.c
  12. @@ -48,6 +48,7 @@
  13. #include <rpc/rpc.h>
  14. #include <rpc/rpcb_prot.h>
  15. #include <rpc/svc_dg.h>
  16. +#include <rpc/rpc_com.h>
  17. #include <netconfig.h>
  18. #include <errno.h>
  19. #include <syslog.h>
  20. @@ -432,7 +433,7 @@ rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp /*__unused*/,
  21. static bool_t
  22. xdr_encap_parms(XDR *xdrs, struct encap_parms *epp)
  23. {
  24. - return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), ~0));
  25. + return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), RPC_MAXDATASIZE));
  26. }
  27. /*