public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Macku <jamacku@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] f45: Resolves: CVE-2026-13608 - OpenLDAP SASL authentication bypass
Date: Fri, 09 Oct 2026 08:50:43 GMT	[thread overview]
Message-ID: <179153584378.1.8909583786480506603.rpms-curl-505d5d5ba305@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : f45
Commit : 505d5d5ba305b28191b18b7badd1cf8b8b114d4d
Author : Jan Macku <jamacku@redhat.com>
Date   : 2026-10-08T15:46:43+02:00
Stats  : +53/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/505d5d5ba305b28191b18b7badd1cf8b8b114d4d?branch=f45

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

---
diff --git a/0007-curl-8.21.0-CVE-2026-13608.patch b/0007-curl-8.21.0-CVE-2026-13608.patch
new file mode 100644
index 0000000..af98be6
--- /dev/null
+++ b/0007-curl-8.21.0-CVE-2026-13608.patch
@@ -0,0 +1,46 @@
+From 63ca1d9b811755b1362c111f5bf0d8ff68cf21b3 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 29 Jun 2026 10:44:47 +0200
+Subject: [PATCH 1/2] 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 8ec6bb27cd..d743e55185 100644
+--- a/lib/openldap.c
++++ b/lib/openldap.c
+@@ -783,8 +783,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 9d61eb0..4aa0567 100644
--- a/curl.spec
+++ b/curl.spec
@@ -13,7 +13,7 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 8.21.0
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: curl
 Source0: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz
 Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
@@ -40,6 +40,9 @@ Patch005: 0005-curl-8.21.0-CVE-2026-80255.patch
 # fix OpenSSL provider use-after-free (CVE-2026-80229)
 Patch006: 0006-curl-8.21.0-CVE-2026-80229.patch
 
+# fix OpenLDAP SASL authentication bypass (CVE-2026-13608)
+Patch007: 0007-curl-8.21.0-CVE-2026-13608.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.32.0-multilib.patch
 
@@ -492,6 +495,9 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
 %{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
 
 %changelog
+* Thu Oct 08 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-8
+- fix OpenLDAP SASL authentication bypass (CVE-2026-13608)
+
 * Mon Oct 05 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-7
 - fix secure cookie attribute bypass with tab (CVE-2026-80255)
 - fix OpenSSL provider use-after-free (CVE-2026-80229)

                 reply	other threads:[~2026-10-09  8:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179153584378.1.8909583786480506603.rpms-curl-505d5d5ba305@fedoraproject.org \
    --to=jamacku@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox