mail/dovecot, mail/dovecot-pigeonhole: upgrade to 2.3.6, 0.5.6 respectively.

Dovecot changelog:
* CVE-2019-11494: Submission-login crashed with signal 11 due to null pointer access when authentication was aborted by disconnecting.
* CVE-2019-11499: Submission-login crashed when authentication was started over TLS secured channel and invalid authentication message was sent.
* auth: Support password grant with passdb oauth2.
+ Use system default CAs for outbound TLS connections.
+ Simplify array handling with new helper macros.
+ fts_solr: Enable configuring batch_size and soft_commit features.
- lmtp/submission: Fixed various bugs in XCLIENT handling, including a hang when XCLIENT commands were sent infinitely to the remote server.
- lmtp/submission: Forwarded multi-line replies were erroneously sent as two replies to the client.
- lib-smtp: client: Message was not guaranteed to contain CRLF consistently when CHUNKING was used.
- fts_solr: Plugin was no longer compatible with Solr 7.
- Make it possible to disable certificate checking without setting ssl_client_ca_* settings.
- pop3c: SSL support was broken.
- mysql: Closing connection twice lead to crash on some systems.
- auth: Multiple oauth2 passdbs crashed auth process on deinit.
- HTTP client connection errors infrequently triggered a segmentation fault when the connection was idle and not used for a particular client instance.

Pigeonhole changelog:
+ sieve: Redirect loop prevention is sometimes ineffective. Improve existing loop detection by also recognizing the
  X-Sieve-Redirected-From header in incoming messages and dropping redirect actions when it points to
  the sending account. This header is already added by the redirect action, so this improvement only adds an additional use of this header.
- sieve: Prevent execution of implicit keep upon temporary failure occurring at runtime.

MFH:		2019Q2
Security:	CVE-2019-11494
Security:	CVE-2019-11499
This commit is contained in:
Larry Rosenman 2019-04-30 21:33:30 +00:00
parent 773f47db31
commit 15dd243379
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=500569
7 changed files with 16 additions and 40 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= dovecot-pigeonhole
PORTVERSION= 0.5.5
PORTVERSION= 0.5.6
CATEGORIES= mail
MASTER_SITES= http://pigeonhole.dovecot.org/releases/${DOVECOTVERSION}/
DISTNAME= ${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${PORTVERSION}
@ -12,8 +12,8 @@ COMMENT= Sieve plugin for the Dovecot 'deliver' LDA and LMTP
LICENSE= LGPL21
BUILD_DEPENDS= dovecot>=2.3.5:mail/dovecot
RUN_DEPENDS= dovecot>=2.3.5:mail/dovecot
BUILD_DEPENDS= dovecot>=2.3.6:mail/dovecot
RUN_DEPENDS= dovecot>=2.3.6:mail/dovecot
DOVECOTVERSION= 2.3

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1551805776
SHA256 (dovecot-2.3-pigeonhole-0.5.5.tar.gz) = cbaa106e1c2b23824420efdd6a9f8572c64c8dccf75a3101a899b6ddb25149a5
SIZE (dovecot-2.3-pigeonhole-0.5.5.tar.gz) = 1847487
TIMESTAMP = 1556659509
SHA256 (dovecot-2.3-pigeonhole-0.5.6.tar.gz) = 7c2fe7e23e732a8451172c00da5f19532448c95e03e44d47c61b123e8210f5b8
SIZE (dovecot-2.3-pigeonhole-0.5.6.tar.gz) = 1854287

View File

@ -7,7 +7,7 @@
######################################################################
PORTNAME= dovecot
PORTVERSION= 2.3.5.2
PORTVERSION= 2.3.6
CATEGORIES= mail ipv6
MASTER_SITES= https://www.dovecot.org/releases/2.3/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1555598613
SHA256 (dovecot-2.3.5.2.tar.gz) = ba14e41aefd81a868a35b83bcb54194116106424d37690519b50ea83c0f31bf2
SIZE (dovecot-2.3.5.2.tar.gz) = 6953228
TIMESTAMP = 1556658186
SHA256 (dovecot-2.3.6.tar.gz) = ed1d8dc1beeae9c6c73deac73a62ef19fe9262fbffd86604a3f690452f5536c7
SIZE (dovecot-2.3.6.tar.gz) = 6980135

View File

@ -1,4 +1,4 @@
--- src/lib-master/test-event-stats.c.orig 2018-11-23 11:06:49 UTC
--- src/lib-master/test-event-stats.c.orig 2019-04-30 12:25:06 UTC
+++ src/lib-master/test-event-stats.c
@@ -12,6 +12,7 @@
#include "stats-client.h"
@ -6,5 +6,5 @@
#include <fcntl.h>
+#include <signal.h>
#include <unistd.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/un.h>

View File

@ -1,24 +0,0 @@
--- src/lib-sql/driver-mysql.c.orig 2018-11-23 11:06:45 UTC
+++ src/lib-sql/driver-mysql.c
@@ -173,7 +173,9 @@ static int driver_mysql_connect(struct sql_db *_db)
static void driver_mysql_disconnect(struct sql_db *_db)
{
struct mysql_db *db = (struct mysql_db *)_db;
- mysql_close(db->mysql);
+ if (db->mysql != NULL)
+ mysql_close(db->mysql);
+ db->mysql = NULL;
}
static int driver_mysql_parse_connect_string(struct mysql_db *db,
@@ -311,7 +313,9 @@ static void driver_mysql_deinit_v(struct sql_db *_db)
_db->no_reconnect = TRUE;
sql_db_set_state(&db->api, SQL_DB_STATE_DISCONNECTED);
- mysql_close(db->mysql);
+ if (db->mysql != NULL)
+ mysql_close(db->mysql);
+ db->mysql = NULL;
sql_connection_log_finished(_db);
event_unref(&_db->event);

View File

@ -1,9 +1,9 @@
--- src/plugins/fts-solr/solr-connection.c.orig 2019-01-02 22:12:57 UTC
--- src/plugins/fts-solr/solr-connection.c.orig 2019-04-30 12:25:06 UTC
+++ src/plugins/fts-solr/solr-connection.c
@@ -156,7 +156,7 @@ int solr_connection_init(const char *url,
http_set.request_timeout_msecs = 60*1000;
@@ -156,7 +156,7 @@ int solr_connection_init(const struct fts_solr_setting
http_set.ssl = ssl_client_set;
http_set.debug = debug;
http_set.debug = solr_set->debug;
http_set.rawlog_dir = solr_set->rawlog_dir;
- solr_http_client = http_client_init(&http_set);
+ solr_http_client = http_client_init_private(&http_set);
}