Skip to content

Commit 83ac4bc

Browse files
azurelinux-securityKanishk BansalPawelWMS
authored
[AutoPR- Security] Patch edk2 for CVE-2025-9230 [HIGH] (microsoft#14776)
Co-authored-by: Kanishk Bansal <[email protected]> Co-authored-by: Pawel Winogrodzki <[email protected]>
1 parent 792cfc1 commit 83ac4bc

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

SPECS-SIGNED/edk2-hvloader-signed/edk2-hvloader-signed.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Summary: Signed HvLoader.efi for %{buildarch} systems
1212
Name: edk2-hvloader-signed-%{buildarch}
1313
Version: %{GITDATE}git%{GITCOMMIT}
14-
Release: 9%{?dist}
14+
Release: 10%{?dist}
1515
License: MIT
1616
Vendor: Microsoft Corporation
1717
Distribution: Azure Linux
@@ -74,6 +74,9 @@ popd
7474
/boot/efi/HvLoader.efi
7575

7676
%changelog
77+
* Fri Oct 03 2025 Azure Linux Security Servicing Account <[email protected]> - 20240524git3e722403cd16-10
78+
- Bump release for consistency with edk2 spec.
79+
7780
* Mon Aug 11 2025 Azure Linux Security Servicing Account <[email protected]> - 20240524git3e722403cd16-9
7881
- Bump release for consistency with edk2 spec.
7982

SPECS/edk2/CVE-2025-9230.patch

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From 86093db2685b86e658302aec4297c54d664ea874 Mon Sep 17 00:00:00 2001
2+
From: Viktor Dukhovni <[email protected]>
3+
Date: Thu, 11 Sep 2025 18:10:12 +0200
4+
Subject: [PATCH] kek_unwrap_key(): Fix incorrect check of unwrapped key size
5+
6+
Fixes CVE-2025-9230
7+
8+
The check is off by 8 bytes so it is possible to overread by
9+
up to 8 bytes and overwrite up to 4 bytes.
10+
11+
Reviewed-by: Neil Horman <[email protected]>
12+
Reviewed-by: Matt Caswell <[email protected]>
13+
Reviewed-by: Tomas Mraz <[email protected]>
14+
(cherry picked from commit 9c462be2cea54ebfc62953224220b56f8ba22a0c)
15+
Signed-off-by: rpm-build <rpm-build>
16+
Upstream-reference: https://github.com/openssl/openssl/commit/a79c4ce559c6a3a8fd4109e9f33c1185d5bf2def.patch
17+
---
18+
CryptoPkg/Library/OpensslLib/openssl/crypto/cms/cms_pwri.c | 2 +-
19+
1 file changed, 1 insertion(+), 1 deletion(-)
20+
21+
diff --git a/CryptoPkg/Library/OpensslLib/openssl/crypto/cms/cms_pwri.c b/CryptoPkg/Library/OpensslLib/openssl/crypto/cms/cms_pwri.c
22+
index 2373092..6b507c3 100644
23+
--- a/CryptoPkg/Library/OpensslLib/openssl/crypto/cms/cms_pwri.c
24+
+++ b/CryptoPkg/Library/OpensslLib/openssl/crypto/cms/cms_pwri.c
25+
@@ -228,7 +228,7 @@ static int kek_unwrap_key(unsigned char *out, size_t *outlen,
26+
/* Check byte failure */
27+
goto err;
28+
}
29+
- if (inlen < (size_t)(tmp[0] - 4)) {
30+
+ if (inlen < 4 + (size_t)tmp[0]) {
31+
/* Invalid length value */
32+
goto err;
33+
}
34+
--
35+
2.45.4
36+

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: 9%{?dist}
58+
Release: 10%{?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
@@ -139,6 +139,7 @@ Patch1003: CVE-2024-13176.patch
139139
Patch1004: CVE-2024-2511.patch
140140
Patch1005: CVE-2024-4603.patch
141141
Patch1006: CVE-2025-3770.patch
142+
Patch1007: CVE-2025-9230.patch
142143

143144
# python3-devel and libuuid-devel are required for building tools.
144145
# python3-devel is also needed for varstore template generation and
@@ -800,6 +801,9 @@ done
800801
/boot/efi/HvLoader.efi
801802

802803
%changelog
804+
* Fri Oct 03 2025 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 20240524git3e722403cd16-10
805+
- Patch for CVE-2025-9230
806+
803807
* Mon Aug 11 2025 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 20240524git3e722403cd16-9
804808
- Patch for CVE-2025-3770
805809

0 commit comments

Comments
 (0)