procmail's formail utility contains a heap overflow which can cause a denial-of-service if given certain malformed mail. Details: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16844 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876511 https://www.debian.org/security/2017/dsa-4041 https://usn.ubuntu.com/usn/usn-3483-1/ Patch for 3.22, which I'll also attach, but be aware FreeBSD uses procmail 3.21 and I'm unsure if the patch is compatible: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876511#10 If upgrading to procmail 3.22 is thus required, this is the location for the code (the official procmail website has been down for almost 4 months now): http://www.ring.gr.jp/archives/net/mail/procmail/procmail-3.22.tar.gz
Created attachment 188149 [details] formisc.c patch (for procmail 3.22) from Debian Patch source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876511#10
Created attachment 188191 [details] Patch against the mail/procmail port Integrate Debian's patch in the FreeBSD port.
Created attachment 188192 [details] Patch against the security/vuxml port The vuxml file should also be updated. I guess that procmail-3.23 is quite unlikely to happen…
Comment on attachment 188149 [details] formisc.c patch (for procmail 3.22) from Debian Mark Debian's patch as obsolete now that a patch against the FreeBSD tree is attached to this bug. While here, complete it's description
A commit references this bug: Author: sunpoet Date: Fri Dec 8 20:35:26 UTC 2017 New revision: 455799 URL: https://svnweb.freebsd.org/changeset/ports/455799 Log: Fix version range of mail/procmail PR: 223777 Submitted by: romain Changes: head/security/vuxml/vuln.xml
A commit references this bug: Author: sunpoet Date: Fri Dec 8 20:35:32 UTC 2017 New revision: 455800 URL: https://svnweb.freebsd.org/changeset/ports/455800 Log: Fix CVE-2017-16844 - Bump PORTREVISION for package change PR: 223777 Submitted by: Jeremy Chadwick <jdc@koitsu.org>, romain Security: 288f7cee-ced6-11e7-8ae9-0050569f0b83 MFH: 2017Q4 Changes: head/mail/procmail/Makefile head/mail/procmail/files/patch-src-formisc.c
Committed. Thanks!
A commit references this bug: Author: sunpoet Date: Tue Dec 12 11:45:13 UTC 2017 New revision: 456121 URL: https://svnweb.freebsd.org/changeset/ports/456121 Log: MFH: r455800 Fix CVE-2017-16844 - Bump PORTREVISION for package change PR: 223777 Submitted by: Jeremy Chadwick <jdc@koitsu.org>, romain Security: 288f7cee-ced6-11e7-8ae9-0050569f0b83 Approved by: ports-secteam (swills) Changes: _U branches/2017Q4/ branches/2017Q4/mail/procmail/Makefile branches/2017Q4/mail/procmail/files/patch-src-formisc.c