diff --git a/base/comps/openssl/0082-azl-exercise-pedantic-rsa-pss-check.patch b/base/comps/openssl/0082-azl-exercise-pedantic-rsa-pss-check.patch new file mode 100644 index 00000000000..783e0b3f7f7 --- /dev/null +++ b/base/comps/openssl/0082-azl-exercise-pedantic-rsa-pss-check.patch @@ -0,0 +1,15 @@ +Subject: [PATCH] Set the pedantic RSA-PSS salt check in the static test fixture + +The upstream EVP suite expects the test module configuration produced by +fipsinstall -pedantic. Azure Linux uses a static test configuration instead +to exercise its embedded HMAC. Enable the salt length check there so both +negative test vectors exercise the rejection path. This file is used only +by the tests; it is not installed with the runtime or provider. + +diff --git a/test/fipsmodule.cnf b/test/fipsmodule.cnf +--- a/test/fipsmodule.cnf ++++ b/test/fipsmodule.cnf +@@ -1,2 +1,3 @@ + [fips_sect] + activate = 1 ++rsa-pss-saltlen-check = 1 diff --git a/base/comps/openssl/openssl.comp.toml b/base/comps/openssl/openssl.comp.toml index 1ca880d51e0..2cf8bab436f 100644 --- a/base/comps/openssl/openssl.comp.toml +++ b/base/comps/openssl/openssl.comp.toml @@ -1,4 +1,11 @@ [components.openssl] +# Verified against the OpenSSL release signature and published SHA256. +[[components.openssl.source-files]] +filename = "openssl-3.5.10.tar.gz" +hash = "49493c3a39e46275140dba404d6f0130a5c9a55523284ac2982954fb4797eeb04ae5bccd01efc86f97444cff2416b3a1f684a664be8d7ca098455d9a741987dd" +hash-type = "SHA512" +origin = { type = "download", uri = "https://github.com/openssl/openssl/releases/download/openssl-3.5.10/openssl-3.5.10.tar.gz" } + # Azure Linux does not ship fips.so. Extend the existing RHEL fips.so-deletion # path to cover Azure Linux so the module and its config are excluded from the # package. This also enables the FIPS-provider dependency, which the Azure Linux diff --git a/base/comps/openssl/overlays/0003-update-to-3.5.10.overlay.toml b/base/comps/openssl/overlays/0003-update-to-3.5.10.overlay.toml new file mode 100644 index 00000000000..c1a655969ad --- /dev/null +++ b/base/comps/openssl/overlays/0003-update-to-3.5.10.overlay.toml @@ -0,0 +1,28 @@ +# Fedora f43 and f44 do not yet package the December 2026 security release. +# Remove this overlay once the imported spec packages 3.5.10 or newer. +[metadata] +category = "azl-temp-workaround" +upstream-status = "upstreamable" + +[[overlays]] +type = "spec-update-tag" +tag = "Version" +value = "3.5.10" +description = "Update the runtime to OpenSSL 3.5.10" + +[[overlays]] +type = "file-search-replace" +file = "sources" +regex = '(?m)^SHA512 \(openssl-3\.5\.9\.tar\.gz\) = [0-9a-f]+(?:\r?\n|$)' +description = "Remove the obsolete OpenSSL 3.5.9 tarball checksum" + +# Upstream inserted a regression test between parameter_test and +# ossl_parameter_test. Refresh context only; retain both test registrations. +[[overlays]] +type = "file-search-replace" +file = "0009-RH-Drop-weak-curve-definitions-RENAMED-SQUASHED.patch" +regex = '(?m)^ \n ADD_TEST\(parameter_test\);\n ADD_TEST\(ossl_parameter_test\);' +replacement = ''' ADD_TEST(parameter_test); + ADD_TEST(group_cmp_no_generator_test); + ADD_TEST(ossl_parameter_test);''' +description = "Refresh patch 0009 test registration context for OpenSSL 3.5.10" diff --git a/base/comps/openssl/overlays/0004-use-pedantic-rsa-pss-test-config.overlay.toml b/base/comps/openssl/overlays/0004-use-pedantic-rsa-pss-test-config.overlay.toml new file mode 100644 index 00000000000..7a61b146a5b --- /dev/null +++ b/base/comps/openssl/overlays/0004-use-pedantic-rsa-pss-test-config.overlay.toml @@ -0,0 +1,8 @@ +[metadata] +category = "azl-security-compliance" +upstream-status = "inapplicable" + +[[overlays]] +type = "patch-add" +source = "../0082-azl-exercise-pedantic-rsa-pss-check.patch" +description = "Exercise RSA-PSS salt length rejection with the static FIPS test configuration" diff --git a/locks/openssl.lock b/locks/openssl.lock index e3f29b5dabd..9f6c251fbf6 100644 --- a/locks/openssl.lock +++ b/locks/openssl.lock @@ -3,5 +3,5 @@ version = 1 import-commit = '8e2fde9ae8b83393b6d58c62492106751e52a696' upstream-commit = 'faa5a3bfdedca8c8543e4b330f4c94077a197487' manual-bump = 2 -input-fingerprint = 'sha256:fd1f94c339aeb641b76cb76ef4e9a2adfdb1b37c1fbff69c43f75628f51c72c0' +input-fingerprint = 'sha256:728e060a8705f12884924f632c8698bcc58a587766b3545aabe5f15f7ee2dfc8' resolution-input-hash = 'sha256:ee2b4b2a7474232699f7ef1461160019159849dcc0daf2dcff1aabf35416ecec' diff --git a/specs/o/openssl/0009-RH-Drop-weak-curve-definitions-RENAMED-SQUASHED.patch b/specs/o/openssl/0009-RH-Drop-weak-curve-definitions-RENAMED-SQUASHED.patch index ef24c5a7eab..37a9e7ff190 100644 --- a/specs/o/openssl/0009-RH-Drop-weak-curve-definitions-RENAMED-SQUASHED.patch +++ b/specs/o/openssl/0009-RH-Drop-weak-curve-definitions-RENAMED-SQUASHED.patch @@ -1276,8 +1276,8 @@ index 1e4ae9c63e..56cfc99421 100644 || !TEST_int_eq(1, BN_check_prime(p, ctx, NULL)) || !TEST_true(BN_hex2bn(&a, "FFFFFFFFFFFFFFFFFFFFFFFF" @@ -3107,7 +2950,7 @@ int setup_tests(void) - ADD_TEST(parameter_test); + ADD_TEST(group_cmp_no_generator_test); ADD_TEST(ossl_parameter_test); - ADD_TEST(cofactor_range_test); + /* ADD_TEST(cofactor_range_test); */ diff --git a/specs/o/openssl/0082-azl-exercise-pedantic-rsa-pss-check.patch b/specs/o/openssl/0082-azl-exercise-pedantic-rsa-pss-check.patch new file mode 100644 index 00000000000..783e0b3f7f7 --- /dev/null +++ b/specs/o/openssl/0082-azl-exercise-pedantic-rsa-pss-check.patch @@ -0,0 +1,15 @@ +Subject: [PATCH] Set the pedantic RSA-PSS salt check in the static test fixture + +The upstream EVP suite expects the test module configuration produced by +fipsinstall -pedantic. Azure Linux uses a static test configuration instead +to exercise its embedded HMAC. Enable the salt length check there so both +negative test vectors exercise the rejection path. This file is used only +by the tests; it is not installed with the runtime or provider. + +diff --git a/test/fipsmodule.cnf b/test/fipsmodule.cnf +--- a/test/fipsmodule.cnf ++++ b/test/fipsmodule.cnf +@@ -1,2 +1,3 @@ + [fips_sect] + activate = 1 ++rsa-pss-saltlen-check = 1 diff --git a/specs/o/openssl/openssl.spec b/specs/o/openssl/openssl.spec index e270894559e..bd870cd5ca8 100644 --- a/specs/o/openssl/openssl.spec +++ b/specs/o/openssl/openssl.spec @@ -36,8 +36,8 @@ print(string.sub(hash, 0, 16)) Summary: Utilities from the general purpose cryptography library with TLS implementation Name: openssl -Version: 3.5.9 -Release: 13%{?dist} +Version: 3.5.10 +Release: 14%{?dist} Epoch: 1 Source0: openssl-%{version}.tar.gz Source1: fips-hmacify.sh @@ -126,6 +126,7 @@ Obsoletes: oqsprovider < 0.9.0 Patch59: 0080-azl-load-registered-fips-provider.patch Patch60: 0081-azl-adapt-fipsinstall-tests.patch +Patch61: 0082-azl-exercise-pedantic-rsa-pss-check.patch %description The OpenSSL toolkit provides support for secure communications between machines. OpenSSL includes a certificate management tool and shared diff --git a/specs/o/openssl/sources b/specs/o/openssl/sources index dcb6aa91a35..7db3ffdfac7 100644 --- a/specs/o/openssl/sources +++ b/specs/o/openssl/sources @@ -1 +1 @@ -SHA512 (openssl-3.5.9.tar.gz) = c4c8136fd2c98d13bb85a57bfb0def25c906f47f1fe97675cd114594944eab957b5b81a3e0f48826e1a0f093afff5e83766b539d49768f6db68310fd678d7de6 +SHA512 (openssl-3.5.10.tar.gz) = 49493c3a39e46275140dba404d6f0130a5c9a55523284ac2982954fb4797eeb04ae5bccd01efc86f97444cff2416b3a1f684a664be8d7ca098455d9a741987dd