summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2020-02-27 11:38:54 +0800
committerKhem Raj <raj.khem@gmail.com>2020-02-27 08:25:49 -0800
commit62b3a48219ef1ea9ff62dd8e6d78d81c4325a7fb (patch)
tree1566184f4d80c1a5a5b7088a5c3838e220d51fc4 /meta-networking
parented7936674bfd7c830328e5b975897df393f77a39 (diff)
downloadmeta-openembedded-62b3a48219ef1ea9ff62dd8e6d78d81c4325a7fb.tar.gz
cyrus-sasl: fix CVE-2019-19906
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/CVE-2019-19906.patch35
-rw-r--r--meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb1
2 files changed, 36 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/CVE-2019-19906.patch b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/CVE-2019-19906.patch
new file mode 100644
index 000000000..b94780f30
--- /dev/null
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/CVE-2019-19906.patch
@@ -0,0 +1,35 @@
1From 94fe6eb9ea2691f4a7c32fbf2d0c7c454995b666 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 27 Feb 2020 11:08:57 +0800
4Subject: [PATCH] Fix #587
5
6Off by one error in common.c, CVE-2019-19906.
7
8Thanks to Stephan Zeisberg for reporting
9
10CVE: CVE-2019-19906
11
12Upstream-Stauts: Backport [https://github.com/cyrusimap/cyrus-sasl
13/commit/dcc9f51cbd4ed622cfb0f9b1c141eb2ffe3b12f1]
14
15Signed-off-by: Changqing Li <changqing.li@windriver.com>
16---
17 lib/common.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/lib/common.c b/lib/common.c
21index 305311d..445c5d5 100644
22--- a/lib/common.c
23+++ b/lib/common.c
24@@ -190,7 +190,7 @@ int _sasl_add_string(char **out, size_t *alloclen,
25
26 if (add==NULL) add = "(null)";
27
28- addlen=strlen(add); /* only compute once */
29+ addlen=strlen(add)+1; /* only compute once */
30 if (_buf_alloc(out, alloclen, (*outlen)+addlen)!=SASL_OK)
31 return SASL_NOMEM;
32
33--
342.7.4
35
diff --git a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb
index be7131d7d..d55dc4ab7 100644
--- a/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb
+++ b/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb
@@ -16,6 +16,7 @@ SRC_URI = "git://github.com/cyrusimap/cyrus-sasl;protocol=https \
16 file://0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch \ 16 file://0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch \
17 file://0001-Allow-saslauthd-to-be-built-outside-of-source-tree-w.patch \ 17 file://0001-Allow-saslauthd-to-be-built-outside-of-source-tree-w.patch \
18 file://0001-makeinit.sh-fix-parallel-build-issue.patch \ 18 file://0001-makeinit.sh-fix-parallel-build-issue.patch \
19 file://CVE-2019-19906.patch \
19 " 20 "
20 21
21UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives" 22UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives"