[packages/openssl/v3.6] drop fipsmodule.cnf (arch-specific MAC, multilib conflict, invalid after strip anyway); rel 3 CVE-20
arekm
arekm at pld-linux.org
Sun Nov 15 20:23:06 CET 2026
commit afe0ca5bfbfd62ff3d3a4bfeee2b3fea552fa468
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Nov 15 15:10:46 2026 +0100
drop fipsmodule.cnf (arch-specific MAC, multilib conflict, invalid after strip anyway); rel 3
CVE-2026-107496
CVE-2026-95692
CVE-2026-95691
CVE-2026-88823
CVE-2026-88822
openssl-CVE-2026-107496.patch | 66 ++++++++++++++++++
openssl-CVE-2026-88822.patch | 16 +++++
openssl-CVE-2026-88823.patch | 39 +++++++++++
openssl-CVE-2026-95691.patch | 153 ++++++++++++++++++++++++++++++++++++++++++
openssl-CVE-2026-95692.patch | 39 +++++++++++
openssl.spec | 17 ++++-
6 files changed, 328 insertions(+), 2 deletions(-)
---
diff --git a/openssl.spec b/openssl.spec
index af105f9..ff5be3c 100644
--- a/openssl.spec
+++ b/openssl.spec
@@ -14,7 +14,7 @@ Summary(ru.UTF-8): Библиотеки и утилиты для соедине
Summary(uk.UTF-8): Бібліотеки та утиліти для з'єднань через Secure Sockets Layer
Name: openssl
Version: 3.6.5
-Release: 2
+Release: 3
License: Apache v2.0
Group: Libraries
Source0: https://github.com/openssl/openssl/releases/download/openssl-%{version}/%{name}-%{version}.tar.gz
@@ -27,6 +27,11 @@ Patch1: %{name}-ca-certificates.patch
Patch2: %{name}-find.patch
Patch3: engines-dir.patch
Patch4: x32-sha-avx-ssse3-detect.patch
+Patch5: %{name}-CVE-2026-107496.patch
+Patch6: %{name}-CVE-2026-95692.patch
+Patch7: %{name}-CVE-2026-95691.patch
+Patch8: %{name}-CVE-2026-88823.patch
+Patch9: %{name}-CVE-2026-88822.patch
URL: https://www.openssl.org/
%ifarch %{arm} ppc mips sparc sparcv9
BuildRequires: libatomic-devel
@@ -212,6 +217,11 @@ RC4, RSA и SSL. Включает статические библиотеки д
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
+%patch -P5 -p1
+%patch -P6 -p1
+%patch -P7 -p1
+%patch -P8 -p1
+%patch -P9 -p1
# fails with enable-sctp as of 1.1.1
%{__rm} test/recipes/80-test_ssl_new.t
@@ -324,6 +334,10 @@ ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libssl.*) $RPM_BUILD_ROOT%{_l
%{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/misc
%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/*.cnf.dist
+# fipsmodule.cnf carries the MAC of this arch's fips.so, so multilib packages
+# conflict on it; README-FIPS.md wants it generated on each machine instead
+# with openssl fipsinstall, see openssl-fipsinstall(1)
+%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/fipsmodule.cnf
# html version of man pages - not packaged
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html/man[1357]
@@ -373,7 +387,6 @@ fi
%attr(755,root,root) /%{_lib}/ossl-modules/legacy.so
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/ct_log_list.cnf
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/fipsmodule.cnf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/openssl.cnf
%dir %{_sysconfdir}/%{name}/certs
%dir %attr(700,root,root) %{_sysconfdir}/%{name}/private
diff --git a/openssl-CVE-2026-107496.patch b/openssl-CVE-2026-107496.patch
new file mode 100644
index 0000000..77c8477
--- /dev/null
+++ b/openssl-CVE-2026-107496.patch
@@ -0,0 +1,66 @@
+Upstream a957a4bfc0 "crypto/ec/ec_key.c: Reject invalid group order during key generation"
+(CVE-2026-107496), https://github.com/openssl/openssl/commit/a957a4bfc0
+
+--- openssl-3.6.5.orig/crypto/ec/ec_key.c
++++ openssl-3.6.5/crypto/ec/ec_key.c
+@@ -299,6 +299,11 @@
+ goto err;
+ }
+
++ if (BN_cmp(order, BN_value_one()) <= 0) {
++ ERR_raise(ERR_LIB_EC, EC_R_INVALID_GROUP_ORDER);
++ goto err;
++ }
++
+ do
+ if (!BN_priv_rand_range_ex(priv_key, order, 0, ctx))
+ goto err;
+--- openssl-3.6.5.orig/test/ectest.c
++++ openssl-3.6.5/test/ectest.c
+@@ -2361,6 +2361,38 @@
+ return ret;
+ }
+
++static int keygen_invalid_order_test(void)
++{
++ int ret = 0;
++ EC_GROUP *group = NULL;
++ EC_POINT *generator = NULL;
++ EC_KEY *key = NULL;
++ BIGNUM *order = NULL;
++
++ if (!TEST_ptr(group = EC_GROUP_new_by_curve_name(NID_X9_62_prime256v1))
++ || !TEST_ptr(generator = EC_POINT_dup(
++ EC_GROUP_get0_generator(group), group))
++ || !TEST_ptr(order = BN_new())
++ || !TEST_true(BN_one(order))
++ || !TEST_true(EC_GROUP_set_generator(group, generator, order,
++ BN_value_one()))
++ || !TEST_ptr(key = EC_KEY_new())
++ || !TEST_true(EC_KEY_set_group(key, group))
++ || !TEST_false(EC_KEY_generate_key(key))
++ || !TEST_int_eq(ERR_GET_REASON(ERR_peek_last_error()),
++ EC_R_INVALID_GROUP_ORDER))
++ goto err;
++
++ ret = 1;
++err:
++ ERR_clear_error();
++ BN_free(order);
++ EC_KEY_free(key);
++ EC_POINT_free(generator);
++ EC_GROUP_free(group);
++ return ret;
++}
++
+ /*
+ * Helper for ec_point_hex2point_test
+ *
+@@ -3139,6 +3171,7 @@
+ ADD_ALL_TESTS(check_named_curve_test, (int)crv_len);
+ ADD_ALL_TESTS(check_named_curve_lookup_test, (int)crv_len);
+ ADD_ALL_TESTS(check_ec_key_field_public_range_test, (int)crv_len);
++ ADD_TEST(keygen_invalid_order_test);
+ ADD_ALL_TESTS(check_named_curve_from_ecparameters, (int)crv_len);
+ ADD_ALL_TESTS(ec_point_hex2point_test, (int)crv_len);
+ ADD_ALL_TESTS(custom_generator_test, (int)crv_len);
diff --git a/openssl-CVE-2026-88822.patch b/openssl-CVE-2026-88822.patch
new file mode 100644
index 0000000..c02114f
--- /dev/null
+++ b/openssl-CVE-2026-88822.patch
@@ -0,0 +1,16 @@
+Upstream 6cfe188ea9 "crypto/bio/bss_dgram.c: initialise variable in BIO_CTRL_DGRAM_DETECT_PEER_ADDR"
+(CVE-2026-88822), https://github.com/openssl/openssl/commit/6cfe188ea9
+
+--- openssl-3.6.5.orig/crypto/bio/bss_dgram.c
++++ openssl-3.6.5/crypto/bio/bss_dgram.c
+@@ -760,8 +760,8 @@
+ BIO_ADDR_make(&data->peer, BIO_ADDR_sockaddr((BIO_ADDR *)ptr));
+ break;
+ case BIO_CTRL_DGRAM_DETECT_PEER_ADDR: {
+- BIO_ADDR xaddr, *p = &data->peer;
+- socklen_t xaddr_len = sizeof(xaddr.sa);
++ BIO_ADDR xaddr = { 0 }, *p = &data->peer;
++ socklen_t xaddr_len = sizeof(xaddr);
+
+ if (BIO_ADDR_family(p) == AF_UNSPEC) {
+ if (getpeername(b->num, (void *)&xaddr.sa, &xaddr_len) == 0
diff --git a/openssl-CVE-2026-88823.patch b/openssl-CVE-2026-88823.patch
new file mode 100644
index 0000000..d06b9ac
--- /dev/null
+++ b/openssl-CVE-2026-88823.patch
@@ -0,0 +1,39 @@
+Upstream ce58c02c5b "AES-GCM-SIV: no-op on zero-length update and clear stale AAD on reuse"
+(CVE-2026-88823), https://github.com/openssl/openssl/commit/ce58c02c5b
+
+--- openssl-3.6.5.orig/providers/implementations/ciphers/cipher_aes_gcm_siv.c
++++ openssl-3.6.5/providers/implementations/ciphers/cipher_aes_gcm_siv.c
+@@ -99,6 +99,16 @@
+
+ ctx->enc = enc;
+
++ /*
++ * Clear AAD when starting a new message or restarting after payload
++ * processing. Preserve pending AAD during parameter adjustments.
++ */
++ if (key != NULL || iv != NULL || ctx->used_enc || ctx->used_dec) {
++ OPENSSL_clear_free(ctx->aad, ctx->aad_len);
++ ctx->aad = NULL;
++ ctx->aad_len = 0;
++ }
++
+ if (key != NULL) {
+ if (keylen != ctx->key_len) {
+ ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_KEY_LENGTH);
+--- openssl-3.6.5.orig/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c
++++ openssl-3.6.5/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c
+@@ -114,13 +114,8 @@
+ uint8_t *ptr;
+ uint64_t len64;
+
+- /* length of 0 resets the AAD */
+- if (len == 0) {
+- OPENSSL_free(ctx->aad);
+- ctx->aad = NULL;
+- ctx->aad_len = 0;
++ if (len == 0)
+ return 1;
+- }
+ to_alloc = UP16(ctx->aad_len + len);
+ /* need to check the size of the AAD per RFC8452 */
+ len64 = to_alloc;
diff --git a/openssl-CVE-2026-95691.patch b/openssl-CVE-2026-95691.patch
new file mode 100644
index 0000000..77bf35f
--- /dev/null
+++ b/openssl-CVE-2026-95691.patch
@@ -0,0 +1,153 @@
+Upstream 54e2836100 "QUIC: covering CRYPTO frame retransmission may induce use-after-free in record layer"
+(CVE-2026-95691), https://github.com/openssl/openssl/commit/54e2836100
+
+--- openssl-3.6.5.orig/include/internal/quic_strm_reas.h
++++ openssl-3.6.5/include/internal/quic_strm_reas.h
+@@ -28,6 +28,9 @@
+ size_t stream_chunks;
+ /* Offset of data not yet dropped */
+ uint64_t offset;
++ /* Range returned to a zero-copy caller and not released yet. */
++ UINT_RANGE locked_range;
++ unsigned int range_locked;
+ /* Cleanse data on release? */
+ int cleanse;
+ int move_buffers;
+@@ -74,6 +77,30 @@
+ UINT_RANGE *range, const unsigned char **data,
+ int *fin);
+
++/**
++ * ossl_sframe_set_lock_range() locks the first range of stream chunks
++ * so zero-copy caller can access them safely. While range is locked
++ * its chunks are protected from memory relocations which may occur
++ * during stream reassembly process. The stream reassembly process
++ * continues to work making sure following stream chunks are always
++ * appended.
++ * @param fs stream frame set that holds ranges.
++ * @param range range caller wants to lock, the range must be reachable
++ * for read operation.
++ * @returns 1 on success, 0 on failure (when range cannot be locked, because
++ * its end offset is past the gap, or range is locked)
++ */
++int ossl_sframe_set_lock_range(SFRAME_SET *fs, const UINT_RANGE *range);
++
++/**
++ * ossl_sframe_set_unlock_range() unlocks the stream chunks in the
++ * first range previously locked by ossl_sframe_set_lock_range().
++ * Stream reassembly is free to reallocate those chunks again.
++ * @param fs point to stream frame set with range collection
++ * @returns void
++ */
++void ossl_sframe_set_unlock_range(SFRAME_SET *fs);
++
+ /*
+ * moves reading offset to new position, discarding all consumed
+ * chunks (which end offset is less than offset).
+--- openssl-3.6.5.orig/ssl/quic/quic_rstream.c
++++ openssl-3.6.5/ssl/quic/quic_rstream.c
+@@ -134,6 +134,9 @@
+ {
+ OSSL_TIME rtt = get_rtt(qrs);
+
++ if (qrs->fs.range_locked)
++ return 0;
++
+ if (!read_internal(qrs, buf, size, readbytes, fin, 1))
+ return 0;
+
+@@ -173,6 +176,9 @@
+ size_t rec_len_;
+ int ok;
+
++ if (qrs->fs.range_locked)
++ return 0;
++
+ ok = ossl_sframe_set_peek(&qrs->fs, &iterator, &qrs->head_range, &record_,
+ fin);
+ if (ok == 0) {
+@@ -192,6 +198,8 @@
+ }
+
+ rec_len_ = (size_t)(qrs->head_range.end - qrs->head_range.start);
++ if (!ossl_sframe_set_lock_range(&qrs->fs, &qrs->head_range))
++ return 0;
+ *rec_len = rec_len_;
+ *record = record_;
+
+@@ -210,6 +218,10 @@
+ offset = qrs->head_range.start + read_len;
+ }
+
++ if (!qrs->fs.range_locked)
++ return 0;
++
++ ossl_sframe_set_unlock_range(&qrs->fs);
+ if (!ossl_sframe_set_move_offset(&qrs->fs, offset))
+ return 0;
+
+--- openssl-3.6.5.orig/ssl/quic/quic_strm_reas.c
++++ openssl-3.6.5/ssl/quic/quic_strm_reas.c
+@@ -939,6 +939,27 @@
+ r->start = fs->offset;
+ }
+
++ if (fs->range_locked
++ && r->start < fs->locked_range.end
++ && r->end > fs->locked_range.start) {
++ uint64_t overlap_end;
++ size_t overlap_len;
++
++ /* The checked-out range is the first readable chunk. */
++ assert(fs->locked_range.start == fs->offset);
++ assert(r->start >= fs->locked_range.start);
++
++ overlap_end = r->end < fs->locked_range.end
++ ? r->end
++ : fs->locked_range.end;
++ overlap_len = UINT64_TO_SIZE_T(overlap_end - r->start);
++
++ if (fs->cleanse)
++ OPENSSL_cleanse(deconst(data), overlap_len);
++ data += overlap_len;
++ r->start = overlap_end;
++ }
++
+ key_sr.sr_range = *r;
+
+ /*
+@@ -1227,6 +1248,24 @@
+ return (range->start == range->end) ? 0 : 1;
+ }
+
++int ossl_sframe_set_lock_range(SFRAME_SET *fs, const UINT_RANGE *range)
++{
++ if (fs->range_locked
++ || range->start != fs->offset
++ || range->start >= range->end)
++ return 0;
++
++ fs->locked_range = *range;
++ fs->range_locked = 1;
++ return 1;
++}
++
++void ossl_sframe_set_unlock_range(SFRAME_SET *fs)
++{
++ assert(fs->range_locked);
++ fs->range_locked = 0;
++}
++
+ void ossl_sframe_set_destroy_ranges(SFRAME_SET *fs)
+ {
+ struct stream_range_t *sr, *save_sr;
+@@ -1252,6 +1291,9 @@
+ if (new_offset == fs->offset)
+ return 1;
+
++ if (fs->range_locked)
++ return 0;
++
+ /*
+ * Offset can move forward within the continuous head range only.
+ * It can not move backward, into a gap or past the head range end.
diff --git a/openssl-CVE-2026-95692.patch b/openssl-CVE-2026-95692.patch
new file mode 100644
index 0000000..25d071d
--- /dev/null
+++ b/openssl-CVE-2026-95692.patch
@@ -0,0 +1,39 @@
+Backport of upstream b8997895c2 "Reject unsupported IV lengths for AES-GCM-SIV"
+(CVE-2026-95692) to 3.6, which has no generated param decoder for this cipher.
+
+AES-GCM-SIV only supports a 12 byte nonce, but the IV length was not
+among its settable parameters, so EVP_CTRL_AEAD_SET_IVLEN reported
+success and init then over-read a shorter IV or truncated a longer one.
+
+--- openssl-3.6.5.orig/providers/implementations/ciphers/cipher_aes_gcm_siv.c
++++ openssl-3.6.5/providers/implementations/ciphers/cipher_aes_gcm_siv.c
+@@ -255,6 +255,21 @@
+ return 0;
+ }
+ }
++
++ p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_AEAD_IVLEN);
++ if (p != NULL) {
++ size_t iv_len;
++
++ if (!OSSL_PARAM_get_size_t(p, &iv_len)) {
++ ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_GET_PARAMETER);
++ return 0;
++ }
++ /* The nonce length can not be modified */
++ if (iv_len != sizeof(ctx->nonce)) {
++ ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_IV_LENGTH);
++ return 0;
++ }
++ }
+ return 1;
+ }
+
+@@ -262,6 +277,7 @@
+ OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_KEYLEN, NULL),
+ OSSL_PARAM_uint(OSSL_CIPHER_PARAM_SPEED, NULL),
+ OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG, NULL, 0),
++ OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_AEAD_IVLEN, NULL),
+ OSSL_PARAM_END
+ };
+ static const OSSL_PARAM *ossl_aes_gcm_siv_settable_ctx_params(ossl_unused void *cctx,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openssl.git/commitdiff/afe0ca5bfbfd62ff3d3a4bfeee2b3fea552fa468
More information about the pld-cvs-commit
mailing list