openssl: upgrade 3.0.17 -> 3.0.18
A message that is not in the archive (sent off-list or not yet received): [email protected]
I guess I have sent this prematurely, I have a failing ptests with this one. I have a bit problem with infrastructure so not sure if this is my infra or real failure...
Peter
Quoted 254 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Peter Marko via lists.openembedded.org
Sent: Monday, October 6, 2025 11:49
To: [email protected]
Cc: Marko, Peter (FT D EU SK BFS1) <[email protected]>
Subject: [OE-core][kirkstone][PATCH] openssl: upgrade 3.0.17 -> 3.0.18From: Peter Marko <[email protected]>
Release information:
https://github.com/openssl/openssl/blob/openssl-3.0/NEWS.md#major-changes-
between-openssl-3017-and-openssl-3018-30-sep-2025OpenSSL 3.0.18 is a security patch release. The most severe CVE fixed in this release is Moderate.
This release incorporates the following bug fixes and mitigations:
* Fix Out-of-bounds read & write in RFC 3211 KEK Unwrap. (CVE-2025-9230)
* Fix Out-of-bounds read in HTTP clientno_proxyhandling. (CVE-2025-9232)Signed-off-by Peter Marko <[email protected]>--- .../0001-Configure-do-not-tweak-mips-cflags.patch | 2 +- ...-strip-sysroot-and-debug-prefix-map-from-co.patch | 2 +- .../openssl/openssl/CVE-2023-50781-2.patch | 12 ++++++------ .../openssl/openssl/CVE-2023-50781-4.patch | 2 +- .../openssl/openssl/CVE-2023-50781-6.patch | 2 +- .../openssl/openssl/CVE-2024-41996.patch | 4 ++-- .../recipes-connectivity/openssl/openssl/afalg.patch | 2 +- .../openssl/{openssl_3.0.17.bb => openssl_3.0.18.bb} | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) rename meta/recipes-connectivity/openssl/{openssl_3.0.17.bb =>openssl_3.0.18.bb} (99%)
(quoted diff) +0
-0tweak-mips-cflags.patch b/meta/recipes-connectivity/openssl/openssl/0001- Configure-do-not-tweak-mips-cflags.patch
indexaf435472a5..c2470c2e29100644
--- a/meta/recipes-connectivity/openssl/openssl/0001-Configure-do-not-tweak-mips- cflags.patch
+++ b/meta/recipes-connectivity/openssl/openssl/0001-Configure-do-not-tweak- mips-cflags.patch(quoted diff) +0
-0@@ -17,7 +17,7 @@ Index: openssl-3.0.4/Configure=============================================================
======
--- openssl-3.0.4.orig/Configure
+++ openssl-3.0.4/Configure
-@@ -1423,16 +1423,6 @@ if ($target =~ /^mingw/ &&$config{CC} +@@ -1423,16 +1423,6 @@ if ($target =~ /^mingw/ &&$config{CC} --target-help 2>&1` =~ m/-mno-cygwin/m)push @{$config{shared_ldflag}}, "-mno-cygwin"; }(quoted diff) +0
-0and-debug-prefix-map-from-co.patch b/meta/recipes- connectivity/openssl/openssl/0001-buildinfo-strip-sysroot-and-debug-prefix-map- from-co.patch
indexbafdbaa46f..40e9bb9d30100644
--- a/meta/recipes-connectivity/openssl/openssl/0001-buildinfo-strip-sysroot-and- debug-prefix-map-from-co.patch
+++ b/meta/recipes-connectivity/openssl/openssl/0001-buildinfo-strip-sysroot-and- debug-prefix-map-from-co.patch(quoted diff) +0
-0@@ -38,7 +38,7 @@ Index: openssl-3.0.4/Configurations/unix-Makefile.tmpl=============================================================
======
--- openssl-3.0.4.orig/Configurations/unix-Makefile.tmpl
+++ openssl-3.0.4/Configurations/unix-Makefile.tmpl
-@@ -472,13 +472,23 @@ BIN_LDFLAGS={- join(' ', $target{bin_lfl +@@ -483,13 +483,23 @@ BIN_LDFLAGS={- join(' ', $target{bin_lflags} || (),'$(CNF_LDFLAGS)', '$(LDFLAGS)') -}BIN_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)
meta/recipes-connectivity/openssl/openssl/CVE-2023-50781-2.patch +1
-1@@ -288,7 +288,7 @@ index c8921acd6e..11a91e62b1 100644 switch (RSA_test_flags(prsactx->rsa, RSA_FLAG_TYPE_MASK)) { case RSA_FLAG_TYPE_RSA: -@@ -199,6 +202,7 @@ static int rsa_decrypt(void *vprsactx, unsigned char *out, size_t *outlen, +@@ -204,6 +207,7 @@ static int rsa_decrypt(void *vprsactx, unsigned char *out, size_t *outlen, {PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; int ret;meta/recipes-connectivity/openssl/openssl/CVE-2023-50781-2.patch +1
-1@@ -296,7 +296,7 @@ index c8921acd6e..11a91e62b1 100644 size_t len = RSA_size(prsactx->rsa); if (!ossl_prov_is_running()) -@@ -276,8 +280,12 @@ static int rsa_decrypt(void *vprsactx, unsigned char *out, size_t *outlen, +@@ -281,8 +285,12 @@ static int rsa_decrypt(void *vprsactx, unsigned char *out, size_t *outlen, }OPENSSL_free(tbuf); } else {meta/recipes-connectivity/openssl/openssl/CVE-2023-50781-2.patch +1
-1@@ -311,7 +311,7 @@ index c8921acd6e..11a91e62b1 100644 } *outlen = constant_time_select_s(constant_time_msb_s(ret), *outlen, ret); ret = constant_time_select_int(constant_time_msb(ret), 0, 1); -@@ -401,6 +409,10 @@ static int rsa_get_ctx_params(void *vprsactx, OSSL_PARAM *params) +@@ -406,6 +414,10 @@ static int rsa_get_ctx_params(void *vprsactx, OSSL_PARAM *params) if (p != NULL && !OSSL_PARAM_set_uint(p, prsactx->alt_version))return 0;meta/recipes-connectivity/openssl/openssl/CVE-2023-50781-2.patch +1
-1@@ -322,7 +322,7 @@ index c8921acd6e..11a91e62b1 100644 return 1; } -@@ -412,6 +424,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = { +@@ -417,6 +429,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = { NULL, 0),OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION,
NULL),
OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_NEGOTIATED_VERSIO N, NULL),meta/recipes-connectivity/openssl/openssl/CVE-2023-50781-2.patch +1
-1@@ -330,7 +330,7 @@ index c8921acd6e..11a91e62b1 100644 OSSL_PARAM_END }; -@@ -549,6 +562,14 @@ static int rsa_set_ctx_params(void *vprsactx, const OSSL_PARAM params[]) +@@ -554,6 +567,14 @@ static int rsa_set_ctx_params(void *vprsactx, const OSSL_PARAM params[]) return 0;prsactx->alt_version = alt_version; }meta/recipes-connectivity/openssl/openssl/CVE-2023-50781-2.patch +1
-1@@ -345,7 +345,7 @@ index c8921acd6e..11a91e62b1 100644 return 1; } -@@ -562,6 +583,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = { +@@ -567,6 +588,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = { OSSL_PARAM_octet_string(OSSL_ASYM_CIPHER_PARAM_OAEP_LABEL,NULL, 0),
OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION,
NULL),
OSSL_PARAM_uint(OSSL_ASYM_CIPHER_PARAM_TLS_NEGOTIATED_VERSIO N, NULL),meta/recipes-connectivity/openssl/openssl/CVE-2023-50781-4.patch +0
-0@@ -21,7 +21,7 @@ diff --git a/test/recipes/30-
test_evp_data/evppkey_rsa_common.txtb/test/recipes
index 080c4d02af..1405465098 100644
---a/test/recipes/30-test_evp_data/evppkey_rsa_common.txt+++b/test/recipes/30-test_evp_data/evppkey_rsa_common.txt
-@@ -277,6 +277,414 @@ Derive = RSA-2048
+@@ -278,6 +278,414 @@ Derive = RSA-2048
Result =KEYOP_INIT_ERROR
Reason = operation not supported for this keytypemeta/recipes-connectivity/openssl/openssl/CVE-2023-50781-6.patch +1
-1@@ -35,7 +35,7 @@ index 0ad654fc60..a3d01eec45 100644 # The old FIPS provider doesn't include the workaround (#13817) FIPSversion = >3.0.0 # Corrupted ciphertext -@@ -261,6 +269,16 @@ Decrypt = RSA-2048 +@@ -260,6 +268,16 @@ Decrypt = RSA-2048 Input =550AF55A2904E7B9762352F8FB7FA235A9CB053AACB2D5FCB8CA48453CB2EE3 619746C701ABF2D4CC67003471A187900B05AA812BD25ED05C675DFC8C97A24 A7BF49BD6214992CAD766D05A9A2B57B74F26A737E0237B8B76C45F1F226A836 D7CFBC75BA999BDBE48DBC09227AA46C88F21DCCBA7840141AD5A5D71FD12 2E6BD6AC3E564780DFE623FC1CA9B995A6037BF0BBD43B205A84AC5444F3420 2C05CE9113087176432476576DE6FFFF9A52EA57C08BE3EC2F49676CB8E12F76 2AC71FA3C321E00AC988910C85FF52F93825666CE0D40FFAA0592078919D4493F 46D95CCF76364C6D57760DD0B64805F9AFC76A2365A5575CA301D5103F0EA76C B9A79
Output =
4cbb988d6a46228379132b0b5f8c249b3860043848c93632fb982c807c7c82fffc7a9ef 83f4908f890373ac181ffea6381e103bcaa27e65638b6ecebef38b59ed4226a9d12af675cfcb634d8c40e7a7affmeta/recipes-connectivity/openssl/openssl/CVE-2024-41996.patch +1
-1@@ -32,7 +32,7 @@ index 795a3f2..3e7a811 100644 @@ -387,9 +387,11 @@ static int dh_validate_public(const DH *dh, int checktype) if (pub_key == NULL) return 0; - + - /* The partial test is only valid for named group's with q = (p - 1) / 2 */ - if (checktype == OSSL_KEYMGMT_VALIDATE_QUICK_CHECK- &&
ossl_dh_is_named_safe_prime_group(dh))meta/recipes-connectivity/openssl/openssl/CVE-2024-41996.patch +1
-1@@ -42,7 +42,7 @@ index 795a3f2..3e7a811 100644 + */ + if (ossl_dh_is_named_safe_prime_group(dh)) return ossl_dh_check_pub_key_partial(dh, pub_key, &res); - + return DH_check_pub_key_ex(dh, pub_key); -- 2.40.0meta/recipes- renamed from meta/recipes-connectivity/openssl/openssl/afalg.patch +0
-0
connectivity/openssl/openssl/afalg.patch
indexcf77e873a2..8a8bf80a5f100644meta/recipes-connectivity/openssl/openssl/afalg.patch +0
-0@@ -7,7 +7,7 @@ Index: openssl-3.0.4/Configure=============================================================
======
--- openssl-3.0.4.orig/Configure
+++ openssl-3.0.4/Configure
-@@ -1681,20 +1681,7 @@ $config{CFLAGS} = [ map { $_ eq '--ossl- +@@ -1679,20 +1679,7 @@ $config{CFLAGS} = [ map { $_ eq '--ossl-strict- warnings'unless ($disabled{afalgeng}) { $config{afalgeng}=""; if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {meta/recipes- renamed from meta/recipes-connectivity/openssl/openssl_3.0.17.bb +0
-0connectivity/openssl/openssl_3.0.18.bb
similarity index 99%
rename from meta/recipes-connectivity/openssl/openssl_3.0.17.bb rename to meta/recipes-connectivity/openssl/openssl_3.0.18.bb indexa50bd2edbf..a8dd338327100644meta/recipes-connectivity/openssl/openssl_3.0.18.bb renamed from meta/recipes-connectivity/openssl/openssl_3.0.17.bb +0
-1@@ -25,7 +25,7 @@ SRC_URI:append:class-nativesdk = " \ file://environment.d-openssl.sh \ " -SRC_URI[sha256sum] ="
dfdd77e4ea1b57ff3a6dbde6b0bdc3f31db5ac99e7fdd4eaf9e1fbb6ec2db8ce" +SRC_URI[sha256sum] = "d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b"inherit
lib_packagemultilib_headermultilib_scriptptest perlnativeMULTILIB_SCRIPTS= "${PN}-bin:${bindir}/c_rehash"