summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorHitendra Prajapati <hprajapati@mvista.com>2026-02-20 10:13:22 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2026-02-27 17:45:06 +0000
commit113e92bd8bcba9c20fffe08bbf936144d7edf7a3 (patch)
treef6411a539c00fdde3bd3987b9970e0aa68631de6 /meta/recipes-connectivity
parentdbdc8de0ef3aa6ae7e018bc627f43c7b64448fe5 (diff)
downloadpoky-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.patch61
-rw-r--r--meta/recipes-connectivity/openssl/openssl_3.2.6.bb1
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 @@
1From 41be0f216404f14457bbf3b9cc488dba60b49296 Mon Sep 17 00:00:00 2001
2From: Norbert Pocs <norbertp@openssl.org>
3Date: Thu, 11 Dec 2025 12:49:00 +0100
4Subject: [PATCH] Check return code of UTF8_putc
5
6Signed-off-by: Norbert Pocs <norbertp@openssl.org>
7
8Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
9Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
10(Merged from https://github.com/openssl/openssl/pull/29376)
11
12CVE: CVE-2025-69419
13Upstream-Status: Backport [https://github.com/openssl/openssl/commit/41be0f216404f14457bbf3b9cc488dba60b49296]
14Signed-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
20diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c
21index 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
37diff --git a/crypto/pkcs12/p12_utl.c b/crypto/pkcs12/p12_utl.c
38index 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--
602.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
19SRC_URI:append:class-nativesdk = " \ 20SRC_URI:append:class-nativesdk = " \