🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.boot
Article #182

Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https

#182
From: Cyril Brulebois
Date: Mon, 23 Nov 2026 12:10
212 lines
10955 bytes
--hwmh5gsxs3nn7iv2
Content-Type: multipart/mixed; protected-headers=v1;
	boundary="rerdg4izl4twfhpo"
Content-Disposition: inline
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0


--rerdg4izl4twfhpo
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Cyril Brulebois <kibi@debian.org> (2026-11-23):
> Regarding the implementation, we could have ca-certificates-udeb augmented
> with metadata but that would require an extra upload, so adjusting the
> build system in debian-installer looks easier. At the moment we're pulling
> this package everywhere anyway:
>=20
>     $ git grep ca-certificates-udeb
>     build/pkg-lists/base:ca-certificates-udeb
>=20
> Seeing how build/Makefile and other helpers routinely use `dpkg-deb
> --info`, I don't think it would be crazy to use `dpkg-deb --contents` to
> obtain the list of files shipped by ca-certificates-udeb and generate a
> file to be picked up for a final cleanup.

It's even easier: while we don't keep .list files, they do exist in the
working tree, and that's trivially massaged into what we need.

> I'm fine with looking into implementing this.

Please find attached two patches:
 - debian-installer.patch generates a list of certificate filenames out
   of the udeb's .list file; focusing on *.crt is sufficient as that's
   what getting copied to /target (no need to deal with symlinks,
   c_rehash, etc. as far as I can tell).
 - base-installer.patch consumes that list if it exists, logs deletions
   and executes update-ca-certificates if there are any deletions.

Building a netboot-gtk image with the first patch (plus those found in
the kibi/trixie-proposed-updates branch to give me a little preseeding
flexibility[*], using my own repository and my own signing key), then
preseeding the URL to a local repository that contains all trixie udebs
plus base-installer modified with the second patch=E2=80=A6 seems to yield =
the
desired results.

(a) The following means we use the unmodified base-installer, and that
    results in 148 certificates under /usr/local/share/ca-certificates
    (current situation):

        mirror/protocol=3Dhttps
        mirror/https/hostname=3Ddeb.debian.org
        mirror/https/directory=3D/debian
        mirror/udeb/https/hostname=3Ddeb.debian.org [*]

    I wasn't expecting any surprises here (shipping an extra file=E2=80=A6)=
, the
    goal was mainly confirming I was able to reproduce the current issue
    and use it as a comparison point.

(b) The following means we use the modified base-installer, and that
    results in a log line that mentions the 148 deletions, in an empty
    /usr/local/share/ca-certificates directory, and also confirmation
    ca-certificates.crt was refreshed (which matters every time
    ca-certificates drops certificates after the installer was built):

        mirror/protocol=3Dhttps
        mirror/https/hostname=3Ddeb.debian.org
        mirror/https/directory=3D/debian
        mirror/udeb/https/hostname=3Dapt.debamax.com [*]

    For the avoidance of doubt, full syslog output:

        # tail /var/log/installer/syslog
        Nov 23 11:39:34 finish-install: info: Running /usr/lib/finish-insta=
ll.d/90base-installer
        Nov 23 11:39:34 finish-install: I: deleted 148 official certificates
        Nov 23 11:39:34 finish-install: Updating certificates in /etc/ssl/c=
erts...
        Nov 23 11:39:35 finish-install: rehash: warning: skipping ca-certif=
icates.crt, it does not contain exactly one certificate or CRL
        Nov 23 11:39:35 finish-install: 148 added, 0 removed; done.
        Nov 23 11:39:35 finish-install: Running hooks in /etc/ca-certificat=
es/update.d...
        Nov 23 11:39:35 finish-install: done.
        Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-insta=
ll.d/90console
        Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-insta=
ll.d/94random-seed
        Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-insta=
ll.d/94save-logs

What do people think?


<disclaimer>

Building and testing restricted to the following so far (manual build of
a single target, with all components from trixie), but assuming we go
ahead with this proposed plan, we'll get more exposure via daily builds
soon enough.

    make -C build rebuild_netboot-gtk USE_UDEBS_FROM=3Dtrixie

</disclaimer>


Cheers,
--=20
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

--rerdg4izl4twfhpo
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="debian-installer.patch"
Content-Transfer-Encoding: quoted-printable

=46rom d32d4a1f14ad85a4fe1780616dc24417e654003d Mon Sep 17 00:00:00 2001
=46rom: Cyril Brulebois <kibi@debian.org>
Date: Mon, 23 Nov 2026 11:51:10 +0100
Subject: [PATCH] Generate a list of ca-certificates-udeb's certificates
 (#1151671).

This list makes it possible for base-installer to clean things up.

This hotfix is meant to be testable in unstable/testing and backportable
to stable, following established best practices; the longer term plan
for unstable/testing is to rework the implementation and documentation,
making things cleaner. At that point, this hotfix can be dropped from
unstable/testing (while being kept in stable).
---
 build/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build/Makefile b/build/Makefile
index 0f80659f2..c1110b734 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -433,6 +433,9 @@ endif
 	# base-files udeb.
 	merge-usr "$(TREE)"
=20
+	# Temporary: list filenames of official certificates for base-installer t=
o clean up in the end (#1151671)
+	awk -F/ '/\.crt/ {print $$NF}' $(TREE)/var/lib/dpkg/info/ca-certificates-=
udeb.list > $(TREE)/etc/ssl/certs/.ca-certificates-udeb.list
+
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 ifeq ($(filter $(DEB_HOST_ARCH),mips64el hppa sh4),)
 	# XXX: Compensate (at least temporarily) for kernel-image's now shipping
--=20
2.47.3


--rerdg4izl4twfhpo
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="base-installer.patch"
Content-Transfer-Encoding: quoted-printable

diff --git a/finish-install.d/90base-installer b/finish-install.d/90base-in=
staller
index c4bcd464..d0310283 100755
--- a/finish-install.d/90base-installer
+++ b/finish-install.d/90base-installer
@@ -8,3 +8,18 @@ rm -f /target/etc/apt/apt.conf.d/00NoMountCDROM \
=20
 # Copy any created static devices (as /dev was not bind mounted recursivel=
y)
 cp -a /target/dev/.static/dev/* /dev/.static/dev/ 2>/dev/null || true
+
+# Temporary: delete copies of official certificates (#1151671)
+if [ -f /etc/ssl/certs/.ca-certificates-udeb.list ]; then
+	deletions=3D0
+	for filename in $(cat /etc/ssl/certs/.ca-certificates-udeb.list); do
+		if [ -f /target/usr/local/share/ca-certificates/$filename ]; then
+			rm -f /target/usr/local/share/ca-certificates/$filename
+			deletions=3D$((deletions+1))
+		fi
+	done
+	if [ $deletions -gt 0 ]; then
+		echo "I: deleted $deletions official certificates"
+		chroot /target update-ca-certificates || true
+	fi
+fi

--rerdg4izl4twfhpo--

--hwmh5gsxs3nn7iv2
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsEKvUACgkQ/5FK8MKz
VSCmRhAAndogPTaL1QUFgODapCz7BKQ7X2Acw352YeemXTc2yA5A9nutzWKK6RmH
89CORakV9r4c6z8i6eNHU9SDW2Wm1Oz64xxRHX8u8MWgbDjXGnRdI/taul5m4E1Q
7GrUM1R9natZ1l7aMWDfMEoVuU47Dr8zYx9rurseRdJUXYJSo3maAWrrIU+rXsSL
bn0dpm7EIJTEMA9sZvHiPXM+aOWEzeNKGBHx9asuGp7lK1MrXg3km1M2kcfrjaVU
EfaOPtluZ2Hw+jr1LIQmUdlboDv25TXh9y5iQ25dGoziRsH9pIEXO65cM+OSkBfw
1PJ5hzH+hTmq+CoEky+v8Sh56Ww7OBm9mmgixZ++p4PFdEiDv1hdPvT8IhMISDMZ
PQ3TQ3292oyK1hLWYWI1l4V/5Nfh4KZK/Nv2yFUoZrQYCZn3CKRMzHzGTvbg8tt3
OBhh3EVjTWC2hpkQ82hEpAN51jb7YbN42meAg4R3FTy/guEEJJ43VOtjR5ke+jWD
P5xDTN9ZtlZpgMCef9OJl+C2kDZuwLaoo4BPI+EbJUw3WBC6/wlYypusNWAR2MkN
S6jw5PI4W4/RES1oUGCi5LHP0ZZXLmSDnd5s9FAZR64rNit3HinghhD83teniRTe
GxpZBfuw52M2Je7GYfRH37RCsl0WsojgcgQzrHfYowQdhJdUODQ=
=kmjb
-----END PGP SIGNATURE-----

--hwmh5gsxs3nn7iv2--
Technical Details
Message-ID: <O2B1T-dFj8-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NR8wh-7geS-1@gated-at.bofh.it> <NU3Tr-8TFI-1@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2dCh-dssN-5@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2xrj-dDg5-3@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2ydH-dDK1-5@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2yQp-dDZz-1@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2yQp-dDZz-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Cyril Brulebois <kibi@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.boot
Subject: Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
Date: Mon, 23 Nov 2026 13:10:01 +0100
Message-ID: <O2B1T-dFj8-5@gated-at.bofh.it>
References: <NR8wh-7geS-1@gated-at.bofh.it> <NU3Tr-8TFI-1@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2dCh-dssN-5@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2xrj-dDg5-3@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2ydH-dDK1-5@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2yQp-dDZz-1@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <O2yQp-dDZz-1@gated-at.bofh.it>
X-Original-To: 1151671@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 23 12:03:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Cyril Brulebois <kibi@debian.org>, 1151671@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-boot@lists.debian.org
X-Debian-Pr-Message: followup 1151671
X-Debian-Pr-Package: debian-installer
X-Debian-Pr-Keywords: patch security
X-Debian-Pr-Source: debian-installer
Organization: Debian
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="hwmh5gsxs3nn7iv2"
Content-Disposition: inline
X-Debian-User: kibi
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004410
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 212
Sender: robomod@news.nic.it
X-Original-Cc: Max Vozeler <xam@debian.org>
X-Original-Date: Mon, 23 Nov 2026 13:00:58 +0100
X-Original-Message-ID: <20261123112111.GF1120133@mraw.org>
X-Original-References: <atp-HCgA7n5xKZmL@layer-acht.org> <e1036617-3022-4583-92cf-70926cd4b8ab@plouf.fr.eu.org> <atp-HCgA7n5xKZmL@layer-acht.org> <1b1ca2f7-4278-4dec-a6b2-fbf2af831d82@plouf.fr.eu.org> <atp-HCgA7n5xKZmL@layer-acht.org> <awP05GEjQzcl0ez_@dp.vpn.hinterhof.net> <atp-HCgA7n5xKZmL@layer-acht.org> <20261123084538.GC1120133@mraw.org> <atp-HCgA7n5xKZmL@layer-acht.org> <20261123091521.GE1120133@mraw.org> <atp-HCgA7n5xKZmL@layer-acht.org> <20261123091521.GE1120133@mraw.org>