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.

27 lines
824 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. --- a/src/rpcb_svc_com.c
  9. +++ b/src/rpcb_svc_com.c
  10. @@ -48,6 +48,7 @@
  11. #include <rpc/rpc.h>
  12. #include <rpc/rpcb_prot.h>
  13. #include <rpc/svc_dg.h>
  14. +#include <rpc/rpc_com.h>
  15. #include <netconfig.h>
  16. #include <errno.h>
  17. #include <syslog.h>
  18. @@ -432,7 +433,7 @@ rpcbproc_taddr2uaddr_com(void *arg, stru
  19. static bool_t
  20. xdr_encap_parms(XDR *xdrs, struct encap_parms *epp)
  21. {
  22. - return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), ~0));
  23. + return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), RPC_MAXDATASIZE));
  24. }
  25. /*