[packages/openssl] Up to 4.1.0

arekm arekm at pld-linux.org
Sun Nov 15 21:19:00 CET 2026


commit f0ac81775b9e479c085e504e31132399142288d3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Nov 15 21:18:30 2026 +0100

    Up to 4.1.0
    
    Fixes CVE-2026-107496, CVE-2026-95692, CVE-2026-95691, CVE-2026-88823,
    CVE-2026-88822, CVE-2026-84784, CVE-2026-84783, CVE-2026-84782,
    CVE-2026-77696, CVE-2026-75806, CVE-2026-75805, CVE-2026-75804,
    CVE-2026-72897, CVE-2026-54875, CVE-2026-54873, CVE-2026-54872,
    CVE-2026-42772, CVE-2026-35191, CVE-2026-35189.

 openssl-CVE-2026-107496.patch |  70 +++++++++++++++++++
 openssl-CVE-2026-88822.patch  |  18 +++++
 openssl-CVE-2026-88823.patch  |  43 ++++++++++++
 openssl-CVE-2026-95691.patch  | 159 ++++++++++++++++++++++++++++++++++++++++++
 openssl-CVE-2026-95692.patch  |  38 ++++++++++
 openssl.spec                  |  16 ++++-
 6 files changed, 341 insertions(+), 3 deletions(-)
---
diff --git a/openssl.spec b/openssl.spec
index 4d702aa..8cd6963 100644
--- a/openssl.spec
+++ b/openssl.spec
@@ -12,13 +12,13 @@ Summary(pt_BR.UTF-8):	Uma biblioteca C que fornece vários algoritmos e protocol
 Summary(ru.UTF-8):	Библиотеки и утилиты для соединений через Secure Sockets Layer
 Summary(uk.UTF-8):	Бібліотеки та утиліти для з'єднань через Secure Sockets Layer
 Name:		openssl
-Version:	4.0.2
+Version:	4.1.0
 # so name change, so 0.1 for now
-Release:	0.2
+Release:	0.1
 License:	Apache v2.0
 Group:		Libraries
 Source0:	https://github.com/openssl/openssl/releases/download/openssl-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	9d256ddfa581e1982c005ab03890754d
+# Source0-md5:	3dd690cc5ed65605cf4d125c1176439c
 Source2:	%{name}.1.pl
 Source3:	%{name}-ssl-certificate.sh
 Source4:	%{name}-c_rehash.sh
@@ -26,6 +26,11 @@ Patch0:		%{name}-optflags.patch
 Patch1:		%{name}-ca-certificates.patch
 Patch2:		modules-dir.patch
 Patch3:		x32-sha-avx-ssse3-detect.patch
+Patch4:		%{name}-CVE-2026-88823.patch
+Patch5:		%{name}-CVE-2026-88822.patch
+Patch6:		%{name}-CVE-2026-107496.patch
+Patch7:		%{name}-CVE-2026-95692.patch
+Patch8:		%{name}-CVE-2026-95691.patch
 URL:		https://www.openssl.org/
 %ifarch %{arm} ppc mips sparc sparcv9
 BuildRequires:	libatomic-devel
@@ -210,6 +215,11 @@ RC4, RSA и SSL. Включает статические библиотеки д
 %patch -P1 -p1
 %patch -P2 -p1
 %patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
+%patch -P6 -p1
+%patch -P7 -p1
+%patch -P8 -p1
 
 # fails with enable-sctp as of 1.1.1
 %{__rm} test/recipes/80-test_ssl_new.t
