All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] dovecot: add upstream security fix for CVE-2017-15132
@ 2018-01-28 22:33 Peter Korsgaard
  2018-01-29  8:47 ` Peter Korsgaard
  2018-01-31 12:34 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-01-28 22:33 UTC (permalink / raw)
  To: buildroot

A flaw was found in dovecot 2.0 up to 2.2.33 and 2.3.0.  An abort of SASL
authentication results in a memory leak in dovecot's auth client used by
login processes.  The leak has impact in high performance configuration
where same login processes are reused and can cause the process to crash due
to memory exhaustion.

For more details, see:
http://www.openwall.com/lists/oss-security/2018/01/25/4

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 ...x-memory-leak-in-auth_client_request_abor.patch | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/dovecot/0002-lib-auth-Fix-memory-leak-in-auth_client_request_abor.patch

diff --git a/package/dovecot/0002-lib-auth-Fix-memory-leak-in-auth_client_request_abor.patch b/package/dovecot/0002-lib-auth-Fix-memory-leak-in-auth_client_request_abor.patch
new file mode 100644
index 0000000000..babccd3acf
--- /dev/null
+++ b/package/dovecot/0002-lib-auth-Fix-memory-leak-in-auth_client_request_abor.patch
@@ -0,0 +1,33 @@
+From 1a29ed2f96da1be22fa5a4d96c7583aa81b8b060 Mon Sep 17 00:00:00 2001
+From: Timo Sirainen <timo.sirainen@dovecot.fi>
+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
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ 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 480fb42b3..046f7c307 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)
+-- 
+2.11.0
+
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] dovecot: add upstream security fix for CVE-2017-15132
  2018-01-28 22:33 [Buildroot] [PATCH] dovecot: add upstream security fix for CVE-2017-15132 Peter Korsgaard
@ 2018-01-29  8:47 ` Peter Korsgaard
  2018-01-31 12:34 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-01-29  8:47 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > A flaw was found in dovecot 2.0 up to 2.2.33 and 2.3.0.  An abort of SASL
 > authentication results in a memory leak in dovecot's auth client used by
 > login processes.  The leak has impact in high performance configuration
 > where same login processes are reused and can cause the process to crash due
 > to memory exhaustion.

 > For more details, see:
 > http://www.openwall.com/lists/oss-security/2018/01/25/4

 > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] dovecot: add upstream security fix for CVE-2017-15132
  2018-01-28 22:33 [Buildroot] [PATCH] dovecot: add upstream security fix for CVE-2017-15132 Peter Korsgaard
  2018-01-29  8:47 ` Peter Korsgaard
@ 2018-01-31 12:34 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-01-31 12:34 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > A flaw was found in dovecot 2.0 up to 2.2.33 and 2.3.0.  An abort of SASL
 > authentication results in a memory leak in dovecot's auth client used by
 > login processes.  The leak has impact in high performance configuration
 > where same login processes are reused and can cause the process to crash due
 > to memory exhaustion.

 > For more details, see:
 > http://www.openwall.com/lists/oss-security/2018/01/25/4

 > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Committed to 2017.02.x and 2017.11.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-31 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-28 22:33 [Buildroot] [PATCH] dovecot: add upstream security fix for CVE-2017-15132 Peter Korsgaard
2018-01-29  8:47 ` Peter Korsgaard
2018-01-31 12:34 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.