Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions base/comps/openssl/openssl.comp.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
28 changes: 28 additions & 0 deletions base/comps/openssl/overlays/0003-update-to-3.5.10.overlay.toml
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion locks/openssl.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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); */
Expand Down
15 changes: 15 additions & 0 deletions specs/o/openssl/0082-azl-exercise-pedantic-rsa-pss-check.patch
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions specs/o/openssl/openssl.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion specs/o/openssl/sources
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SHA512 (openssl-3.5.9.tar.gz) = c4c8136fd2c98d13bb85a57bfb0def25c906f47f1fe97675cd114594944eab957b5b81a3e0f48826e1a0f093afff5e83766b539d49768f6db68310fd678d7de6
SHA512 (openssl-3.5.10.tar.gz) = 49493c3a39e46275140dba404d6f0130a5c9a55523284ac2982954fb4797eeb04ae5bccd01efc86f97444cff2416b3a1f684a664be8d7ca098455d9a741987dd