diff --git a/openssl-CVE-2026-107496.patch b/openssl-CVE-2026-107496.patch
new file mode 100644
index 0000000..dc2a08c
--- /dev/null
+++ b/openssl-CVE-2026-107496.patch
@@ -0,0 +1,70 @@
+Upstream 36e15b618d "crypto/ec/ec_key.c: Reject invalid group order during key generation"
+(CVE-2026-107496), https://github.com/openssl/openssl/commit/36e15b618d
+
+diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c
+index d8640a4bca1db..6e53f245a838a 100644
+--- a/crypto/ec/ec_key.c
++++ b/crypto/ec/ec_key.c
+@@ -276,6 +276,11 @@ static int ec_generate_key(EC_KEY *eckey, int pairwise_test)
+             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;
+diff --git a/test/ectest.c b/test/ectest.c
+index beafd5009970b..8a138602ca844 100644
+--- a/test/ectest.c
++++ b/test/ectest.c
+@@ -2379,6 +2379,38 @@ static int check_ec_key_field_public_range_test(int id)
+     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
+  *
+@@ -3203,6 +3235,7 @@ int setup_tests(void)
+     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..ae9dd19
--- /dev/null
+++ b/openssl-CVE-2026-88822.patch
@@ -0,0 +1,18 @@
+Upstream 7b4f5344aa "crypto/bio/bss_dgram.c: initialise variable in BIO_CTRL_DGRAM_DETECT_PEER_ADDR"
+(CVE-2026-88822), https://github.com/openssl/openssl/commit/7b4f5344aa
+
+diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c
+index 0ef973c195d43..94fa9eb82042f 100644
+--- a/crypto/bio/bss_dgram.c
++++ b/crypto/bio/bss_dgram.c
+@@ -745,8 +745,8 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
+         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..9318fb1
--- /dev/null
+++ b/openssl-CVE-2026-88823.patch
@@ -0,0 +1,43 @@
+Upstream 6747b1a278 "AES-GCM-SIV: no-op on zero-length update and clear stale AAD on reuse"
+(CVE-2026-88823), https://github.com/openssl/openssl/commit/6747b1a278
+
+diff --git a/providers/implementations/ciphers/cipher_aes_gcm_siv.c b/providers/implementations/ciphers/cipher_aes_gcm_siv.c
+index ea343eb810c3d..2d7a5fd560dc4 100644
+--- a/providers/implementations/ciphers/cipher_aes_gcm_siv.c
++++ b/providers/implementations/ciphers/cipher_aes_gcm_siv.c
+@@ -100,6 +100,16 @@ static int ossl_aes_gcm_siv_init(void *vctx, const unsigned char *key, size_t ke
+ 
+     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);
+diff --git a/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c b/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c
+index d387973894d54..d38c508bb941b 100644
+--- a/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c
++++ b/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c
+@@ -115,13 +115,8 @@ static int aes_gcm_siv_aad(PROV_AES_GCM_SIV_CTX *ctx,
+     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..9a820ea
--- /dev/null
+++ b/openssl-CVE-2026-95691.patch
@@ -0,0 +1,159 @@
+Upstream dd90ceb99a "QUIC: covering CRYPTO frame retransmission may induce use-after-free in record layer"
+(CVE-2026-95691), https://github.com/openssl/openssl/commit/dd90ceb99a
+
+diff --git a/include/internal/quic_strm_reas.h b/include/internal/quic_strm_reas.h
+index a2d958a7adc6d..c55a77600415a 100644
+--- a/include/internal/quic_strm_reas.h
++++ b/include/internal/quic_strm_reas.h
+@@ -28,6 +28,9 @@ typedef struct sframe_set_t {
+     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 @@ int ossl_sframe_set_peek(SFRAME_SET *fs, void **iter,
+     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).
+diff --git a/ssl/quic/quic_rstream.c b/ssl/quic/quic_rstream.c
+index 2606f983b1bc8..6ca260bac3be6 100644
+--- a/ssl/quic/quic_rstream.c
++++ b/ssl/quic/quic_rstream.c
+@@ -134,6 +134,9 @@ int ossl_quic_rstream_read(QUIC_RSTREAM *qrs, unsigned char *buf, size_t size,
+ {
+     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 @@ int ossl_quic_rstream_get_record(QUIC_RSTREAM *qrs,
+     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 @@ int ossl_quic_rstream_get_record(QUIC_RSTREAM *qrs,
+     }
+ 
+     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 @@ int ossl_quic_rstream_release_record(QUIC_RSTREAM *qrs, size_t read_len)
+         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;
+ 
+diff --git a/ssl/quic/quic_strm_reas.c b/ssl/quic/quic_strm_reas.c
+index 8c404df231c28..2aa0232f21465 100644
+--- a/ssl/quic/quic_strm_reas.c
++++ b/ssl/quic/quic_strm_reas.c
+@@ -937,6 +937,27 @@ int ossl_sframe_set_insert(SFRAME_SET *fs, UINT_RANGE *r, OSSL_QRX_PKT *pkt,
+         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;
+ 
+     /*
+@@ -1225,6 +1246,24 @@ int ossl_sframe_set_peek(SFRAME_SET *fs, void **iterator,
+     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;
+@@ -1250,6 +1289,9 @@ int ossl_sframe_set_move_offset(SFRAME_SET *fs, uint64_t new_offset)
+     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..c7912ec
--- /dev/null
+++ b/openssl-CVE-2026-95692.patch
@@ -0,0 +1,38 @@
+Upstream 70a47ac78b "Reject unsupported IV lengths for AES-GCM-SIV"
+(CVE-2026-95692), https://github.com/openssl/openssl/commit/70a47ac78b
+
+diff --git a/providers/implementations/ciphers/cipher_aes_gcm_siv.c b/providers/implementations/ciphers/cipher_aes_gcm_siv.c
+index 2d7a5fd560dc4..70b56cf4350f9 100644
+--- a/providers/implementations/ciphers/cipher_aes_gcm_siv.c
++++ b/providers/implementations/ciphers/cipher_aes_gcm_siv.c
+@@ -267,6 +267,20 @@ static int ossl_aes_gcm_siv_set_ctx_params(void *vctx, const OSSL_PARAM params[]
+             return 0;
+         }
+     }
++
++    if (p.ivlen != NULL) {
++        size_t iv_len;
++
++        if (!OSSL_PARAM_get_size_t(p.ivlen, &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;
+ }
+ 
+diff --git a/providers/implementations/ciphers/cipher_aes_gcm_siv.inc.in b/providers/implementations/ciphers/cipher_aes_gcm_siv.inc.in
+index 891d3b976d016..b1edc27eb054d 100644
+--- a/providers/implementations/ciphers/cipher_aes_gcm_siv.inc.in
++++ b/providers/implementations/ciphers/cipher_aes_gcm_siv.inc.in
+@@ -21,4 +21,5 @@ use OpenSSL::paramnames qw(produce_param_decoder);
+                          (['OSSL_CIPHER_PARAM_KEYLEN',      'keylen', 'size_t'],
+                           ['OSSL_CIPHER_PARAM_SPEED',       'speed',  'uint'],
+                           ['OSSL_CIPHER_PARAM_AEAD_TAG',    'tag',    'octet_string'],
++                          ['OSSL_CIPHER_PARAM_AEAD_IVLEN',  'ivlen',  'size_t'],
+                          )); -}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssl.git/commitdiff/f0ac81775b9e479c085e504e31132399142288d3



More information about the pld-cvs-commit mailing list