public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] f45: Resolves: CVE-2026-80230 - OpenSSL pinning bypass
@ 2026-10-09 8:50 Jan Macku
0 siblings, 0 replies; only message in thread
From: Jan Macku @ 2026-10-09 8:50 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : f45
Commit : 00ef327269f38472701134eb83374c3e1b790e67
Author : Jan Macku <jamacku@redhat.com>
Date : 2026-10-09T10:15:36+02:00
Stats : +69/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/00ef327269f38472701134eb83374c3e1b790e67?branch=f45
Log:
Resolves: CVE-2026-80230 - OpenSSL pinning bypass
---
diff --git a/0008-curl-8.21.0-CVE-2026-80230.patch b/0008-curl-8.21.0-CVE-2026-80230.patch
new file mode 100644
index 0000000..772bfac
--- /dev/null
+++ b/0008-curl-8.21.0-CVE-2026-80230.patch
@@ -0,0 +1,65 @@
+From 750c52af28449ba6fb094ec74697293e3c09d7b9 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 24 Aug 2026 23:37:49 +0200
+Subject: [PATCH 2/2] 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 4659cbf881..0f4123e83d 100644
+--- a/lib/vtls/openssl.c
++++ b/lib/vtls/openssl.c
+@@ -4573,21 +4573,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)
+@@ -4769,7 +4772,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 4aa0567..5bcac0b 100644
--- a/curl.spec
+++ b/curl.spec
@@ -43,6 +43,9 @@ 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
+# fix OpenSSL pinning bypass (CVE-2026-80230)
+Patch008: 0008-curl-8.21.0-CVE-2026-80230.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -497,6 +500,7 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
%changelog
* Thu Oct 08 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-8
- fix OpenLDAP SASL authentication bypass (CVE-2026-13608)
+- fix OpenSSL pinning bypass (CVE-2026-80230)
* Mon Oct 05 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-7
- 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-09 8:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 8:50 [rpms/curl] f45: 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