summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2024-12-27 11:56:05 +0100
committerKhem Raj <raj.khem@gmail.com>2024-12-27 09:21:43 -0800
commit3d97f4c13d5f5810659e107f6461f0b63f6fa92a (patch)
tree566bb6b4e4c00fbd6297a58684a14e8e8b66297f
parent8378820dab0b6955fb0e2b27f24a1626f9124e5b (diff)
downloadmeta-openembedded-3d97f4c13d5f5810659e107f6461f0b63f6fa92a.tar.gz
procmail: patch CVE-2017-16844.
Take patch from Debian. https://sources.debian.org/data/main/p/procmail/3.22-26%2Bdeb10u1/debian/patches/30 Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/procmail/procmail/CVE-2017-16844.patch20
-rw-r--r--meta-oe/recipes-support/procmail/procmail_3.22.bb1
2 files changed, 21 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/procmail/procmail/CVE-2017-16844.patch b/meta-oe/recipes-support/procmail/procmail/CVE-2017-16844.patch
new file mode 100644
index 0000000000..6e04989c33
--- /dev/null
+++ b/meta-oe/recipes-support/procmail/procmail/CVE-2017-16844.patch
@@ -0,0 +1,20 @@
1From: Santiago Vila <sanvila@debian.org>
2Subject: Fix heap-based buffer overflow in loadbuf()
3Bug-Debian: http://bugs.debian.org/876511
4X-Debian-version: 3.22-26
5
6CVE: CVE-2017-16844
7Upstream-Status: Inactive-Upstream [lastrelease: 2001]
8Signed-off-by: Peter Marko <peter.marko@siemens.com>
9
10--- a/src/formisc.c
11+++ b/src/formisc.c
12@@ -103,7 +103,7 @@
13 }
14 /* append to buf */
15 void loadbuf(text,len)const char*const text;const size_t len;
16-{ if(buffilled+len>buflen) /* buf can't hold the text */
17+{ while(buffilled+len>buflen) /* buf can't hold the text */
18 buf=realloc(buf,buflen+=Bsize);
19 tmemmove(buf+buffilled,text,len);buffilled+=len;
20 }
diff --git a/meta-oe/recipes-support/procmail/procmail_3.22.bb b/meta-oe/recipes-support/procmail/procmail_3.22.bb
index efe716ea51..59b78c0a6a 100644
--- a/meta-oe/recipes-support/procmail/procmail_3.22.bb
+++ b/meta-oe/recipes-support/procmail/procmail_3.22.bb
@@ -14,6 +14,7 @@ SRC_URI = "http://www.ring.gr.jp/archives/net/mail/${BPN}/${BP}.tar.gz \
14 file://from-debian-to-fix-man-file.patch \ 14 file://from-debian-to-fix-man-file.patch \
15 file://man-file-mailstat.1-from-debian.patch \ 15 file://man-file-mailstat.1-from-debian.patch \
16 file://CVE-2014-3618.patch \ 16 file://CVE-2014-3618.patch \
17 file://CVE-2017-16844.patch \
17" 18"
18SRC_URI[sha256sum] = "087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117" 19SRC_URI[sha256sum] = "087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117"
19 20