Skip to content

Commit e0fd08d

Browse files
Merge PR "[AUTO-CHERRYPICK] [AutoPR- Security] Patch edk2 for CVE-2025-69419 [HIGH] - branch 3.0-dev" #16198
Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
1 parent f4db6a0 commit e0fd08d

2 files changed

Lines changed: 61 additions & 1 deletion

File tree

SPECS/edk2/CVE-2025-69419.patch

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
From 60c822c3ddd52c1e872b7cd3d89ae3081e455ee3 Mon Sep 17 00:00:00 2001
2+
From: AllSpark <allspark@microsoft.com>
3+
Date: Wed, 11 Mar 2026 19:55:36 +0000
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+
10+
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
11+
12+
(Merged from https://github.com/openssl/openssl/pull/29376)
13+
14+
Signed-off-by: rpm-build <rpm-build>
15+
Upstream-reference: AI Backport of https://github.com/openssl/openssl/commit/41be0f216404f14457bbf3b9cc488dba60b49296.patch
16+
---
17+
CryptoPkg/Library/OpensslLib/openssl/crypto/asn1/a_strex.c | 6 ++++--
18+
.../Library/OpensslLib/openssl/crypto/pkcs12/p12_utl.c | 5 +++++
19+
2 files changed, 9 insertions(+), 2 deletions(-)
20+
21+
diff --git a/CryptoPkg/Library/OpensslLib/openssl/crypto/asn1/a_strex.c b/CryptoPkg/Library/OpensslLib/openssl/crypto/asn1/a_strex.c
22+
index b31761a..f4c92fc 100644
23+
--- a/CryptoPkg/Library/OpensslLib/openssl/crypto/asn1/a_strex.c
24+
+++ b/CryptoPkg/Library/OpensslLib/openssl/crypto/asn1/a_strex.c
25+
@@ -203,8 +203,10 @@ static int do_buf(unsigned char *buf, int buflen,
26+
orflags = CHARTYPE_LAST_ESC_2253;
27+
if (type & BUF_TYPE_CONVUTF8) {
28+
unsigned char utfbuf[6];
29+
- int utflen;
30+
- utflen = UTF8_putc(utfbuf, sizeof(utfbuf), c);
31+
+ int utflen = UTF8_putc(utfbuf, sizeof(utfbuf), c);
32+
+
33+
+ if (utflen < 0)
34+
+ return -1; /* error happened with UTF8 */
35+
for (i = 0; i < utflen; i++) {
36+
/*
37+
* We don't need to worry about setting orflags correctly
38+
diff --git a/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs12/p12_utl.c b/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs12/p12_utl.c
39+
index 3afc8b2..dfd8829 100644
40+
--- a/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs12/p12_utl.c
41+
+++ b/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs12/p12_utl.c
42+
@@ -212,6 +212,11 @@ char *OPENSSL_uni2utf8(const unsigned char *uni, int unilen)
43+
/* re-run the loop emitting UTF-8 string */
44+
for (asclen = 0, i = 0; i < unilen; ) {
45+
j = bmp_to_utf8(asctmp+asclen, uni+i, unilen-i);
46+
+ /* when UTF8_putc fails */
47+
+ if (j < 0) {
48+
+ OPENSSL_free(asctmp);
49+
+ return NULL;
50+
+ }
51+
if (j == 4) i += 4;
52+
else i += 2;
53+
asclen += j;
54+
--
55+
2.45.4
56+

SPECS/edk2/edk2.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ExclusiveArch: x86_64
5555

5656
Name: edk2
5757
Version: %{GITDATE}git%{GITCOMMIT}
58-
Release: 14%{?dist}
58+
Release: 15%{?dist}
5959
Summary: UEFI firmware for 64-bit virtual machines
6060
License: Apache-2.0 AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-Patent AND BSD-3-Clause AND BSD-4-Clause AND ISC AND MIT AND LicenseRef-Fedora-Public-Domain
6161
URL: https://www.tianocore.org
@@ -148,6 +148,7 @@ Patch1011: CVE-2025-69418.patch
148148
Patch1012: CVE-2025-69420.patch
149149
Patch1013: CVE-2025-69421.patch
150150
Patch1014: CVE-2026-22796.patch
151+
Patch1015: CVE-2025-69419.patch
151152

152153
# python3-devel and libuuid-devel are required for building tools.
153154
# python3-devel is also needed for varstore template generation and
@@ -809,6 +810,9 @@ done
809810
/boot/efi/HvLoader.efi
810811

811812
%changelog
813+
* Wed Mar 11 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 20240524git3e722403cd16-15
814+
- Patch for CVE-2025-69419
815+
812816
* Tue Feb 03 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 20240524git3e722403cd16-14
813817
- Patch for CVE-2026-22796, CVE-2025-69421, CVE-2025-69420, CVE-2025-69418, CVE-2025-68160
814818

0 commit comments

Comments
 (0)