public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] f43: Resolves: CVE-2026-13608 - OpenLDAP SASL authentication bypass
@ 2026-10-15 11:48 Jan Macku
  0 siblings, 0 replies; only message in thread
From: Jan Macku @ 2026-10-15 11:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/curl
Branch : f43
Commit : bd06bc84f78cff444c06c1a2de46d978a0736258
Author : Jan Macku <jamacku@redhat.com>
Date   : 2026-10-14T09:46:25+02:00
Stats  : +50/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/bd06bc84f78cff444c06c1a2de46d978a0736258?branch=f43

Log:
Resolves: CVE-2026-13608 - OpenLDAP SASL authentication bypass

---
diff --git a/0025-curl-8.15.0-CVE-2026-13608.patch b/0025-curl-8.15.0-CVE-2026-13608.patch
new file mode 100644
index 0000000..9ff5ecf
--- /dev/null
+++ b/0025-curl-8.15.0-CVE-2026-13608.patch
@@ -0,0 +1,46 @@
+From 75de5728d2003609bc75894c4ce70993ee3d2933 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 29 Jun 2026 10:44:47 +0200
+Subject: [PATCH 2/3] openldap: handle Curl_sasl_continue() returns better
+
+Similar to how it gets treated already in other protocol handlers.
+
+Follow-up to eeca818b1e8d1e61c2d4
+
+Reported-by: Eunsoo Kim
+Closes #22213
+
+(cherry picked from commit ea71c3b6b60e563651ea8596a975aef0c8199519)
+---
+ lib/openldap.c | 15 +++++++++++++--
+ 1 file changed, 13 insertions(+), 2 deletions(-)
+
+diff --git a/lib/openldap.c b/lib/openldap.c
+index e4714b5580..fb341045c0 100644
+--- a/lib/openldap.c
++++ b/lib/openldap.c
+@@ -751,8 +751,19 @@ static CURLcode oldap_state_sasl_resp(struct Curl_easy *data,
+   }
+   else {
+     result = Curl_sasl_continue(&li->sasl, data, code, &progress);
+-    if(!result && progress != SASL_INPROGRESS)
+-      oldap_state(data, li, OLDAP_STOP);
++    if(!result) {
++      switch(progress) {
++      case SASL_DONE:
++        oldap_state(data, li, OLDAP_STOP);   /* Authenticated */
++        break;
++      case SASL_IDLE:            /* No mechanism left after cancellation */
++        failf(data, "Authentication cancelled");
++        result = CURLE_LOGIN_DENIED;
++        break;
++      default:
++        break;
++      }
++    }
+   }
+ 
+   if(li->servercred)
+-- 
+2.56.0
+

diff --git a/curl.spec b/curl.spec
index 2ded0ac..5bc21e4 100644
--- a/curl.spec
+++ b/curl.spec
@@ -88,6 +88,9 @@ Patch023: 0023-curl-8.15.0-CVE-2026-80229.patch
 # fix incomplete mTLS config matching in conn reuse (CVE-2026-8932)
 Patch024: 0024-curl-8.15.0-CVE-2026-8932.patch
 
+# fix OpenLDAP SASL authentication bypass (CVE-2026-13608)
+Patch025: 0025-curl-8.15.0-CVE-2026-13608.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.32.0-multilib.patch
 
@@ -495,6 +498,7 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
 %changelog
 * Tue Oct 13 2026 Jan Macku <jamacku@redhat.com> - 8.15.0-12
 - fix incomplete mTLS config matching in conn reuse (CVE-2026-8932)
+- fix OpenLDAP SASL authentication bypass (CVE-2026-13608)
 
 * Tue Oct 06 2026 Jan Macku <jamacku@redhat.com> - 8.15.0-11
 - fix secure cookie attribute bypass with tab (CVE-2026-80255)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-15 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 11:48 [rpms/curl] f43: Resolves: CVE-2026-13608 - OpenLDAP SASL authentication bypass Jan Macku

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox