diff options
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2017-12588.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2017-12588.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2017-12588.patch new file mode 100644 index 0000000000..73c33109f6 --- /dev/null +++ b/meta-oe/recipes-extended/rsyslog/rsyslog/CVE-2017-12588.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 6bc4aa975a83abed43d734299ce76cd9e1a14aec Mon Sep 17 00:00:00 2001 | ||
2 | From: Thomas Deutschmann <whissi@whissi.de> | ||
3 | Date: Wed, 17 May 2017 23:05:24 +0200 | ||
4 | Subject: [PATCH] imzmq3: Fix building with -Werror=format-security | ||
5 | |||
6 | Reference: https://nvd.nist.gov/vuln/detail/CVE-2017-12588 | ||
7 | |||
8 | CVE: 2017-12588 | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
12 | --- | ||
13 | contrib/imzmq3/imzmq3.c | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/contrib/imzmq3/imzmq3.c b/contrib/imzmq3/imzmq3.c | ||
17 | index 9ca17871..d32dcbc2 100644 | ||
18 | --- a/contrib/imzmq3/imzmq3.c | ||
19 | +++ b/contrib/imzmq3/imzmq3.c | ||
20 | @@ -403,7 +403,7 @@ static rsRetVal createSocket(instanceConf_t* info, void** sock) { | ||
21 | |||
22 | /* Do the bind/connect... */ | ||
23 | if (info->action==ACTION_CONNECT) { | ||
24 | - rv = zsocket_connect(*sock, info->description); | ||
25 | + rv = zsocket_connect(*sock, "%s", info->description); | ||
26 | if (rv == -1) { | ||
27 | errmsg.LogError(0, | ||
28 | RS_RET_INVALID_PARAMS, | ||
29 | @@ -413,7 +413,7 @@ static rsRetVal createSocket(instanceConf_t* info, void** sock) { | ||
30 | } | ||
31 | DBGPRINTF("imzmq3: connect for %s successful\n",info->description); | ||
32 | } else { | ||
33 | - rv = zsocket_bind(*sock, info->description); | ||
34 | + rv = zsocket_bind(*sock, "%s", info->description); | ||
35 | if (rv == -1) { | ||
36 | errmsg.LogError(0, | ||
37 | RS_RET_INVALID_PARAMS, | ||
38 | -- | ||
39 | 2.13.0 | ||
40 | |||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb index d1d391bd25..6e3a75c284 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb | |||
@@ -24,6 +24,7 @@ SRC_URI = "http://www.rsyslog.com/download/files/download/rsyslog/${BPN}-${PV}.t | |||
24 | file://use-pkgconfig-to-check-libgcrypt.patch \ | 24 | file://use-pkgconfig-to-check-libgcrypt.patch \ |
25 | file://run-ptest \ | 25 | file://run-ptest \ |
26 | file://rsyslog-fix-ptest-not-finish.patch \ | 26 | file://rsyslog-fix-ptest-not-finish.patch \ |
27 | file://CVE-2017-12588.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRC_URI_append_libc-musl = " \ | 30 | SRC_URI_append_libc-musl = " \ |