[packages/cyrus-sasl] Rel 5. Fix DIGEST-MD5 client heap overflow on quoted challenge values.

arekm arekm at pld-linux.org
Thu Oct 29 08:28:54 CET 2026


commit ba1b3f279a319a10c7ff7c18bd6d4c80412a7289
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 28 23:49:32 2026 +0100

    Rel 5. Fix DIGEST-MD5 client heap overflow on quoted challenge values.
    
    Fixes CVE-2026-107161.

 CVE-2026-107161.patch | 19 +++++++++++++++++++
 cyrus-sasl.spec       |  4 +++-
 2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/cyrus-sasl.spec b/cyrus-sasl.spec
index 0a9c6d4..dc406ef 100644
--- a/cyrus-sasl.spec
+++ b/cyrus-sasl.spec
@@ -35,7 +35,7 @@ Summary(ru.UTF-8):	Библиотека Cyrus SASL
 Summary(uk.UTF-8):	Бібліотека Cyrus SASL
 Name:		cyrus-sasl
 Version:	2.1.28
-Release:	4
+Release:	5
 License:	distributable
 Group:		Libraries
 #Source0Download: https://github.com/cyrusimap/cyrus-sasl/releases
@@ -64,6 +64,7 @@ Patch22:	krb5.patch
 Patch23:	getsubopt.patch
 Patch24:	time.patch
 Patch25:	gcc15.patch
+Patch26:	CVE-2026-107161.patch
 URL:		https://www.cyrusimap.org/sasl/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.11
@@ -541,6 +542,7 @@ Wtyczka Nagiosa do sprawdzania działania saslauthd.
 %patch -P23 -p1
 %patch -P24 -p1
 %patch -P25 -p1
+%patch -P26 -p1
 
 # update to our paths
 sed -i -e '
diff --git a/CVE-2026-107161.patch b/CVE-2026-107161.patch
new file mode 100644
index 0000000..5dc422d
--- /dev/null
+++ b/CVE-2026-107161.patch
@@ -0,0 +1,19 @@
+Origin: https://github.com/cyrusimap/cyrus-sasl/issues/889
+Origin: Debian cyrus-sasl2 2.1.28+dfsg1-12 0043-CVE-2026-107161.patch
+Subject: digestmd5: grow the buffer for the quoted value in add_to_challenge()
+
+CVE-2026-107161: the buffer is sized for the unquoted value, so strcat() of
+the quoted (longer) value from a crafted server challenge overflows the heap.
+
+diff --git a/plugins/digestmd5.c b/plugins/digestmd5.c
+index c6b5431..8712975 100644
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -553,6 +553,7 @@ static int add_to_challenge(const sasl_utils_t *utils,
+ 	    if (quoted == NULL)
+ 		MEMERROR(utils);
+ 	    valuesize = strlen(quoted);
++	    newlen = (unsigned) (*curlen + 1 + namesize + 2 + valuesize + 2);
+ 	    /* As the quoted string is bigger, make sure we have enough
+ 	       space now */
+ 	    ret = _plug_buf_alloc(utils, str, buflen, newlen);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cyrus-sasl.git/commitdiff/ba1b3f279a319a10c7ff7c18bd6d4c80412a7289



More information about the pld-cvs-commit mailing list