guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: dovecot: Fix CVE-2017-15132.


From: Leo Famulari
Subject: 01/01: gnu: dovecot: Fix CVE-2017-15132.
Date: Thu, 25 Jan 2018 13:37:34 -0500 (EST)

lfam pushed a commit to branch master
in repository guix.

commit 238f3a39a0f302e2369a0914add4992ec7e259df
Author: Leo Famulari <address@hidden>
Date:   Thu Jan 25 13:27:09 2018 -0500

    gnu: dovecot: Fix CVE-2017-15132.
    
    * gnu/packages/patches/dovecot-CVE-2017-15132.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Add it.
    * gnu/packages/mail.scm (dovecot)[source]: Use it.
---
 gnu/local.mk                                      |  1 +
 gnu/packages/mail.scm                             |  1 +
 gnu/packages/patches/dovecot-CVE-2017-15132.patch | 36 +++++++++++++++++++++++
 3 files changed, 38 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index e96040a..fae837d 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -609,6 +609,7 @@ dist_patch_DATA =                                           
\
   %D%/packages/patches/diffutils-gets-undeclared.patch         \
   %D%/packages/patches/doc++-include-directives.patch          \
   %D%/packages/patches/doc++-segfault-fix.patch                        \
+  %D%/packages/patches/dovecot-CVE-2017-15132.patch            \
   %D%/packages/patches/doxygen-test.patch                      \
   %D%/packages/patches/dvd+rw-tools-add-include.patch          \
   %D%/packages/patches/eigen-arm-neon-fixes.patch              \
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 24dee8a..9a398c1 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1144,6 +1144,7 @@ facilities for checking incoming mail.")
        (uri (string-append "https://www.dovecot.org/releases/";
                            (version-major+minor version) "/"
                            name "-" version ".tar.gz"))
+       (patches (search-patches "dovecot-CVE-2017-15132.patch"))
        (sha256 (base32
                 "10c5myzgys866c3x6jdr1s9x9pqnjd5vpyz8z384sph21m3wnq6y"))))
     (build-system gnu-build-system)
diff --git a/gnu/packages/patches/dovecot-CVE-2017-15132.patch 
b/gnu/packages/patches/dovecot-CVE-2017-15132.patch
new file mode 100644
index 0000000..32666b8
--- /dev/null
+++ b/gnu/packages/patches/dovecot-CVE-2017-15132.patch
@@ -0,0 +1,36 @@
+Fix CVE-2017-15132:
+
+https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-15132
+
+Patch copied from upstream source repository:
+
+https://github.com/dovecot/core/commit/1a29ed2f96da1be22fa5a4d96c7583aa81b8b060
+
+From 1a29ed2f96da1be22fa5a4d96c7583aa81b8b060 Mon Sep 17 00:00:00 2001
+From: Timo Sirainen <address@hidden>
+Date: Mon, 18 Dec 2017 16:50:51 +0200
+Subject: [PATCH] lib-auth: Fix memory leak in auth_client_request_abort()
+
+This caused memory leaks when authentication was aborted. For example
+with IMAP:
+
+a AUTHENTICATE PLAIN
+*
+
+Broken by 9137c55411aa39d41c1e705ddc34d5bd26c65021
+---
+ src/lib-auth/auth-client-request.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/lib-auth/auth-client-request.c 
b/src/lib-auth/auth-client-request.c
+index 480fb42b30..046f7c307d 100644
+--- a/src/lib-auth/auth-client-request.c
++++ b/src/lib-auth/auth-client-request.c
+@@ -186,6 +186,7 @@ void auth_client_request_abort(struct auth_client_request 
**_request)
+ 
+       auth_client_send_cancel(request->conn->client, request->id);
+       call_callback(request, AUTH_REQUEST_STATUS_ABORT, NULL, NULL);
++      pool_unref(&request->pool);
+ }
+ 
+ unsigned int auth_client_request_get_id(struct auth_client_request *request)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]