mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-06-11 04:37:26 -04:00
openssl: update to version 3.0.19
OpenSSL 3.0.19 is a security patch release. The most severe CVE fixed in this release is High. This release incorporates the following bug fixes and mitigations: * Fixed Stack buffer overflow in CMS AuthEnvelopedData parsing. (CVE-2025-15467) * Fixed Heap out-of-bounds write in BIO_f_linebuffer on short writes. (CVE-2025-68160) * Fixed Unauthenticated/unencrypted trailing bytes with low-level OCB function calls. (CVE-2025-69418) * Fixed Out of bounds write in PKCS12_get_friendlyname() UTF-8 conversion. (CVE-2025-69419) * Fixed Missing ASN1_TYPE validation in TS_RESP_verify_response() function. (CVE-2025-69420) * Fixed NULL Pointer Dereference in PKCS12_item_decrypt_d2i_ex() function. (CVE-2025-69421) * Fixed Missing ASN1_TYPE validation in PKCS#12 parsing. (CVE-2026-22795) * Fixed ASN1_TYPE Type Confusion in the PKCS7_digest_from_attributes() function. (CVE-2026-22796) Signed-off-by: Martin Schiller <ms@dev.tdt.de> Link: https://github.com/openwrt/openwrt/pull/21832 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
committed by
Hauke Mehrtens
parent
be13eed2ed
commit
00b6462cb0
@@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=openssl
|
PKG_NAME:=openssl
|
||||||
PKG_VERSION:=3.0.18
|
PKG_VERSION:=3.0.19
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_BUILD_FLAGS:=no-mips16 gc-sections no-lto
|
PKG_BUILD_FLAGS:=no-mips16 gc-sections no-lto
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ PKG_SOURCE_URL:= \
|
|||||||
https://www.openssl.org/source/old/$(PKG_BASE)/ \
|
https://www.openssl.org/source/old/$(PKG_BASE)/ \
|
||||||
https://github.com/openssl/openssl/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
|
https://github.com/openssl/openssl/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
|
||||||
|
|
||||||
PKG_HASH:=d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b
|
PKG_HASH:=fa5a4143b8aae18be53ef2f3caf29a2e0747430b8bc74d32d88335b94ab63072
|
||||||
|
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE.txt
|
PKG_LICENSE_FILES:=LICENSE.txt
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|||||||
|
|
||||||
--- a/ssl/ssl_ciph.c
|
--- a/ssl/ssl_ciph.c
|
||||||
+++ b/ssl/ssl_ciph.c
|
+++ b/ssl/ssl_ciph.c
|
||||||
@@ -1506,11 +1506,29 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_
|
@@ -1490,11 +1490,29 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_
|
||||||
ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head,
|
ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head,
|
||||||
&tail);
|
&tail);
|
||||||
|
|
||||||
+ /*
|
+ /*
|
||||||
+ * If OPENSSL_PREFER_CHACHA_OVER_GCM is defined, ChaCha20_Poly1305
|
+ * If OPENSSL_PREFER_CHACHA_OVER_GCM is defined, ChaCha20_Poly1305
|
||||||
@@ -33,20 +33,20 @@ Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|||||||
+
|
+
|
||||||
+#ifdef OPENSSL_PREFER_CHACHA_OVER_GCM
|
+#ifdef OPENSSL_PREFER_CHACHA_OVER_GCM
|
||||||
+ ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
|
+ ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
|
||||||
+ &head, &tail);
|
+ &head, &tail);
|
||||||
+ ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
|
+ ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
|
||||||
+ &head, &tail);
|
+ &head, &tail);
|
||||||
+#else
|
+#else
|
||||||
/* Within each strength group, we prefer GCM over CHACHA... */
|
/* Within each strength group, we prefer GCM over CHACHA... */
|
||||||
ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
|
ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
|
||||||
&head, &tail);
|
&head, &tail);
|
||||||
ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
|
ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
|
||||||
&head, &tail);
|
&head, &tail);
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ...and generally, our preferred cipher is AES.
|
* ...and generally, our preferred cipher is AES.
|
||||||
@@ -1565,7 +1583,7 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_
|
@@ -1549,7 +1567,7 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_
|
||||||
* Within each group, ciphers remain sorted by strength and previous
|
* Within each group, ciphers remain sorted by strength and previous
|
||||||
* preference, i.e.,
|
* preference, i.e.,
|
||||||
* 1) ECDHE > DHE
|
* 1) ECDHE > DHE
|
||||||
@@ -55,7 +55,7 @@ Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|||||||
* 3) AES > rest
|
* 3) AES > rest
|
||||||
* 4) TLS 1.2 > legacy
|
* 4) TLS 1.2 > legacy
|
||||||
*
|
*
|
||||||
@@ -2236,7 +2254,13 @@ const char *OSSL_default_cipher_list(voi
|
@@ -2222,7 +2240,13 @@ const char *OSSL_default_cipher_list(voi
|
||||||
*/
|
*/
|
||||||
const char *OSSL_default_ciphersuites(void)
|
const char *OSSL_default_ciphersuites(void)
|
||||||
{
|
{
|
||||||
@@ -71,22 +71,20 @@ Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|||||||
}
|
}
|
||||||
--- a/include/openssl/ssl.h.in
|
--- a/include/openssl/ssl.h.in
|
||||||
+++ b/include/openssl/ssl.h.in
|
+++ b/include/openssl/ssl.h.in
|
||||||
@@ -195,9 +195,15 @@ extern "C" {
|
@@ -197,10 +197,16 @@ extern "C" {
|
||||||
* DEPRECATED IN 3.0.0, in favor of OSSL_default_ciphersuites()
|
* DEPRECATED IN 3.0.0, in favor of OSSL_default_ciphersuites()
|
||||||
* Update both macro and function simultaneously
|
* Update both macro and function simultaneously
|
||||||
*/
|
*/
|
||||||
-# define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
|
+#ifdef OPENSSL_PREFER_CHACHA_OVER_GCM
|
||||||
- "TLS_CHACHA20_POLY1305_SHA256:" \
|
+#define TLS_DEFAULT_CIPHERSUITES "TLS_CHACHA20_POLY1305_SHA256:" \
|
||||||
- "TLS_AES_128_GCM_SHA256"
|
+ "TLS_AES_256_GCM_SHA384:" \
|
||||||
+# ifdef OPENSSL_PREFER_CHACHA_OVER_GCM
|
+ "TLS_AES_128_GCM_SHA256"
|
||||||
+# define TLS_DEFAULT_CIPHERSUITES "TLS_CHACHA20_POLY1305_SHA256:" \
|
+#else
|
||||||
+ "TLS_AES_256_GCM_SHA384:" \
|
#define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
|
||||||
+ "TLS_AES_128_GCM_SHA256"
|
"TLS_CHACHA20_POLY1305_SHA256:" \
|
||||||
+# else
|
"TLS_AES_128_GCM_SHA256"
|
||||||
+# define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \
|
#endif
|
||||||
+ "TLS_CHACHA20_POLY1305_SHA256:" \
|
+#endif
|
||||||
+ "TLS_AES_128_GCM_SHA256"
|
|
||||||
+# endif
|
|
||||||
# endif
|
|
||||||
/*
|
/*
|
||||||
* As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always
|
* As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always
|
||||||
|
* starts with a reasonable order, and all we have to do for DEFAULT is
|
||||||
|
|||||||
@@ -21,21 +21,21 @@ Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|||||||
|
|
||||||
--- a/engines/e_devcrypto.c
|
--- a/engines/e_devcrypto.c
|
||||||
+++ b/engines/e_devcrypto.c
|
+++ b/engines/e_devcrypto.c
|
||||||
@@ -905,7 +905,7 @@ static void prepare_digest_methods(void)
|
@@ -886,7 +886,7 @@ static void prepare_digest_methods(void)
|
||||||
for (i = 0, known_digest_nids_amount = 0; i < OSSL_NELEM(digest_data);
|
for (i = 0, known_digest_nids_amount = 0; i < OSSL_NELEM(digest_data);
|
||||||
i++) {
|
i++) {
|
||||||
|
|
||||||
- selected_digests[i] = 1;
|
- selected_digests[i] = 1;
|
||||||
+ selected_digests[i] = 0;
|
+ selected_digests[i] = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check that the digest is usable
|
* Check that the digest is usable
|
||||||
@@ -1119,7 +1119,7 @@ static const ENGINE_CMD_DEFN devcrypto_c
|
@@ -1095,7 +1095,7 @@ static const ENGINE_CMD_DEFN devcrypto_c
|
||||||
#ifdef IMPLEMENT_DIGEST
|
#ifdef IMPLEMENT_DIGEST
|
||||||
{DEVCRYPTO_CMD_DIGESTS,
|
{ DEVCRYPTO_CMD_DIGESTS,
|
||||||
"DIGESTS",
|
"DIGESTS",
|
||||||
- "either ALL, NONE, or a comma-separated list of digests to enable [default=ALL]",
|
- "either ALL, NONE, or a comma-separated list of digests to enable [default=ALL]",
|
||||||
+ "either ALL, NONE, or a comma-separated list of digests to enable [default=NONE]",
|
+ "either ALL, NONE, or a comma-separated list of digests to enable [default=NONE]",
|
||||||
ENGINE_CMD_FLAG_STRING},
|
ENGINE_CMD_FLAG_STRING },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -10,12 +10,11 @@ Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|||||||
|
|
||||||
--- a/engines/e_devcrypto.c
|
--- a/engines/e_devcrypto.c
|
||||||
+++ b/engines/e_devcrypto.c
|
+++ b/engines/e_devcrypto.c
|
||||||
@@ -211,9 +211,8 @@ static int cipher_init(EVP_CIPHER_CTX *c
|
@@ -210,8 +210,8 @@ static int cipher_init(EVP_CIPHER_CTX *c
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* cleanup a previous session */
|
/* cleanup a previous session */
|
||||||
- if (cipher_ctx->sess.ses != 0 &&
|
- if (cipher_ctx->sess.ses != 0 && clean_devcrypto_session(&cipher_ctx->sess) == 0)
|
||||||
- clean_devcrypto_session(&cipher_ctx->sess) == 0)
|
|
||||||
- return 0;
|
- return 0;
|
||||||
+ if (cipher_ctx->sess.ses != 0)
|
+ if (cipher_ctx->sess.ses != 0)
|
||||||
+ clean_devcrypto_session(&cipher_ctx->sess);
|
+ clean_devcrypto_session(&cipher_ctx->sess);
|
||||||
|
|||||||
Reference in New Issue
Block a user