Skip to content

Commit 0eca4fc

Browse files
[Medium] Patch systemd-bootstrap for CVE-2023-7008 (#13883)
1 parent 56d2f88 commit 0eca4fc

File tree

5 files changed

+52
-12
lines changed

5 files changed

+52
-12
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From cbed44badf00e62b639e1cf04955080fcc8fc35a Mon Sep 17 00:00:00 2001
2+
From: akhila-guruju <[email protected]>
3+
Date: Thu, 22 May 2025 10:35:31 +0000
4+
Subject: [PATCH] Address CVE-2023-7008
5+
6+
Upstream Patch reference: https://github.com/systemd/systemd-stable/commit/4ada1290584745ab6643eece9e1756a8c0e079ca
7+
8+
---
9+
src/resolve/resolved-dns-transaction.c | 4 ++--
10+
1 file changed, 2 insertions(+), 2 deletions(-)
11+
12+
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
13+
index 2ee45ff..5507fd9 100644
14+
--- a/src/resolve/resolved-dns-transaction.c
15+
+++ b/src/resolve/resolved-dns-transaction.c
16+
@@ -2781,7 +2781,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
17+
if (r == 0)
18+
continue;
19+
20+
- return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
21+
+ return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
22+
}
23+
24+
return true;
25+
@@ -2808,7 +2808,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
26+
/* We found the transaction that was supposed to find the SOA RR for us. It was
27+
* successful, but found no RR for us. This means we are not at a zone cut. In this
28+
* case, we require authentication if the SOA lookup was authenticated too. */
29+
- return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
30+
+ return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
31+
}
32+
33+
return true;
34+
--
35+
2.45.2
36+

SPECS/systemd-bootstrap/fix-journald-audit-logging.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ index a8e3b175ac49..ea535a27af7f 100644
2929
+ map_all_fields(p, map_fields_kernel, "_AUDIT_FIELD_", true, iovec, &n, n + N_IOVEC_AUDIT_FIELDS);
3030

3131
server_dispatch_message(s, iovec, n, ELEMENTSOF(iovec), NULL, NULL, LOG_NOTICE, 0);
32-
32+

SPECS/systemd-bootstrap/systemd-bootstrap.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Bootstrap version of systemd. Workaround for systemd circular dependency.
22
Name: systemd-bootstrap
33
Version: 250.3
4-
Release: 17%{?dist}
4+
Release: 18%{?dist}
55
License: LGPLv2+ AND GPLv2+ AND MIT
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -48,6 +48,7 @@ Patch7: update-cifs-for-kernel-headers-6.1.patch
4848
# 5. Repeat from 2. as needed until it builds
4949
# 6. Build both systemd and systemd-bootstrap, validate the contents of systemd-rpm-macros and system-bootstrap-rpm-macros are identical
5050
Patch8: use-255-macros.patch
51+
Patch9: CVE-2023-7008.patch
5152
BuildRequires: docbook-dtd-xml
5253
BuildRequires: docbook-style-xsl
5354
BuildRequires: gettext
@@ -285,6 +286,9 @@ fi
285286
%{_datadir}/pkgconfig/udev.pc
286287

287288
%changelog
289+
* Fri May 23 2025 Akhila Guruju <[email protected]> - 250.3-18
290+
- Patch CVE-2023-7008
291+
288292
* Mon Mar 11 2024 Daniel McIlvaney <[email protected]> - 250.3-17
289293
- Split libs into their own subpackage to align with full systemd.
290294

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -579,11 +579,11 @@ sqlite-devel-3.44.0-1.azl3.aarch64.rpm
579579
sqlite-libs-3.44.0-1.azl3.aarch64.rpm
580580
swig-4.2.1-1.azl3.aarch64.rpm
581581
swig-debuginfo-4.2.1-1.azl3.aarch64.rpm
582-
systemd-bootstrap-250.3-17.azl3.aarch64.rpm
583-
systemd-bootstrap-debuginfo-250.3-17.azl3.aarch64.rpm
584-
systemd-bootstrap-devel-250.3-17.azl3.aarch64.rpm
585-
systemd-bootstrap-libs-250.3-17.azl3.aarch64.rpm
586-
systemd-bootstrap-rpm-macros-250.3-17.azl3.noarch.rpm
582+
systemd-bootstrap-250.3-18.azl3.aarch64.rpm
583+
systemd-bootstrap-debuginfo-250.3-18.azl3.aarch64.rpm
584+
systemd-bootstrap-devel-250.3-18.azl3.aarch64.rpm
585+
systemd-bootstrap-libs-250.3-18.azl3.aarch64.rpm
586+
systemd-bootstrap-rpm-macros-250.3-18.azl3.noarch.rpm
587587
tar-1.35-2.azl3.aarch64.rpm
588588
tar-debuginfo-1.35-2.azl3.aarch64.rpm
589589
tdnf-3.5.8-7.azl3.aarch64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,11 +587,11 @@ sqlite-devel-3.44.0-1.azl3.x86_64.rpm
587587
sqlite-libs-3.44.0-1.azl3.x86_64.rpm
588588
swig-4.2.1-1.azl3.x86_64.rpm
589589
swig-debuginfo-4.2.1-1.azl3.x86_64.rpm
590-
systemd-bootstrap-250.3-17.azl3.x86_64.rpm
591-
systemd-bootstrap-debuginfo-250.3-17.azl3.x86_64.rpm
592-
systemd-bootstrap-devel-250.3-17.azl3.x86_64.rpm
593-
systemd-bootstrap-libs-250.3-17.azl3.x86_64.rpm
594-
systemd-bootstrap-rpm-macros-250.3-17.azl3.noarch.rpm
590+
systemd-bootstrap-250.3-18.azl3.x86_64.rpm
591+
systemd-bootstrap-debuginfo-250.3-18.azl3.x86_64.rpm
592+
systemd-bootstrap-devel-250.3-18.azl3.x86_64.rpm
593+
systemd-bootstrap-libs-250.3-18.azl3.x86_64.rpm
594+
systemd-bootstrap-rpm-macros-250.3-18.azl3.noarch.rpm
595595
tar-1.35-2.azl3.x86_64.rpm
596596
tar-debuginfo-1.35-2.azl3.x86_64.rpm
597597
tdnf-3.5.8-7.azl3.x86_64.rpm

0 commit comments

Comments
 (0)