diff options
| author | Hitendra Prajapati <hprajapati@mvista.com> | 2026-02-20 10:13:22 +0530 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2026-02-27 17:45:06 +0000 |
| commit | 113e92bd8bcba9c20fffe08bbf936144d7edf7a3 (patch) | |
| tree | f6411a539c00fdde3bd3987b9970e0aa68631de6 /meta/recipes-connectivity | |
| parent | dbdc8de0ef3aa6ae7e018bc627f43c7b64448fe5 (diff) | |
| download | poky-113e92bd8bcba9c20fffe08bbf936144d7edf7a3.tar.gz | |
openssl: fix CVE-2025-69419
Backport patch from NVD report: https://nvd.nist.gov/vuln/detail/CVE-2025-69419
(From OE-Core rev: 0ad28133e04d439fbee5710ab4b43042d1101ff6)
Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
| -rw-r--r-- | meta/recipes-connectivity/openssl/openssl/CVE-2025-69419.patch | 61 | ||||
| -rw-r--r-- | meta/recipes-connectivity/openssl/openssl_3.2.6.bb | 1 |
2 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2025-69419.patch b/meta/recipes-connectivity/openssl/openssl/CVE-2025-69419.patch new file mode 100644 index 0000000000..dcfdba82ac --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/CVE-2025-69419.patch | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | From 41be0f216404f14457bbf3b9cc488dba60b49296 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Norbert Pocs <norbertp@openssl.org> | ||
| 3 | Date: Thu, 11 Dec 2025 12:49:00 +0100 | ||
| 4 | Subject: [PATCH] Check return code of UTF8_putc | ||
| 5 | |||
| 6 | Signed-off-by: Norbert Pocs <norbertp@openssl.org> | ||
| 7 | |||
| 8 | Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org> | ||
| 9 | Reviewed-by: Viktor Dukhovni <viktor@openssl.org> | ||
| 10 | (Merged from https://github.com/openssl/openssl/pull/29376) | ||
| 11 | |||
| 12 | CVE: CVE-2025-69419 | ||
| 13 | Upstream-Status: Backport [https://github.com/openssl/openssl/commit/41be0f216404f14457bbf3b9cc488dba60b49296] | ||
| 14 | Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com> | ||
| 15 | --- | ||
| 16 | crypto/asn1/a_strex.c | 6 ++++-- | ||
| 17 | crypto/pkcs12/p12_utl.c | 11 +++++++++-- | ||
| 18 | 2 files changed, 13 insertions(+), 4 deletions(-) | ||
| 19 | |||
| 20 | diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c | ||
| 21 | index f64e352..7d76700 100644 | ||
| 22 | --- a/crypto/asn1/a_strex.c | ||
| 23 | +++ b/crypto/asn1/a_strex.c | ||
| 24 | @@ -204,8 +204,10 @@ static int do_buf(unsigned char *buf, int buflen, | ||
| 25 | orflags = CHARTYPE_LAST_ESC_2253; | ||
| 26 | if (type & BUF_TYPE_CONVUTF8) { | ||
| 27 | unsigned char utfbuf[6]; | ||
| 28 | - int utflen; | ||
| 29 | - utflen = UTF8_putc(utfbuf, sizeof(utfbuf), c); | ||
| 30 | + int utflen = UTF8_putc(utfbuf, sizeof(utfbuf), c); | ||
| 31 | + | ||
| 32 | + if (utflen < 0) | ||
| 33 | + return -1; /* error happened with UTF8 */ | ||
| 34 | for (i = 0; i < utflen; i++) { | ||
| 35 | /* | ||
| 36 | * We don't need to worry about setting orflags correctly | ||
| 37 | diff --git a/crypto/pkcs12/p12_utl.c b/crypto/pkcs12/p12_utl.c | ||
| 38 | index a96623f..b109dab 100644 | ||
| 39 | --- a/crypto/pkcs12/p12_utl.c | ||
| 40 | +++ b/crypto/pkcs12/p12_utl.c | ||
| 41 | @@ -206,8 +206,15 @@ char *OPENSSL_uni2utf8(const unsigned char *uni, int unilen) | ||
| 42 | /* re-run the loop emitting UTF-8 string */ | ||
| 43 | for (asclen = 0, i = 0; i < unilen; ) { | ||
| 44 | j = bmp_to_utf8(asctmp+asclen, uni+i, unilen-i); | ||
| 45 | - if (j == 4) i += 4; | ||
| 46 | - else i += 2; | ||
| 47 | + /* when UTF8_putc fails */ | ||
| 48 | + if (j < 0) { | ||
| 49 | + OPENSSL_free(asctmp); | ||
| 50 | + return NULL; | ||
| 51 | + } | ||
| 52 | + if (j == 4) | ||
| 53 | + i += 4; | ||
| 54 | + else | ||
| 55 | + i += 2; | ||
| 56 | asclen += j; | ||
| 57 | } | ||
| 58 | |||
| 59 | -- | ||
| 60 | 2.50.1 | ||
| 61 | |||
diff --git a/meta/recipes-connectivity/openssl/openssl_3.2.6.bb b/meta/recipes-connectivity/openssl/openssl_3.2.6.bb index 572a12aae8..074ab12131 100644 --- a/meta/recipes-connectivity/openssl/openssl_3.2.6.bb +++ b/meta/recipes-connectivity/openssl/openssl_3.2.6.bb | |||
| @@ -14,6 +14,7 @@ SRC_URI = "https://github.com/openssl/openssl/releases/download/openssl-${PV}/op | |||
| 14 | file://0001-Added-handshake-history-reporting-when-test-fails.patch \ | 14 | file://0001-Added-handshake-history-reporting-when-test-fails.patch \ |
| 15 | file://CVE-2024-41996.patch \ | 15 | file://CVE-2024-41996.patch \ |
| 16 | file://CVE-2025-15468.patch \ | 16 | file://CVE-2025-15468.patch \ |
| 17 | file://CVE-2025-69419.patch \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | SRC_URI:append:class-nativesdk = " \ | 20 | SRC_URI:append:class-nativesdk = " \ |
