Skip to content

Commit 4cb752a

Browse files
CBL-Mariner-BotBinu Jose Philip
authored and
Binu Jose Philip
committed
[AUTO-CHERRYPICK] [AUTOPATCHER-CORE] Upgrade bind to 9.20.5 to fix CVE-2024-12705 & CVE-2024-11187 - branch 3.0-dev (#12297)
1 parent 50d377a commit 4cb752a

File tree

4 files changed

+26
-19
lines changed

4 files changed

+26
-19
lines changed

SPECS/bind/bind.signatures.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"Signatures": {
3-
"bind-9.20.0.tar.xz": "cc580998017b51f273964058e8cb3aa5482bc785243dea71e5556ec565a13347",
3+
"bind-9.20.5.tar.xz": "19274fd739c023772b4212a0b6c201cf4364855fa7e6a7d3db49693f55db1ab8",
4+
"dlz-modules-main.tar.gz": "884bef3535317a7757ad0e3556a27e2ed1a80f5b1040bce4074780c8719667d0",
45
"generate-rndc-key.sh": "da0964516a9abe4074e262a1d0b7f63e63b2150c4cc2dddaaca029010383c422",
56
"named-chroot.files": "5dbc7bd2a21836fb86cb740a2d4d72eb9f2b4f341996cd0c8ae9c39e95c0d76c",
67
"named.conf.sample": "1807f11df688de4eb8cdcc97bd1a8863d81b03b1f24af96f3639de40bc8e538a",

SPECS/bind/bind.spec

+15-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Summary: Domain Name System software
1111
Name: bind
12-
Version: 9.20.0
12+
Version: 9.20.5
1313
Release: 1%{?dist}
1414
License: ISC
1515
Vendor: Microsoft Corporation
@@ -30,6 +30,8 @@ Source11: setup-named-chroot.sh
3030
Source12: generate-rndc-key.sh
3131
Source13: named.rwtab
3232
Source14: named-chroot.files
33+
Source15: https://gitlab.isc.org/isc-projects/dlz-modules/-/archive/main/dlz-modules-main.tar.gz
34+
3335
Patch0: nongit-fix.patch
3436

3537
BuildRequires: gcc
@@ -196,14 +198,17 @@ Summary: BIND utilities
196198
# so we need to save a backup of these files.
197199
mkdir backup
198200
mv compile depcomp missing backup/
199-
libtoolize -c -f; %{_bindir}/aclocal -I m4 --force; %{_bindir}/autoconf -f
201+
libtoolize -c -f; %{_bindir}/aclocal -I m4 --force; %{_bindir}/autoconf -f
200202
mv backup/* .
201203
rmdir backup
202204

203205
%build
204206
# DLZ modules do not support oot builds. Copy files into build
205207
mkdir -p build/contrib/dlz
206-
cp -frp contrib/dlz/modules build/contrib/dlz/modules
208+
pushd build/contrib/dlz
209+
tar --no-same-owner -xf %{SOURCE15}
210+
mv dlz-modules-main/modules ./
211+
popd
207212

208213
./configure \
209214
--prefix=%{_prefix} \
@@ -400,7 +405,7 @@ fi;
400405
%{_mandir}/man1/named-journalprint.1*
401406
%{_mandir}/man8/filter-aaaa.8.gz
402407
%{_mandir}/man8/filter-a.8.gz
403-
%doc CHANGES README.md named.conf.default
408+
%doc README.md named.conf.default
404409
%doc sample/
405410

406411
%defattr(0660,root,named,01770)
@@ -435,11 +440,11 @@ fi;
435440

436441
%files dlz-ldap
437442
%{_libdir}/{named,bind}/dlz_ldap_dynamic.so
438-
%doc contrib/dlz/modules/ldap/testing/*
443+
%doc build/contrib/dlz/modules/ldap/testing/*
439444

440445
%files dlz-sqlite3
441446
%{_libdir}/{named,bind}/dlz_sqlite3_dynamic.so
442-
%doc contrib/dlz/modules/sqlite3/testing/*
447+
%doc build/contrib/dlz/modules/sqlite3/testing/*
443448

444449
%files libs
445450
%{_libdir}/*-%{version}*.so
@@ -523,6 +528,10 @@ fi;
523528
%{_mandir}/man1/named-nzd2nzf.1*
524529

525530
%changelog
531+
* Tue Feb 04 2025 CBL-Mariner Servicing Account <[email protected]> - 9.20.5-1
532+
- Auto-upgrade to 9.20.5 - to fix CVE-2024-12705 & CVE-2024-11187
533+
- Refresh nongit-fix patch to apply cleanly.
534+
526535
* Wed Jul 24 2024 Muhammad Falak <[email protected]> - 9.20.0-1
527536
- Upgrade version to 9.20.0 to address CVE-CVE-2024-0760, CVE-2024-1737, CVE-2024-1975 & CVE-2024-4076
528537
- Refresh patches to apply cleanly

SPECS/bind/nongit-fix.patch

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
From 431fa0dcec199512effecb4842a889eee5884c72 Mon Sep 17 00:00:00 2001
2-
From: alejandro-microsoft <alejandroma@microsoft.com>
3-
Date: Fri, 1 Mar 2024 17:49:51 -0800
1+
From a93a15295ac2690f587711b26af84d6292d2aa1b Mon Sep 17 00:00:00 2001
2+
From: Kanishk Bansal <kbkanishk975@gmail.com>
3+
Date: Tue, 4 Feb 2025 06:49:17 +0000
44
Subject: [PATCH] Fix issue where bind directory isn't downloaded via git
55

6-
Ported to v.9.20.0 from v9.19.21 by @mfrw on 24-July-2024
7-
8-
Signed-off-by: Muhammad Falak R Wani <[email protected]>
96
---
107
configure.ac | 6 ++++--
118
1 file changed, 4 insertions(+), 2 deletions(-)
129

1310
diff --git a/configure.ac b/configure.ac
14-
index a911163..b58d5be 100644
11+
index 168a77a..37c0acd 100644
1512
--- a/configure.ac
1613
+++ b/configure.ac
1714
@@ -19,7 +19,7 @@ m4_define([bind_VERSION_MINOR], 20)dnl
18-
m4_define([bind_VERSION_PATCH], 0)dnl
15+
m4_define([bind_VERSION_PATCH], 5)dnl
1916
m4_define([bind_VERSION_EXTRA], )dnl
2017
m4_define([bind_DESCRIPTION], [(Stable Release)])dnl
2118
-m4_define([bind_SRCID], [m4_esyscmd_s([git rev-parse --short HEAD | cut -b1-7])])dnl
22-
+m4_define([bind_SRCID], [m4_esyscmd_s([git rev-parse --short HEAD 2>/dev/null || echo "unsetID" | cut -b1-7])])dnl
19+
+m4_define([bind_SRCID], [m4_esyscmd_s([git rev-parse --short HEAD 2>/dev/null || echo "unsetID" | cut -b1-7])])dnl
2320
m4_define([bind_PKG_VERSION], [[bind_VERSION_MAJOR.bind_VERSION_MINOR.bind_VERSION_PATCH]bind_VERSION_EXTRA])dnl
2421

2522
#
@@ -35,5 +32,5 @@ index a911163..b58d5be 100644
3532

3633
#
3734
--
38-
2.40.1
35+
2.43.0
3936

cgmanifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,8 @@
10871087
"type": "other",
10881088
"other": {
10891089
"name": "bind",
1090-
"version": "9.20.0",
1091-
"downloadUrl": "https://ftp.isc.org/isc/bind9/9.20.0/bind-9.20.0.tar.xz"
1090+
"version": "9.20.5",
1091+
"downloadUrl": "https://ftp.isc.org/isc/bind9/9.20.5/bind-9.20.5.tar.xz"
10921092
}
10931093
}
10941094
},

0 commit comments

Comments
 (0)