diff options
author | Peter Marko <peter.marko@siemens.com> | 2024-12-27 11:56:05 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-12-27 09:21:43 -0800 |
commit | 3d97f4c13d5f5810659e107f6461f0b63f6fa92a (patch) | |
tree | 566bb6b4e4c00fbd6297a58684a14e8e8b66297f | |
parent | 8378820dab0b6955fb0e2b27f24a1626f9124e5b (diff) | |
download | meta-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.patch | 20 | ||||
-rw-r--r-- | meta-oe/recipes-support/procmail/procmail_3.22.bb | 1 |
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 @@ | |||
1 | From: Santiago Vila <sanvila@debian.org> | ||
2 | Subject: Fix heap-based buffer overflow in loadbuf() | ||
3 | Bug-Debian: http://bugs.debian.org/876511 | ||
4 | X-Debian-version: 3.22-26 | ||
5 | |||
6 | CVE: CVE-2017-16844 | ||
7 | Upstream-Status: Inactive-Upstream [lastrelease: 2001] | ||
8 | Signed-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 | " |
18 | SRC_URI[sha256sum] = "087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117" | 19 | SRC_URI[sha256sum] = "087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117" |
19 | 20 | ||