summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch30
-rw-r--r--recipes-extended/nagios/nagios-nrpe_4.0.2.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch b/recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch
new file mode 100644
index 00000000..7a12e730
--- /dev/null
+++ b/recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch
@@ -0,0 +1,30 @@
1From 4f7dd1199f1f3f72f9197e8565da339a4a2490b7 Mon Sep 17 00:00:00 2001
2From: madlohe <swolf@nagios.com>
3Date: Thu, 23 Apr 2020 15:33:18 -0500
4Subject: [PATCH] Should fix #235 (nasty_metachars was not being returned when
5 specified in cfg file
6
7CVE: CVE-2020-6581
8Upstream Status: Backport [4f7dd1199f1f3f72f9197e8565da339a4a2490b7]
9
10Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
11---
12 src/nrpe.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15diff --git a/src/nrpe.c b/src/nrpe.c
16index 01fbd1d..bf64963 100644
17--- a/src/nrpe.c
18+++ b/src/nrpe.c
19@@ -823,6 +823,8 @@ char* process_metachars(const char* input)
20 }
21 }
22 copy[j] = '\0';
23+
24+ return copy;
25 }
26
27 /* read in the configuration file */
28--
292.20.1
30
diff --git a/recipes-extended/nagios/nagios-nrpe_4.0.2.bb b/recipes-extended/nagios/nagios-nrpe_4.0.2.bb
index c8875fcc..d9c7b159 100644
--- a/recipes-extended/nagios/nagios-nrpe_4.0.2.bb
+++ b/recipes-extended/nagios/nagios-nrpe_4.0.2.bb
@@ -13,6 +13,7 @@ SRCNAME = "nrpe"
13SRC_URI = "https://github.com/NagiosEnterprises/nrpe/releases/download/${SRCNAME}-${PV}/${SRCNAME}-${PV}.tar.gz \ 13SRC_URI = "https://github.com/NagiosEnterprises/nrpe/releases/download/${SRCNAME}-${PV}/${SRCNAME}-${PV}.tar.gz \
14 file://check_nrpe.cfg \ 14 file://check_nrpe.cfg \
15 file://nagios-nrpe.service \ 15 file://nagios-nrpe.service \
16 file://0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch \
16" 17"
17 18
18SRC_URI[md5sum] = "37b9e23b3e8d75308f8b31f3b61ee8a4" 19SRC_URI[md5sum] = "37b9e23b3e8d75308f8b31f3b61ee8a4"