public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openssl] rawhide: Rebase to OpenSSL 4.0.3
@ 2026-09-30 15:04 Dmitry Belyavskiy
0 siblings, 0 replies; only message in thread
From: Dmitry Belyavskiy @ 2026-09-30 15:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openssl
Branch : rawhide
Commit : bed87df71ccea1279cdf0cc7b4fa1a0e305adce1
Author : Dmitry Belyavskiy <dbelyavs@redhat.com>
Date : 2026-09-30T17:03:45+02:00
Stats : +69/-113 in 20 file(s)
URL : https://src.fedoraproject.org/rpms/openssl/c/bed87df71ccea1279cdf0cc7b4fa1a0e305adce1?branch=rawhide
Log:
Rebase to OpenSSL 4.0.3
Resolves: CVE-2026-84782
Resolves: CVE-2026-84783
Resolves: CVE-2026-35189
Resolves: CVE-2026-35191
Resolves: CVE-2026-42772
Resolves: CVE-2026-54872
Resolves: CVE-2026-54873
Resolves: CVE-2026-54875
Resolves: CVE-2026-72897
Resolves: CVE-2026-75804
Resolves: CVE-2026-75805
Resolves: CVE-2026-75806
Resolves: CVE-2026-77696
Resolves: CVE-2026-84784
---
diff --git a/.gitignore b/.gitignore
index dd3df57..9950a04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -72,3 +72,4 @@ openssl-1.0.0a-usa.tar.bz2
/openssl-4.0.0-beta1.tar.gz
/openssl-4.0.1.tar.gz
/openssl-4.0.2.tar.gz
+/openssl-4.0.3.tar.gz
diff --git a/0001-RH-Aarch64-and-ppc64le-use-lib64.patch b/0001-RH-Aarch64-and-ppc64le-use-lib64.patch
index dcefcb7..78cfd0d 100644
--- a/0001-RH-Aarch64-and-ppc64le-use-lib64.patch
+++ b/0001-RH-Aarch64-and-ppc64le-use-lib64.patch
@@ -1,4 +1,4 @@
-From 3f7e619b2e514ffba973859e2ec7cd5988796c2d Mon Sep 17 00:00:00 2001
+From bd9adecce03305f20c55247a029f6f16041ad250 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:14 +0100
Subject: [PATCH 01/16] RH: Aarch64 and ppc64le use lib64
@@ -14,7 +14,7 @@ From-dist-git-commit: 4334bc837fbc64d14890fdc51679a80770d498ce
1 file changed, 2 insertions(+)
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
-index 528c8298aa..c12a01e658 100644
+index 90b88eea68..cbd6bf39b5 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -726,6 +726,7 @@ my %targets = (
diff --git a/0002-Add-a-separate-config-file-to-use-for-rpm-installs.patch b/0002-Add-a-separate-config-file-to-use-for-rpm-installs.patch
index b0bc079..c395f0e 100644
--- a/0002-Add-a-separate-config-file-to-use-for-rpm-installs.patch
+++ b/0002-Add-a-separate-config-file-to-use-for-rpm-installs.patch
@@ -1,4 +1,4 @@
-From a11935596f009939e9b30f86776b5c75bd84d1e5 Mon Sep 17 00:00:00 2001
+From 825aba9ff7c7f4b27ffbbbd5caa3fdfca903c8a9 Mon Sep 17 00:00:00 2001
From: Simo Sorce <simo@redhat.com>
Date: Thu, 6 Mar 2025 08:40:29 -0500
Subject: [PATCH 02/16] Add a separate config file to use for rpm installs
diff --git a/0003-RH-Do-not-install-html-docs.patch b/0003-RH-Do-not-install-html-docs.patch
index 8f426e3..836b8ce 100644
--- a/0003-RH-Do-not-install-html-docs.patch
+++ b/0003-RH-Do-not-install-html-docs.patch
@@ -1,4 +1,4 @@
-From 25343448ebc611432b4ee1576e99bf7606f52309 Mon Sep 17 00:00:00 2001
+From 9dc2612874e9610fa46375b59610c5258187e92f Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:14 +0100
Subject: [PATCH 03/16] RH: Do not install html docs
diff --git a/0004-RH-Disable-signature-verification-with-bad-digests-R.patch b/0004-RH-Disable-signature-verification-with-bad-digests-R.patch
index 117a4fb..1427ac1 100644
--- a/0004-RH-Disable-signature-verification-with-bad-digests-R.patch
+++ b/0004-RH-Disable-signature-verification-with-bad-digests-R.patch
@@ -1,4 +1,4 @@
-From 863ecf2c8546d1f8d93730f3420fe1972da7b1c9 Mon Sep 17 00:00:00 2001
+From 14a044ba43a09db9cd0e1b6bc454c80c0c31a7a8 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:14 +0100
Subject: [PATCH 04/16] RH: Disable signature verification with bad digests -
diff --git a/0005-RH-Add-support-for-PROFILE-SYSTEM-system-default-cip.patch b/0005-RH-Add-support-for-PROFILE-SYSTEM-system-default-cip.patch
index 7b2155d..b4a7b1c 100644
--- a/0005-RH-Add-support-for-PROFILE-SYSTEM-system-default-cip.patch
+++ b/0005-RH-Add-support-for-PROFILE-SYSTEM-system-default-cip.patch
@@ -1,4 +1,4 @@
-From 5408b7475fc6e6cdae3a2f6cbd70ff8b31eca329 Mon Sep 17 00:00:00 2001
+From 25535634e0f48d9bb5521a786fde24aa7fe57c97 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:14 +0100
Subject: [PATCH 05/16] RH: Add support for PROFILE SYSTEM system default
@@ -289,7 +289,7 @@ index 61460c0f85..356f12b328 100644
char *SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
-index a564fd81b3..fbb2644186 100644
+index 548fb97e2b..615104e76c 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -671,7 +671,7 @@ int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth)
diff --git a/0006-RH-Add-FIPS_mode-compatibility-macro.patch b/0006-RH-Add-FIPS_mode-compatibility-macro.patch
index 547b364..e3d79f6 100644
--- a/0006-RH-Add-FIPS_mode-compatibility-macro.patch
+++ b/0006-RH-Add-FIPS_mode-compatibility-macro.patch
@@ -1,4 +1,4 @@
-From 30862e6f0ddb829ac5bee625c13fcebc63d30b40 Mon Sep 17 00:00:00 2001
+From fd2cc499498ba5d0f3e9ae72245ae298db2a5d53 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:15 +0100
Subject: [PATCH 06/16] RH: Add FIPS_mode compatibility macro
diff --git a/0007-RH-Add-Kernel-FIPS-mode-flag-support-FIXSTYLE.patch b/0007-RH-Add-Kernel-FIPS-mode-flag-support-FIXSTYLE.patch
index ce58597..5b8812a 100644
--- a/0007-RH-Add-Kernel-FIPS-mode-flag-support-FIXSTYLE.patch
+++ b/0007-RH-Add-Kernel-FIPS-mode-flag-support-FIXSTYLE.patch
@@ -1,4 +1,4 @@
-From a731cbbb27f2dec2f1e5ede2845255836b82a750 Mon Sep 17 00:00:00 2001
+From 6c252623a316e086895f49a931480ba1d345ca7e Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:15 +0100
Subject: [PATCH 07/16] RH: Add Kernel FIPS mode flag support - FIXSTYLE
diff --git a/0008-RH-Allow-disabling-of-SHA1-signatures.patch b/0008-RH-Allow-disabling-of-SHA1-signatures.patch
index 33110e2..9e9a83e 100644
--- a/0008-RH-Allow-disabling-of-SHA1-signatures.patch
+++ b/0008-RH-Allow-disabling-of-SHA1-signatures.patch
@@ -1,4 +1,4 @@
-From 2174352057fb6761895cb635106c6f9d4fcd37ed Mon Sep 17 00:00:00 2001
+From 5650bf7b9f8c4d88bc4998589c2926eb794d7dd0 Mon Sep 17 00:00:00 2001
From: Dmitry Belyavskiy <dbelyavs@redhat.com>
Date: Mon, 21 Aug 2023 13:07:07 +0200
Subject: [PATCH 08/16] RH: Allow disabling of SHA1 signatures
@@ -403,7 +403,7 @@ index 71ca00e9d3..3d10bb1e97 100644
if (md == NULL) {
ERR_raise_data(ERR_LIB_PROV, PROV_R_INVALID_DIGEST,
diff --git a/providers/implementations/signature/ecdsa_sig.c b/providers/implementations/signature/ecdsa_sig.c
-index 9e874f0726..3025817fd4 100644
+index a16f3adbb5..826138de48 100644
--- a/providers/implementations/signature/ecdsa_sig.c
+++ b/providers/implementations/signature/ecdsa_sig.c
@@ -224,13 +224,15 @@ static int ecdsa_setup_md(PROV_ECDSA_CTX *ctx,
@@ -426,7 +426,7 @@ index 9e874f0726..3025817fd4 100644
if (EVP_MD_xof(md)) {
ERR_raise(ERR_LIB_PROV, PROV_R_XOF_DIGESTS_NOT_ALLOWED);
diff --git a/providers/implementations/signature/rsa_sig.c b/providers/implementations/signature/rsa_sig.c
-index ba54527739..17b6a3b5a7 100644
+index cfecf20702..87e05c95e5 100644
--- a/providers/implementations/signature/rsa_sig.c
+++ b/providers/implementations/signature/rsa_sig.c
@@ -26,6 +26,7 @@
@@ -455,7 +455,7 @@ index ba54527739..17b6a3b5a7 100644
ERR_raise_data(ERR_LIB_PROV, PROV_R_DIGEST_NOT_ALLOWED,
"digest=%s", mdname);
goto err;
-@@ -1767,8 +1770,13 @@ static int rsa_set_ctx_params(void *vprsactx, const OSSL_PARAM params[])
+@@ -1768,8 +1771,13 @@ static int rsa_set_ctx_params(void *vprsactx, const OSSL_PARAM params[])
prsactx->pad_mode = pad_mode;
if (prsactx->md == NULL && pmdname == NULL
diff --git a/0009-FIPS-Force-fips-provider-on.patch b/0009-FIPS-Force-fips-provider-on.patch
index cf16363..37f9d03 100644
--- a/0009-FIPS-Force-fips-provider-on.patch
+++ b/0009-FIPS-Force-fips-provider-on.patch
@@ -1,4 +1,4 @@
-From 1561f21a828eb2d7421e025b78074c2368657b5a Mon Sep 17 00:00:00 2001
+From 66cff6d71999acacd371594fce7463c114576623 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:15 +0100
Subject: [PATCH 09/16] FIPS: Force fips provider on
@@ -9,11 +9,11 @@ Patch-status: |
# # We load FIPS provider and set FIPS properties implicitly
From-dist-git-commit: 4334bc837fbc64d14890fdc51679a80770d498ce
---
- crypto/provider_conf.c | 30 +++++++++++++++++++++++++++++-
- 1 file changed, 29 insertions(+), 1 deletion(-)
+ crypto/provider_conf.c | 32 +++++++++++++++++++++++++++++++-
+ 1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/crypto/provider_conf.c b/crypto/provider_conf.c
-index f2e76ac402..a2a8a9942c 100644
+index f2e76ac402..60f9fbceed 100644
--- a/crypto/provider_conf.c
+++ b/crypto/provider_conf.c
@@ -10,6 +10,8 @@
@@ -43,7 +43,7 @@ index f2e76ac402..a2a8a9942c 100644
}
CRYPTO_THREAD_unlock(pcgbl->lock);
-@@ -420,6 +424,30 @@ static int provider_conf_init(CONF_IMODULE *md, const CONF *cnf)
+@@ -420,6 +424,32 @@ static int provider_conf_init(CONF_IMODULE *md, const CONF *cnf)
return 0;
}
@@ -53,8 +53,10 @@ index f2e76ac402..a2a8a9942c 100644
+
+ if (access(FIPS_LOCAL_CONF, R_OK) == 0) {
+ CONF *fips_conf = NCONF_new_ex(libctx, NCONF_default());
-+ if (NCONF_load(fips_conf, FIPS_LOCAL_CONF, NULL) <= 0)
++ if (NCONF_load(fips_conf, FIPS_LOCAL_CONF, NULL) <= 0) {
++ NCONF_free(fips_conf);
+ return 0;
++ }
+
+ if (provider_conf_load(libctx, "fips", "fips_sect", fips_conf) != 1) {
+ NCONF_free(fips_conf);
diff --git a/0010-FIPS-RAND-FIPS-140-3-DRBG-NEEDS-REVIEW.patch b/0010-FIPS-RAND-FIPS-140-3-DRBG-NEEDS-REVIEW.patch
index 0fac358..2254de8 100644
--- a/0010-FIPS-RAND-FIPS-140-3-DRBG-NEEDS-REVIEW.patch
+++ b/0010-FIPS-RAND-FIPS-140-3-DRBG-NEEDS-REVIEW.patch
@@ -1,4 +1,4 @@
-From 02286af50ee9191fac53388f0808a715a9083dd9 Mon Sep 17 00:00:00 2001
+From 76dc9149b8c9766511b289b73c3636b7dd7321f0 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:16 +0100
Subject: [PATCH 10/16] FIPS: RAND: FIPS-140-3 DRBG - NEEDS REVIEW
diff --git a/0011-FIPS-TLS-Enforce-EMS-in-TLS-1.2-NOTE.patch b/0011-FIPS-TLS-Enforce-EMS-in-TLS-1.2-NOTE.patch
index 5942b6e..7c956ad 100644
--- a/0011-FIPS-TLS-Enforce-EMS-in-TLS-1.2-NOTE.patch
+++ b/0011-FIPS-TLS-Enforce-EMS-in-TLS-1.2-NOTE.patch
@@ -1,4 +1,4 @@
-From 69cf48b40610adf8de8676db46e874868eeddbb4 Mon Sep 17 00:00:00 2001
+From d2854454ef026cd9ef247fd7214cf7f221e05aee Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 6 Mar 2024 19:17:17 +0100
Subject: [PATCH 11/16] FIPS: TLS: Enforce EMS in TLS 1.2 - NOTE
diff --git a/0012-FIPS-CMS-Set-default-padding-to-OAEP.patch b/0012-FIPS-CMS-Set-default-padding-to-OAEP.patch
index fd236e3..6f317b7 100644
--- a/0012-FIPS-CMS-Set-default-padding-to-OAEP.patch
+++ b/0012-FIPS-CMS-Set-default-padding-to-OAEP.patch
@@ -1,4 +1,4 @@
-From 18863688987b2b1b8a75304fbb4cd3f90aee4151 Mon Sep 17 00:00:00 2001
+From 45257fce82fd261a83b9c2525e1b616d49eee0e1 Mon Sep 17 00:00:00 2001
From: Simo Sorce <simo@redhat.com>
Date: Thu, 13 Feb 2025 18:08:34 -0500
Subject: [PATCH 12/16] FIPS: CMS: Set default padding to OAEP
diff --git a/0013-FIPS-PKCS12-PBMAC1-defaults.patch b/0013-FIPS-PKCS12-PBMAC1-defaults.patch
index d52c223..6ac900d 100644
--- a/0013-FIPS-PKCS12-PBMAC1-defaults.patch
+++ b/0013-FIPS-PKCS12-PBMAC1-defaults.patch
@@ -1,4 +1,4 @@
-From 2817a5db284624dcf53402070261179a2b9df14e Mon Sep 17 00:00:00 2001
+From 67fd54f6ccf14e5ce594bf38af2f9f569dd06d2c Mon Sep 17 00:00:00 2001
From: Simo Sorce <simo@redhat.com>
Date: Thu, 13 Feb 2025 18:16:29 -0500
Subject: [PATCH 13/16] FIPS: PKCS12: PBMAC1 defaults
diff --git a/0014-FIPS-EC-disable-weak-curves.patch b/0014-FIPS-EC-disable-weak-curves.patch
index c67e83f..90f04b1 100644
--- a/0014-FIPS-EC-disable-weak-curves.patch
+++ b/0014-FIPS-EC-disable-weak-curves.patch
@@ -1,4 +1,4 @@
-From a13523d199369be606c77bbf9365be5451241ac5 Mon Sep 17 00:00:00 2001
+From b90f61a32a7e06ed1a53a9b9092b4102432bde51 Mon Sep 17 00:00:00 2001
From: Simo Sorce <simo@redhat.com>
Date: Fri, 7 Mar 2025 18:06:36 -0500
Subject: [PATCH 14/16] FIPS: EC: disable weak curves
diff --git a/0015-Make-openssl-speed-run-in-FIPS-mode.patch b/0015-Make-openssl-speed-run-in-FIPS-mode.patch
index 041125e..7c6fc9a 100644
--- a/0015-Make-openssl-speed-run-in-FIPS-mode.patch
+++ b/0015-Make-openssl-speed-run-in-FIPS-mode.patch
@@ -1,4 +1,4 @@
-From 59af36526a2a410fac22c53ba2fe50b09266448a Mon Sep 17 00:00:00 2001
+From 47879a23b47ce876acebeb6834fafac9f8151404 Mon Sep 17 00:00:00 2001
From: Dmitry Belyavskiy <beldmit@gmail.com>
Date: Fri, 9 May 2025 15:09:46 +0200
Subject: [PATCH 15/16] Make `openssl speed` run in FIPS mode
diff --git a/0016-Allow-hybrid-MLKEM-in-FIPS-mode.patch b/0016-Allow-hybrid-MLKEM-in-FIPS-mode.patch
index 648d7f0..d22c12d 100644
--- a/0016-Allow-hybrid-MLKEM-in-FIPS-mode.patch
+++ b/0016-Allow-hybrid-MLKEM-in-FIPS-mode.patch
@@ -1,4 +1,4 @@
-From 551dd97a53926e2aec00b7801b801f427f7825c2 Mon Sep 17 00:00:00 2001
+From 9b9961d255d2f76e5c161817243f588c808b97f7 Mon Sep 17 00:00:00 2001
From: Dmitry Belyavskiy <beldmit@gmail.com>
Date: Fri, 30 May 2025 16:17:37 +0200
Subject: [PATCH 16/16] Allow hybrid MLKEM in FIPS mode
@@ -90,20 +90,20 @@ index db9f84748a..d465404dfb 100644
#if !defined(OPENSSL_NO_SM2)
{ PROV_NAMES_curveSM2MLKEM768, "provider=default", ossl_mlx_curve_sm2_kem_kmgmt_functions,
diff --git a/providers/implementations/kem/mlx_kem.c b/providers/implementations/kem/mlx_kem.c
-index a917fa93d5..04429e0926 100644
+index 1bbbf5d0e9..95f16a481f 100644
--- a/providers/implementations/kem/mlx_kem.c
+++ b/providers/implementations/kem/mlx_kem.c
-@@ -19,6 +19,7 @@
- #include "prov/mlx_kem.h"
+@@ -24,6 +24,7 @@
#include "prov/provider_ctx.h"
#include "prov/providercommon.h"
+ #include "providers/implementations/kem/mlx_kem.inc"
+#include <string.h>
static OSSL_FUNC_kem_newctx_fn mlx_kem_newctx;
static OSSL_FUNC_kem_freectx_fn mlx_kem_freectx;
-@@ -103,6 +104,28 @@ mlx_kem_set_ctx_params(void *vctx, const OSSL_PARAM params[])
- return 1;
+@@ -139,6 +140,28 @@ static int mlx_kem_get_ctx_params(void *vctx, OSSL_PARAM params[])
}
+ #endif
+char *get_adjusted_propq(const char *propq)
+{
@@ -130,7 +130,7 @@ index a917fa93d5..04429e0926 100644
static int mlx_kem_encapsulate(void *vctx, unsigned char *ctext, size_t *clen,
unsigned char *shsec, size_t *slen)
{
-@@ -115,6 +138,7 @@ static int mlx_kem_encapsulate(void *vctx, unsigned char *ctext, size_t *clen,
+@@ -151,6 +174,7 @@ static int mlx_kem_encapsulate(void *vctx, unsigned char *ctext, size_t *clen,
uint8_t *sbuf;
int ml_kem_slot = key->xinfo->ml_kem_slot;
int ret = 0;
@@ -138,7 +138,7 @@ index a917fa93d5..04429e0926 100644
if (!mlx_kem_have_pubkey(key)) {
ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_KEY);
-@@ -167,7 +191,8 @@ static int mlx_kem_encapsulate(void *vctx, unsigned char *ctext, size_t *clen,
+@@ -203,7 +227,8 @@ static int mlx_kem_encapsulate(void *vctx, unsigned char *ctext, size_t *clen,
encap_slen = ML_KEM_SHARED_SECRET_BYTES;
cbuf = ctext + ml_kem_slot * key->xinfo->pubkey_bytes;
sbuf = shsec + ml_kem_slot * key->xinfo->shsec_bytes;
@@ -148,7 +148,7 @@ index a917fa93d5..04429e0926 100644
if (ctx == NULL
|| EVP_PKEY_encapsulate_init(ctx, NULL) <= 0
|| EVP_PKEY_encapsulate(ctx, cbuf, &encap_clen, sbuf, &encap_slen) <= 0)
-@@ -242,6 +267,7 @@ end:
+@@ -278,6 +303,7 @@ end:
ML_KEM_SHARED_SECRET_BYTES + key->xinfo->shsec_bytes);
EVP_PKEY_free(xkey);
EVP_PKEY_CTX_free(ctx);
@@ -156,7 +156,7 @@ index a917fa93d5..04429e0926 100644
return ret;
}
-@@ -257,6 +283,7 @@ static int mlx_kem_decapsulate(void *vctx, uint8_t *shsec, size_t *slen,
+@@ -293,6 +319,7 @@ static int mlx_kem_decapsulate(void *vctx, uint8_t *shsec, size_t *slen,
size_t decap_clen = key->minfo->ctext_bytes + key->xinfo->pubkey_bytes;
int ml_kem_slot = key->xinfo->ml_kem_slot;
int ret = 0;
@@ -164,7 +164,7 @@ index a917fa93d5..04429e0926 100644
if (!mlx_kem_have_prvkey(key)) {
ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_KEY);
-@@ -292,7 +319,8 @@ static int mlx_kem_decapsulate(void *vctx, uint8_t *shsec, size_t *slen,
+@@ -328,7 +355,8 @@ static int mlx_kem_decapsulate(void *vctx, uint8_t *shsec, size_t *slen,
decap_slen = ML_KEM_SHARED_SECRET_BYTES;
cbuf = ctext + ml_kem_slot * key->xinfo->pubkey_bytes;
sbuf = shsec + ml_kem_slot * key->xinfo->shsec_bytes;
@@ -174,7 +174,7 @@ index a917fa93d5..04429e0926 100644
if (ctx == NULL
|| EVP_PKEY_decapsulate_init(ctx, NULL) <= 0
|| EVP_PKEY_decapsulate(ctx, sbuf, &decap_slen, cbuf, decap_clen) <= 0)
-@@ -334,6 +362,7 @@ end:
+@@ -370,6 +398,7 @@ end:
ML_KEM_SHARED_SECRET_BYTES + key->xinfo->shsec_bytes);
EVP_PKEY_CTX_free(ctx);
EVP_PKEY_free(xkey);
@@ -183,10 +183,10 @@ index a917fa93d5..04429e0926 100644
}
diff --git a/providers/implementations/keymgmt/mlx_kmgmt.c b/providers/implementations/keymgmt/mlx_kmgmt.c
-index 3621688326..7a61f77521 100644
+index f620bb9099..147c12b116 100644
--- a/providers/implementations/keymgmt/mlx_kmgmt.c
+++ b/providers/implementations/keymgmt/mlx_kmgmt.c
-@@ -164,6 +164,52 @@ typedef struct export_cb_arg_st {
+@@ -167,6 +167,52 @@ typedef struct export_cb_arg_st {
size_t prvlen;
} EXPORT_CB_ARG;
@@ -239,7 +239,7 @@ index 3621688326..7a61f77521 100644
/* Copy any exported key material into its storage slot */
static int export_sub_cb(const OSSL_PARAM *params, void *varg)
{
-@@ -184,6 +230,10 @@ static int export_sub_cb(const OSSL_PARAM *params, void *varg)
+@@ -187,6 +233,10 @@ static int export_sub_cb(const OSSL_PARAM *params, void *varg)
if (OSSL_PARAM_get_octet_string(p.pubkey, &pub, sub_arg->publen, &len) != 1)
return 0;
@@ -250,7 +250,7 @@ index 3621688326..7a61f77521 100644
if (len != sub_arg->publen) {
ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
"Unexpected %s public key length %lu != %lu",
-@@ -345,12 +395,14 @@ load_slot(OSSL_LIB_CTX *libctx, const char *propq, const char *pname,
+@@ -347,12 +397,14 @@ load_slot(OSSL_LIB_CTX *libctx, const char *propq, const char *pname,
void *val;
int ml_kem_slot = key->xinfo->ml_kem_slot;
int ret = 0;
@@ -265,7 +265,7 @@ index 3621688326..7a61f77521 100644
} else {
alg = key->xinfo->algorithm_name;
group = (char *)key->xinfo->group_name;
-@@ -360,7 +412,8 @@ load_slot(OSSL_LIB_CTX *libctx, const char *propq, const char *pname,
+@@ -362,7 +414,8 @@ load_slot(OSSL_LIB_CTX *libctx, const char *propq, const char *pname,
}
val = (void *)(in + off);
@@ -275,7 +275,7 @@ index 3621688326..7a61f77521 100644
|| EVP_PKEY_fromdata_init(ctx) <= 0)
goto err;
parr[0] = OSSL_PARAM_construct_octet_string(pname, val, len);
-@@ -371,6 +424,7 @@ load_slot(OSSL_LIB_CTX *libctx, const char *propq, const char *pname,
+@@ -373,6 +426,7 @@ load_slot(OSSL_LIB_CTX *libctx, const char *propq, const char *pname,
ret = 1;
err:
@@ -283,7 +283,7 @@ index 3621688326..7a61f77521 100644
EVP_PKEY_CTX_free(ctx);
return ret;
}
-@@ -677,6 +731,7 @@ static void *mlx_kem_gen(void *vgctx, OSSL_CALLBACK *osslcb, void *cbarg)
+@@ -696,6 +750,7 @@ static void *mlx_kem_gen(void *vgctx, OSSL_CALLBACK *osslcb, void *cbarg)
PROV_ML_KEM_GEN_CTX *gctx = vgctx;
MLX_KEY *key;
char *propq;
@@ -291,7 +291,7 @@ index 3621688326..7a61f77521 100644
if (gctx == NULL
|| (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
-@@ -692,8 +747,10 @@ static void *mlx_kem_gen(void *vgctx, OSSL_CALLBACK *osslcb, void *cbarg)
+@@ -711,8 +766,10 @@ static void *mlx_kem_gen(void *vgctx, OSSL_CALLBACK *osslcb, void *cbarg)
return key;
/* For now, using the same "propq" for all components */
diff --git a/0017-Dont-advertise-config-loading-as-done-soon.patch b/0017-Dont-advertise-config-loading-as-done-soon.patch
deleted file mode 100644
index fed34d0..0000000
--- a/0017-Dont-advertise-config-loading-as-done-soon.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From d115fd05e3986e90db18776ad49103fadccbe52f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= <zacik.pa@gmail.com>
-Date: Wed, 2 Sep 2026 14:54:28 +0200
-Subject: [PATCH] Do not advertise OPENSSL_INIT_LOAD_CONFIG in optsdone too
- soon
-
-If there was no explicit call to OPENSSL_init_crypto before starting
-threading, it would result in a race between loading the config in
-one thread, and attempting to use features dependent on the config,
-e.g., providers in other threads.
-
-The first thread that gets into OPENSSL_init_crypto would start loading
-the config and set `loading` to 1 The same thread may re-enter the function
-recursively and should do nothing, but it would actually update `optsdone`
-with OPENSSL_INIT_LOAD_CONFIG, even though the loading has not finished yet.
-This commit fixes the issue by masking the opts bit out if we re-enter
-OPENSSL_init_crypto.
-
-Assisted-by: Claude:claude-opus-4.8
----
- crypto/init.c | 14 +++++++++++---
- 1 file changed, 11 insertions(+), 3 deletions(-)
-
-diff --git a/crypto/init.c b/crypto/init.c
-index 302e37f7fae33..1863894b39343 100644
---- a/crypto/init.c
-+++ b/crypto/init.c
-@@ -348,6 +348,7 @@ void ossl_cleanup_destructor(void)
- int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
- {
- uint64_t tmp;
-+ uint64_t optsdone_bits = opts;
- int aloaddone = 0;
-
- /* Applications depend on 0 being returned when cleanup was already done */
-@@ -453,8 +454,15 @@ int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
- if (opts & OPENSSL_INIT_LOAD_CONFIG) {
- int loading = CRYPTO_THREAD_get_local(&in_init_config_local) != NULL;
-
-- /* If called recursively from OBJ_ calls, just skip it. */
-- if (!loading) {
-+ /* If called recursively from OBJ_ calls during config loading,
-+ * we have to mask OPENSSL_INIT_LOAD_CONFIG in optsdone to not
-+ * advertise that config loading is complete, otherwise other
-+ * threads may proceed, e.g., to fetching from a provider that
-+ * is not yet loaded.
-+ */
-+ if (loading) {
-+ optsdone_bits &= ~(uint64_t)OPENSSL_INIT_LOAD_CONFIG;
-+ } else {
- int ret;
-
- if (!CRYPTO_THREAD_set_local(&in_init_config_local, (void *)-1))
-@@ -480,7 +488,7 @@ int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
- && !RUN_ONCE(&async, ossl_init_async))
- return 0;
-
-- if (!CRYPTO_atomic_or(&optsdone, opts, &tmp, optsdone_lock))
-+ if (!CRYPTO_atomic_or(&optsdone, optsdone_bits, &tmp, optsdone_lock))
- return 0;
-
- return 1;
diff --git a/openssl.spec b/openssl.spec
index 0a3047e..d7e741f 100644
--- a/openssl.spec
+++ b/openssl.spec
@@ -29,8 +29,8 @@ print(string.sub(hash, 0, 16))
Summary: Utilities from the general purpose cryptography library with TLS implementation
Name: openssl
-Version: 4.0.2
-Release: 4%{?dist}
+Version: 4.0.3
+Release: 1%{?dist}
Epoch: 1
Source0: openssl-%{version}.tar.gz
Source4: openssl.rpmlintrc
@@ -53,8 +53,6 @@ Patch0013: 0013-FIPS-PKCS12-PBMAC1-defaults.patch
Patch0014: 0014-FIPS-EC-disable-weak-curves.patch
Patch0015: 0015-Make-openssl-speed-run-in-FIPS-mode.patch
Patch0016: 0016-Allow-hybrid-MLKEM-in-FIPS-mode.patch
-# https://github.com/openssl/openssl/commit/457c55324724f385e968eeee00955b8b1bec8910
-Patch0017: 0017-Dont-advertise-config-loading-as-done-soon.patch
License: Apache-2.0
URL: http://www.openssl.org/
@@ -209,7 +207,7 @@ export HASHBANGPERL=/usr/bin/perl
--system-ciphers-file=%{_sysconfdir}/crypto-policies/back-ends/opensslcnf.config \
zlib enable-camellia enable-seed enable-rfc3779 enable-sctp enable-sslkeylog \
enable-cms enable-md2 enable-rc5 ${ktlsopt} -D_GNU_SOURCE\
- no-mdc2 no-ec2m no-sm2 no-sm3 no-sm4 no-atexit enable-buildtest-c++\
+ no-mdc2 no-ec2m no-sm2 no-sm3 no-sm4 enable-buildtest-c++\
shared ${sslarch} $RPM_OPT_FLAGS '-DDEVRANDOM="\"/dev/urandom\""' -DOPENSSL_PEDANTIC_ZEROIZATION
# Do not run this in a production package the FIPS symbols must be patched-in
@@ -378,6 +376,23 @@ ln -s /etc/crypto-policies/back-ends/openssl_fips.config $RPM_BUILD_ROOT%{_sysco
%ldconfig_scriptlets libs
%changelog
+* Wed Sep 30 2026 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1:4.0.3-1
+- Rebase to OpenSSL 4.0.3
+ Resolves: CVE-2026-84782
+ Resolves: CVE-2026-84783
+ Resolves: CVE-2026-35189
+ Resolves: CVE-2026-35191
+ Resolves: CVE-2026-42772
+ Resolves: CVE-2026-54872
+ Resolves: CVE-2026-54873
+ Resolves: CVE-2026-54875
+ Resolves: CVE-2026-72897
+ Resolves: CVE-2026-75804
+ Resolves: CVE-2026-75805
+ Resolves: CVE-2026-75806
+ Resolves: CVE-2026-77696
+ Resolves: CVE-2026-84784
+
* Sat Sep 26 2026 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:4.0.2-4
- Really obsolete openssl-devel-engine
Resolves: rhbz#2527847
diff --git a/sources b/sources
index eba35f6..c63081a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (openssl-4.0.2.tar.gz) = 4da808b64fca832b80752c4dc0248ea602c78ecc35fb7455439dccfae3fb74213d3689f455a40533d89e6180d2c81ea5871f2763fa64740c2810af9fdb4104be
+SHA512 (openssl-4.0.3.tar.gz) = cc424e5f8470a47e2c7345e95516a6a0e2a5eee0fe4feef3de3d39b75071b1f42f4a2388d1c8926652bba4082108b7050ddc30b274543b62937c46bdcad3b3c0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-30 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 15:04 [rpms/openssl] rawhide: Rebase to OpenSSL 4.0.3 Dmitry Belyavskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox