summaryrefslogtreecommitdiff
path: root/net/rpcbind/patches
diff options
context:
space:
mode:
authorAndy Walsh <andy.walsh44+github@gmail.com>2019-03-27 13:18:26 +0100
committerAndy Walsh <andy.walsh44+github@gmail.com>2019-03-27 13:18:26 +0100
commit9dafa4324c0f2fdbb3d48136cb9617cc2c0d9f44 (patch)
treeadfd154c2fcd6a391a6fefea8c5d515943a8adc4 /net/rpcbind/patches
parent4f1e48001fcfb7127b2756308ed0ab39fb83c989 (diff)
rpcbind: fix warmstart option, CVE-2017-8779
* always build with warmstart options * fix CVE-2017-8779 Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
Diffstat (limited to 'net/rpcbind/patches')
-rw-r--r--net/rpcbind/patches/001-CVE-2017-8779-dos-via-memory-consumption.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/rpcbind/patches/001-CVE-2017-8779-dos-via-memory-consumption.patch b/net/rpcbind/patches/001-CVE-2017-8779-dos-via-memory-consumption.patch
new file mode 100644
index 000000000..d8137d3c9
--- /dev/null
+++ b/net/rpcbind/patches/001-CVE-2017-8779-dos-via-memory-consumption.patch
@@ -0,0 +1,29 @@
+Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
+Date: 2017-05-29
+Initial Package Version: 0.2.4 (also affects earlier versions)
+Upstream Status: Unknown
+Origin: Guido Vranken
+Description: Fixes CVE-2017-8779 (DOS by remote attackers - memory consumption
+without subsequent free).
+
+diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
+index 5862c26..e11f61b 100644
+--- a/src/rpcb_svc_com.c
++++ b/src/rpcb_svc_com.c
+@@ -48,6 +48,7 @@
+ #include <rpc/rpc.h>
+ #include <rpc/rpcb_prot.h>
+ #include <rpc/svc_dg.h>
++#include <rpc/rpc_com.h>
+ #include <netconfig.h>
+ #include <errno.h>
+ #include <syslog.h>
+@@ -432,7 +433,7 @@ rpcbproc_taddr2uaddr_com(void *arg, struct svc_req *rqstp /*__unused*/,
+ static bool_t
+ xdr_encap_parms(XDR *xdrs, struct encap_parms *epp)
+ {
+- return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), ~0));
++ return (xdr_bytes(xdrs, &(epp->args), (u_int *) &(epp->arglen), RPC_MAXDATASIZE));
+ }
+
+ /*