Skip to content

Commit 097c054

Browse files
azurelinux-securitykevin-b-lockwoodjykanase
authored
[AutoPR- Security] Patch binutils for CVE-2025-8225 [MEDIUM] (microsoft#14407)
Co-authored-by: Kevin Lockwood <[email protected]> Co-authored-by: Kevin Lockwood <[email protected]> Co-authored-by: jykanase <[email protected]>
1 parent f65c4de commit 097c054

File tree

6 files changed

+55
-13
lines changed

6 files changed

+55
-13
lines changed

SPECS/binutils/CVE-2025-8225.patch

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From 615a0496206ed16a93f3362d6189bdf8ba7c3523 Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Mon, 28 Jul 2025 19:39:05 +0000
5+
Subject: [PATCH] Fix CVE CVE-2025-8225 in binutils
6+
7+
[AI Backported] Upstream Patch Reference: https://gitlab.com/gnutools/binutils-gdb/-/commit/e51fdff7d2e538c0e5accdd65649ac68e6e0ddd4
8+
(Revised by <[email protected]>)
9+
---
10+
binutils/dwarf.c | 10 ++++------
11+
1 file changed, 4 insertions(+), 6 deletions(-)
12+
13+
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
14+
index d976a64b..7934b2b5 100644
15+
--- a/binutils/dwarf.c
16+
+++ b/binutils/dwarf.c
17+
@@ -3480,14 +3480,12 @@ process_debug_info (struct dwarf_section * section,
18+
return false;
19+
}
20+
21+
- if ((do_loc || do_debug_loc || do_debug_ranges)
22+
- && num_debug_info_entries == 0
23+
- && ! do_types)
24+
+ if ((do_loc || do_debug_loc || do_debug_ranges || do_debug_info)
25+
+ && alloc_num_debug_info_entries == 0
26+
+ && !do_types)
27+
{
28+
-
29+
/* Then allocate an array to hold the information. */
30+
- debug_information = (debug_info *) cmalloc (num_units,
31+
- sizeof (* debug_information));
32+
+ debug_information = cmalloc (num_units, sizeof (*debug_information));
33+
if (debug_information == NULL)
34+
{
35+
error (_("Not enough memory for a debug info array of %u entries\n"),
36+
--
37+
2.45.4
38+

SPECS/binutils/binutils.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Summary: Contains a linker, an assembler, and other tools
2222
Name: binutils
2323
Version: 2.37
24-
Release: 16%{?dist}
24+
Release: 17%{?dist}
2525
License: GPLv2+
2626
Vendor: Microsoft Corporation
2727
Distribution: Mariner
@@ -55,6 +55,7 @@ Patch20: CVE-2025-5245.patch
5555
Patch21: CVE-2025-5244.patch
5656
Patch22: CVE-2025-7545.patch
5757
Patch23: CVE-2025-7546.patch
58+
Patch24: CVE-2025-8225.patch
5859
Provides: bundled(libiberty)
5960

6061
# Moving macro before the "SourceX" tags breaks PR checks parsing the specs.
@@ -311,6 +312,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
311312
%do_files aarch64-linux-gnu %{build_aarch64}
312313

313314
%changelog
315+
* Mon Jul 28 2025 Azure Linux Security Servicing Account <[email protected]> - 2.37-17
316+
- Patch for CVE-2025-8225
317+
314318
* Thu Jul 17 2025 Azure Linux Security Servicing Account <[email protected]> - 2.37-16
315319
- Patch for CVE-2025-7545, CVE-2025-7546
316320

toolkit/resources/manifests/package/pkggen_core_aarch64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ zlib-devel-1.2.13-2.cm2.aarch64.rpm
1212
file-5.40-3.cm2.aarch64.rpm
1313
file-devel-5.40-3.cm2.aarch64.rpm
1414
file-libs-5.40-3.cm2.aarch64.rpm
15-
binutils-2.37-16.cm2.aarch64.rpm
16-
binutils-devel-2.37-16.cm2.aarch64.rpm
15+
binutils-2.37-17.cm2.aarch64.rpm
16+
binutils-devel-2.37-17.cm2.aarch64.rpm
1717
gmp-6.2.1-4.cm2.aarch64.rpm
1818
gmp-devel-6.2.1-4.cm2.aarch64.rpm
1919
mpfr-4.1.0-2.cm2.aarch64.rpm

toolkit/resources/manifests/package/pkggen_core_x86_64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ zlib-devel-1.2.13-2.cm2.x86_64.rpm
1212
file-5.40-3.cm2.x86_64.rpm
1313
file-devel-5.40-3.cm2.x86_64.rpm
1414
file-libs-5.40-3.cm2.x86_64.rpm
15-
binutils-2.37-16.cm2.x86_64.rpm
16-
binutils-devel-2.37-16.cm2.x86_64.rpm
15+
binutils-2.37-17.cm2.x86_64.rpm
16+
binutils-devel-2.37-17.cm2.x86_64.rpm
1717
gmp-6.2.1-4.cm2.x86_64.rpm
1818
gmp-devel-6.2.1-4.cm2.x86_64.rpm
1919
mpfr-4.1.0-2.cm2.x86_64.rpm

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ bash-5.1.8-4.cm2.aarch64.rpm
99
bash-debuginfo-5.1.8-4.cm2.aarch64.rpm
1010
bash-devel-5.1.8-4.cm2.aarch64.rpm
1111
bash-lang-5.1.8-4.cm2.aarch64.rpm
12-
binutils-2.37-16.cm2.aarch64.rpm
13-
binutils-debuginfo-2.37-16.cm2.aarch64.rpm
14-
binutils-devel-2.37-16.cm2.aarch64.rpm
12+
binutils-2.37-17.cm2.aarch64.rpm
13+
binutils-debuginfo-2.37-17.cm2.aarch64.rpm
14+
binutils-devel-2.37-17.cm2.aarch64.rpm
1515
bison-3.7.6-2.cm2.aarch64.rpm
1616
bison-debuginfo-3.7.6-2.cm2.aarch64.rpm
1717
bzip2-1.0.8-1.cm2.aarch64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ bash-5.1.8-4.cm2.x86_64.rpm
99
bash-debuginfo-5.1.8-4.cm2.x86_64.rpm
1010
bash-devel-5.1.8-4.cm2.x86_64.rpm
1111
bash-lang-5.1.8-4.cm2.x86_64.rpm
12-
binutils-2.37-16.cm2.x86_64.rpm
13-
binutils-aarch64-linux-gnu-2.37-16.cm2.x86_64.rpm
14-
binutils-debuginfo-2.37-16.cm2.x86_64.rpm
15-
binutils-devel-2.37-16.cm2.x86_64.rpm
12+
binutils-2.37-17.cm2.x86_64.rpm
13+
binutils-aarch64-linux-gnu-2.37-17.cm2.x86_64.rpm
14+
binutils-debuginfo-2.37-17.cm2.x86_64.rpm
15+
binutils-devel-2.37-17.cm2.x86_64.rpm
1616
bison-3.7.6-2.cm2.x86_64.rpm
1717
bison-debuginfo-3.7.6-2.cm2.x86_64.rpm
1818
bzip2-1.0.8-1.cm2.x86_64.rpm
@@ -47,7 +47,7 @@ cracklib-lang-2.9.7-5.cm2.x86_64.rpm
4747
createrepo_c-0.17.5-1.cm2.x86_64.rpm
4848
createrepo_c-debuginfo-0.17.5-1.cm2.x86_64.rpm
4949
createrepo_c-devel-0.17.5-1.cm2.x86_64.rpm
50-
cross-binutils-common-2.37-16.cm2.noarch.rpm
50+
cross-binutils-common-2.37-17.cm2.noarch.rpm
5151
cross-gcc-common-11.2.0-8.cm2.noarch.rpm
5252
curl-8.8.0-6.cm2.x86_64.rpm
5353
curl-debuginfo-8.8.0-6.cm2.x86_64.rpm

0 commit comments

Comments
 (0)