public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] f44: Resolves: CVE-2026-80230 - OpenSSL pinning bypass
@ 2026-10-12 10:22 Jan Macku
  0 siblings, 0 replies; only message in thread
From: Jan Macku @ 2026-10-12 10:22 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/curl
Branch : f44
Commit : e46a65e7ceb9ce9ec4b9c2f9325a5df7e9c84bed
Author : Jan Macku <jamacku@redhat.com>
Date   : 2026-10-12T10:30:23+02:00
Stats  : +69/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/e46a65e7ceb9ce9ec4b9c2f9325a5df7e9c84bed?branch=f44

Log:
Resolves: CVE-2026-80230 - OpenSSL pinning bypass

---
diff --git a/0032-curl-8.18.0-CVE-2026-80230.patch b/0032-curl-8.18.0-CVE-2026-80230.patch
new file mode 100644
index 0000000..8c697db
--- /dev/null
+++ b/0032-curl-8.18.0-CVE-2026-80230.patch
@@ -0,0 +1,65 @@
+From d17047ae08b3467513f4eaba90a5d3348f74ef48 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 24 Aug 2026 23:37:49 +0200
+Subject: [PATCH 3/3] openssl: no server cert is only okay if also not pinned
+
+Reported-by: Stanislav Fort
+Closes #22660
+
+(cherry picked from commit 5267ed859d545534d0c21675a2b70af5a3b6e3ef)
+---
+ lib/vtls/openssl.c | 26 +++++++++++++++-----------
+ 1 file changed, 15 insertions(+), 11 deletions(-)
+
+diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
+index 9168d27b78..edcb661440 100644
+--- a/lib/vtls/openssl.c
++++ b/lib/vtls/openssl.c
+@@ -4578,21 +4578,24 @@ out:
+   return result;
+ }
+ 
+-static CURLcode ossl_check_pinned_key(struct Curl_cfilter *cf,
+-                                      struct Curl_easy *data,
+-                                      X509 *server_cert)
++static const char *pinned(struct Curl_cfilter *cf,
++                          struct Curl_easy *data)
+ {
+-  const char *ptr;
+-  CURLcode result = CURLE_OK;
+-
+   (void)cf;
++  return
+ #ifndef CURL_DISABLE_PROXY
+-  ptr = Curl_ssl_cf_is_proxy(cf) ?
++    Curl_ssl_cf_is_proxy(cf) ?
+     data->set.str[STRING_SSL_PINNEDPUBLICKEY_PROXY] :
+-    data->set.str[STRING_SSL_PINNEDPUBLICKEY];
+-#else
+-  ptr = data->set.str[STRING_SSL_PINNEDPUBLICKEY];
+ #endif
++    data->set.str[STRING_SSL_PINNEDPUBLICKEY];
++}
++
++static CURLcode ossl_check_pinned_key(struct Curl_cfilter *cf,
++                                      struct Curl_easy *data,
++                                      X509 *server_cert)
++{
++  CURLcode result = CURLE_OK;
++  const char *ptr = pinned(cf, data);
+   if(ptr) {
+     result = ossl_pkp_pin_peer_pubkey(data, server_cert, ptr);
+     if(result)
+@@ -4767,7 +4770,8 @@ CURLcode Curl_ossl_check_peer_cert(struct Curl_cfilter *cf,
+   server_cert = SSL_get1_peer_certificate(octx->ssl);
+   if(!server_cert) {
+     /* no verification at all, this maybe acceptable */
+-    if(!(conn_config->verifypeer || conn_config->verifyhost))
++    if(!(conn_config->verifypeer || conn_config->verifyhost) &&
++       !pinned(cf, data))
+       goto out;
+ 
+     failf(data, "SSL: could not get peer certificate");
+-- 
+2.56.0
+

diff --git a/curl.spec b/curl.spec
index 74c287b..d4fceba 100644
--- a/curl.spec
+++ b/curl.spec
@@ -117,6 +117,9 @@ Patch030: 0030-curl-8.18.0-CVE-2026-8932.patch
 # Fix OpenLDAP SASL authentication bypass (CVE-2026-13608)
 Patch031: 0031-curl-8.18.0-CVE-2026-13608.patch
 
+# Fix OpenSSL pinning bypass (CVE-2026-80230)
+Patch032: 0032-curl-8.18.0-CVE-2026-80230.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.32.0-multilib.patch
 
@@ -546,6 +549,7 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
 * Mon Oct 12 2026 Jan Macku <jamacku@redhat.com> - 8.18.0-14
 - Fix incomplete mTLS config matching in conn reuse (CVE-2026-8932)
 - Fix OpenLDAP SASL authentication bypass (CVE-2026-13608)
+- Fix OpenSSL pinning bypass (CVE-2026-80230)
 
 * Thu Oct 08 2026 Jan Macku <jamacku@redhat.com> - 8.18.0-13
 - Fix Negotiate ambient user conn reuse (CVE-2026-19931)

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

only message in thread, other threads:[~2026-10-12 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 10:22 [rpms/curl] f44: Resolves: CVE-2026-80230 - OpenSSL pinning 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