🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
14 messages
14 total messages Started by Holger Levsen Thu, 22 Oct 2026 21:30
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#1685
Author: Holger Levsen
Date: Thu, 22 Oct 2026 21:30
86 lines
4812 bytes
--kln1Gc5XaPp8pXK8
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

package: debian-installer
severity: important
x-debbugs-cc: xam@debian.org

On Thu, Oct 22, 2026 at 04:18:45PM +0200, Max Vozeler wrote:
> Hi everyone,
>=20
> I just found this on a customer's systems, which were originally
> installed using d-i from an https mirror:
>=20
> /usr/local/share/ca-certificates contained copies of all CA certs from
> ca-certificates-udeb as of installation time, including the compromised
> "emSign ECC Root CA - G3" and "Comodo AAA Services root" certs.
>=20
> These will continue to be trusted even after upgrade of ca-certificates
> to the fixed version (!)
>=20
> I think this comes from:
> https://salsa.debian.org/installer-team/base-installer/-/blob/master/debi=
an/bootstrap-base.postinst?ref_type=3Dheads#L174
>=20
> 	# If we need SSL certificates, copy them in now.
> 	if [ "$PROTOCOL" =3D "https" -o "$mirror_protocol" =3D "https" ] && [ -d=
 /etc/ssl/certs ]; then
> 		if find /etc/ssl/certs/ -name \*.crt | grep -q .; then
> 			mkdir -p /target/usr/local/share/ca-certificates
> 			cp -a /etc/ssl/certs/*.crt /target/usr/local/share/ca-certificates/
> 			chroot /target update-ca-certificates || true
> 		fi
> 	fi
>=20
> Please check your /usr/local/share/ca-certificates and ensure that it is
> empty or only includes CA certs that you meant to put there.
>=20
> I haven't filed a bug on base-installer yet; I will try to that tomorrow
> if noone beats me to it.
>=20
> Best regards,
> Max
>=20


--=20
cheers,
	Holger

 =E2=A2=80=E2=A3=B4=E2=A0=BE=E2=A0=BB=E2=A2=B6=E2=A3=A6=E2=A0=80
 =E2=A3=BE=E2=A0=81=E2=A2=A0=E2=A0=92=E2=A0=80=E2=A3=BF=E2=A1=81  holger@(d=
ebian|reproducible-builds|layer-acht).org
 =E2=A2=BF=E2=A1=84=E2=A0=98=E2=A0=B7=E2=A0=9A=E2=A0=8B=E2=A0=80  OpenPGP: =
B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 =E2=A0=88=E2=A0=B3=E2=A3=84

"more than half of the world=E2=80=99s food production will be at risk of f=
ailure in
 the next 25 years"
https://www.theguardian.com/environment/2025/jul/02/\
droughts-worldwide-pushing-tens-millions-starvation-report

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

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

iQIzBAABCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmrafhYACgkQCRq4Vgaa
qhzFHg/+NsZAU/RImykiJcm5jHMTmTOU11tnEyi1LYAJE54/jtplFKsX3G4ePtD4
Mvj+QGc3W+77ItfSvVTx+zKh4x4ptWIYip8Qpa2eV1Y9IvWG0ZxQGiRrNu3uD35l
/9XuAj0ap2zld1GN18lcCkGod1nYgHDYYsaQQEocT2BBgWxpcV93/e7gwpqyKjyE
xuNHG6HfHUUaiz+Xnr1tiUkLmqCSOdaE23pIQRzb+m30kXvcwkG9NpeeWj7I4w6z
gz/L3/4g+QQPc+K3KUJTe8lbe7IALzVcRDxCSN03ySNKUTfJ0rpnconWcmo5r1hn
+nE8dLAfs014S/uAivnSqb0W2jsKtBm8mtiNOh+oFaVppsanbsBCdSBhFKzy4aSF
9H+JXrLWNx2f4IMMsGHuROSiZswt6/QBVWwWrkSl0u1fjdr7OLBSwHoNiEEMwbuY
WieWWvNzajvajSggyvS0A/IDmhNH1ZGnbeue86XBinToi8IeTVDtLR55O97RCsNl
t0MkFTmv8IXFYaDyv4daWDdH1L+Xo6zRJpcPIo4n1mI+A7grVkADdTKHzUzbIIpC
0/jifDv1ieCZvkvl2TXwRMx42Kn9z1lSEwuN0i+SK1H3KQh7qF3XZYvCo65m1Yvr
W8JTR3qkrhY/FaHrD2UImbWDZsO8FI+IlpYTzhamv67/BH5X7pQ=
=x/sn
-----END PGP SIGNATURE-----

--kln1Gc5XaPp8pXK8--
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#2569
Author: Pascal Hambourg
Date: Thu, 29 Oct 2026 20:30
26 lines
3208 bytes
[bug mail address fixed]

On 29/10/2026 at 16:57, Cyril Brulebois wrote:
> Max Vozeler <xam@debian.org> (2026-10-28):
>>
>> For custom CAs, (...) I'd tend to just remove the
>> copying from base-installer and leave it to the preseeder to include
>> e.g. a suitable late_command to copy over the certs into /target.
>>
>> (That's what I've been doing in my preseeding setups)
> 
> I haven't followed the initial development, or documentation efforts,
> but if dropping the whole copy altogether and letting users deal with
> whatever's needed in /target… is something you're comfortable with,
> while also wearing a preseed user hat, then that looks like a nice plan.

Do you see any case where it might be complicated, inconvenient or 
impossible to preseed the copying of custom CA certificates ?

If yes, an option would be for bootstrap-base.postinst to not copy 
certificates which are provided by ca-certificates-udeb. I guess it 
would require to ship a list of these certificates or their hashes, 
either provided by ca-certificates-udeb or generated when building the 
d-i image.

Otherwise, let's just remove the copying.
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#2574
Author: Steve McIntyre
Date: Thu, 29 Oct 2026 20:40
32 lines
3833 bytes
On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
>[bug mail address fixed]
>
>On 29/10/2026 at 16:57, Cyril Brulebois wrote:
>> Max Vozeler <xam@debian.org> (2026-10-28):
>> > 
>> > For custom CAs, (...) I'd tend to just remove the
>> > copying from base-installer and leave it to the preseeder to include
>> > e.g. a suitable late_command to copy over the certs into /target.
>> > 
>> > (That's what I've been doing in my preseeding setups)
>> 
>> I haven't followed the initial development, or documentation efforts,
>> but if dropping the whole copy altogether and letting users deal with
>> whatever's needed in /target… is something you're comfortable with,
>> while also wearing a preseed user hat, then that looks like a nice plan.
>
>Do you see any case where it might be complicated, inconvenient or impossible
>to preseed the copying of custom CA certificates ?
>
>If yes, an option would be for bootstrap-base.postinst to not copy
>certificates which are provided by ca-certificates-udeb. I guess it would
>require to ship a list of these certificates or their hashes, either provided
>by ca-certificates-udeb or generated when building the d-i image.

Couldn't we just copy those then clear them out as part of the
post-installation step? Wouldn't that be an easy fix?

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
Into the distance, a ribbon of black
Stretched to the point of no turning back
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#2580
Author: Steve McIntyre
Date: Thu, 29 Oct 2026 22:00
17 lines
3093 bytes
On Thu, Oct 29, 2026 at 10:24:14PM +0100, Cyril Brulebois wrote:
>Steve McIntyre <steve@einval.com> (2026-10-29):
>> On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
>> >[bug mail address fixed]
>
>But everyone else dropped?
>
>> Couldn't we just copy those then clear them out as part of the
>> post-installation step? Wouldn't that be an easy fix?
>
>I think I suggested that in my first reply last week?

Sorry, could have been clearer - I'm agreeing with you! :-)

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"C++ ate my sanity" -- Jon Rabone
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#2583
Author: Max Vozeler
Date: Thu, 29 Oct 2026 22:40
57 lines
4772 bytes
On Thu, Oct 29, 2026 at 08:32:31PM +0000, Steve McIntyre wrote:
> On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
> >[bug mail address fixed]

D'oh! Thanks :)

> >Do you see any case where it might be complicated, inconvenient or impossible
> >to preseed the copying of custom CA certificates ?

Yes. I tested without the copying code in bootstrap-base.postinst:

(a) an https mirror with a certificate signed by a CA included in
ca-certificates. Install completed fine.

(b) an https mirror that needs a custom CA. This worked for
install_base_system but failed in apt_update. It turns copying *is*
required in this case and doing it in late_command is too late.

The reason my preseeding setup worked was precisely because of the
copying - not because of my late_command as I thought.

> >If yes, an option would be for bootstrap-base.postinst to not copy
> >certificates which are provided by ca-certificates-udeb. I guess it would
> >require to ship a list of these certificates or their hashes, either provided
> >by ca-certificates-udeb or generated when building the d-i image.
> 
> Couldn't we just copy those then clear them out as part of the
> post-installation step? Wouldn't that be an easy fix?

How would we identify the certs to be cleared out though? This seems
non-trivial and potentially error prone - or am I just not seeing the
easy solution?

What if we instead mirror what ca-certificates does and require any
custom CA certificates to be in /usr/local/share/ca-certificates in the
installer and then copy that into /target?

Getting the custom certificate into the installer already requires
creating the hash symlink in /etc/ssl/certs manually for lack of openssl
rehash / c_rehash:

d-i preseed/early_command string \
    somehow_create /etc/ssl/certs/XXX.crt; \
    ln -s /etc/ssl/certs/XXX.crt /etc/ssl/certs/HHHHHHHH.0;

Or building the hash symlink into the image itself along with the
certificate. That would be no more difficult if we required the certs to
be in /usr/local/share/ca-certificates:

d-i preseed/early_command string \
    somehow_create /usr/local/share/ca-certificates/XXX.crt; \
    ln -s /usr/local/share/ca-certificates/XXX.crt /etc/ssl/certs/HHHHHHHH.0;

Thoughts?

Best regards,
Max
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#2727
Author: Pascal Hambourg
Date: Fri, 30 Oct 2026 23:10
71 lines
5842 bytes
On 29/10/2026 at 23:26, Max Vozeler wrote:
> On Thu, Oct 29, 2026 at 08:32:31PM +0000, Steve McIntyre wrote:
>> On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
> 
>>> Do you see any case where it might be complicated, inconvenient or impossible
>>> to preseed the copying of custom CA certificates ?
> 
> Yes. I tested without the copying code in bootstrap-base.postinst:
> 
> (a) an https mirror with a certificate signed by a CA included in
> ca-certificates. Install completed fine.
> 
> (b) an https mirror that needs a custom CA. This worked for
> install_base_system but failed in apt_update. It turns copying *is*
> required in this case and doing it in late_command is too late.

Yes, preseed/late_command is triggered way too late to copy custom 
certificates. It would require to trigger a command right after the 
bootstrap base installation, before using apt-install to download the 
kernel package and additional packages from the mirror.

>>> If yes, an option would be for bootstrap-base.postinst to not copy
>>> certificates which are provided by ca-certificates-udeb. I guess it would
>>> require to ship a list of these certificates or their hashes, either provided
>>> by ca-certificates-udeb or generated when building the d-i image.
>>
>> Couldn't we just copy those then clear them out as part of the
>> post-installation step? Wouldn't that be an easy fix?
> 
> How would we identify the certs to be cleared out though? This seems
> non-trivial and potentially error prone - or am I just not seeing the
> easy solution?

Maybe by comparing them with certificates installed by ca-certificates ?
I agree, this is non-trivial and error-prone. For example if the mirror 
has a ca-certificates version newer than the ca-certificates-udeb used 
in the installation image and a compromised certificate was removed from 
the newer version, then this certificate would not be removed from the 
target system, unless ca-certificates has a purging mechanism such as 
proposed in your merge request 18.

> What if we instead mirror what ca-certificates does and require any
> custom CA certificates to be in /usr/local/share/ca-certificates in the
> installer and then copy that into /target?
> 
> Getting the custom certificate into the installer already requires
> creating the hash symlink in /etc/ssl/certs manually for lack of openssl
> rehash / c_rehash:
> 
> d-i preseed/early_command string \
>      somehow_create /etc/ssl/certs/XXX.crt; \
>      ln -s /etc/ssl/certs/XXX.crt /etc/ssl/certs/HHHHHHHH.0;
> 
> Or building the hash symlink into the image itself along with the
> certificate. That would be no more difficult if we required the certs to
> be in /usr/local/share/ca-certificates:
> 
> d-i preseed/early_command string \
>      somehow_create /usr/local/share/ca-certificates/XXX.crt; \
>      ln -s /usr/local/share/ca-certificates/XXX.crt /etc/ssl/certs/HHHHHHHH.0;
> 
> Thoughts?
It looks like a good idea to me. Separating default and custom 
certificates would be cleaner and AFAICS without any added complexity 
into d-i nor for users.

Also, the copying could be made unconditional regardless of whether a 
https mirror was selected or preseeded: if custom certificates are 
present, it must be for a reason. It could be something like this:

<https://salsa.debian.org/pham/base-installer/-/commit/6854a72b0e77>
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#5460
Author: Pascal Hambourg
Date: Sun, 22 Nov 2026 11:10
19 lines
3394 bytes
Control: tags -1 patch

On 31/10/2026 at 00:03, Pascal Hambourg wrote:
> On 29/10/2026 at 23:26, Max Vozeler wrote:
> 
>> What if we instead mirror what ca-certificates does and require any
>> custom CA certificates to be in /usr/local/share/ca-certificates in the
>> installer and then copy that into /target?
> 
> It looks like a good idea to me. Separating default and custom 
> certificates would be cleaner and AFAICS without any added complexity 
> into d-i nor for users.
> 
> Also, the copying could be made unconditional regardless of whether a 
> https mirror was selected or preseeded: if custom certificates are 
> present, it must be for a reason.

MR opened: 
<https://salsa.debian.org/installer-team/base-installer/-/merge_requests/15>
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#5696
Author: Max Vozeler
Date: Mon, 23 Nov 2026 08:20
22 lines
3279 bytes
Control: retitle -1 debian-installer: copying udeb CAs to /usr/local keeps removed root CAs trusted
Control: tags -1 security

Should this be Severity critical/serious?

On Sun, Nov 22, 2026 at 12:06:06PM +0100, Pascal Hambourg wrote:
> On 31/10/2026 at 00:03, Pascal Hambourg wrote:
> > It looks like a good idea to me. Separating default and custom
> > certificates would be cleaner and AFAICS without any added complexity
> > into d-i nor for users.
> > 
> > Also, the copying could be made unconditional regardless of whether a
> > https mirror was selected or preseeded: if custom certificates are
> > present, it must be for a reason.
> 
> MR opened:
> <https://salsa.debian.org/installer-team/base-installer/-/merge_requests/15>

Thanks Pascal! I think that's a good solution.

Best regards,
Max
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#5708
Author: Cyril Brulebois
Date: Mon, 23 Nov 2026 09:10
90 lines
6157 bytes
--blmqua3fk7rgs64t
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0

Hallo Max,

Max Vozeler <xam@debian.org> (2026-11-23):
> Control: retitle -1 debian-installer: copying udeb CAs to /usr/local keep=
s removed root CAs trusted
> Control: tags -1 security
>=20
> Should this be Severity critical/serious?

I'm not sure how much that would change from a security or release team
point of view (possibly on the communication/perception from the outside
front?), but either of those would make that eligible for fixing in
stable (we've been known to fix even =E2=80=9Cjust important=E2=80=9D bugs =
anyway).

What worries me is the behavorial change, and the required documentation.
Given the impacts of this issue, I think it would make sense not to
maintain the status quo and to require people to update their config.

Thinking out loud a little more: assuming we have proper documentation
in place (including a dedicated stanza in the point release announcement
maybe), people who wouldn't do anything in the first place would
suddenly be missing certificates, look around, and update their config.
Slightly annoying, but workable, I think?

> On Sun, Nov 22, 2026 at 12:06:06PM +0100, Pascal Hambourg wrote:
> > On 31/10/2026 at 00:03, Pascal Hambourg wrote:
> > > It looks like a good idea to me. Separating default and custom
> > > certificates would be cleaner and AFAICS without any added complexity
> > > into d-i nor for users.
> > >=20
> > > Also, the copying could be made unconditional regardless of whether a
> > > https mirror was selected or preseeded: if custom certificates are
> > > present, it must be for a reason.

Color me convinced.

> > MR opened:
> > <https://salsa.debian.org/installer-team/base-installer/-/merge_request=
s/15>
>=20
> Thanks Pascal! I think that's a good solution.

I know you've already put quite some time and effort into this, so
feel free to tell me off if that's too much: are you in a position to
hotfix a stable installer and see if that works fine in your use case?
Otherwise I'll try and block some time for that.

Of course, nothing stops us from uploading to unstable and toying with
daily builds, but given the existing doubt regarding eligibility (see
above), I'd rather make extra sure the technical side is rock-solid.

Vielen Dank!


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

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

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

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsEAIYACgkQ/5FK8MKz
VSAa/g/7B0qo1cPgV9s1SNmdQ2mg34P30/q/GxVzkfYmVP+QLPh6+AYM/qV1R346
6t0v0UkYNhpZFaAPewddENgW0JPK4qM3MP9I3UrHG6E7uynTsnru5fRqzFL17jHI
UJERl/8ZR55ls9mPj/dpAYDkoWwyhxvJImR4q7NV/5deiEThPvtgIZxn49QAoUrK
OmJGJRWk24kY9HR4zV92vtpa0B/PUtCl95x120xSQHpB0xh9l4Dt9k0BTuG+YQZG
h6XDtC4G3nojuN9iaJ63d/lR0GSHqXU5sqLmSuOCt3xezAHnqEHz0PtFMkrJyXMj
Ng8MPK/NRd7Q3ke6vFuxeVzvShEstJfIr2HXugev4iW57WJan3GZ85l1Wjh2+8Ji
swqyR7Yamrp1qMx7OXE2nRslGWRdmJJyCiM6F8kau6SxC5J6bj9n1Ta04XAQYpB2
jOXaB8ax5RZcjWlqiuZMxevyT0sa+NPVfRV520MwwMji1wBKOooDhM1to8XEX8EK
68W1SxtxazpT9olZD5FvKXO9GtjCHTXHqzD69AUw77oZ0TY94kLmTsfr015//WCg
o1p2OPSdfW1ekrilr2mfsbbTD7zSnsd68EYha2vQE7PzZq43LCJrOML3s3TsK4gE
2uyqPU3j9QM5B2xxLWWqJHcPCD5ax0XGeu74fk7WCQSDIfHqpCw=
=RO2T
-----END PGP SIGNATURE-----

--blmqua3fk7rgs64t--
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#5714
Author: Cyril Brulebois
Date: Mon, 23 Nov 2026 09:50
103 lines
7161 bytes
--qz7x2iungwj73zcb
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0

Cyril Brulebois <kibi@debian.org> (2026-11-23):
> What worries me is the behavorial change, and the required documentation.
> Given the impacts of this issue, I think it would make sense not to
> maintain the status quo and to require people to update their config.
>=20
> Thinking out loud a little more: assuming we have proper documentation
> in place (including a dedicated stanza in the point release announcement
> maybe), people who wouldn't do anything in the first place would
> suddenly be missing certificates, look around, and update their config.
> Slightly annoying, but workable, I think?

The more I think about this, the more I feel in =E2=80=9Cquite uncomfortabl=
e=E2=80=9D
territory=E2=80=A6 especially since we have an alternate way to deal with t=
his
that doesn't rely on introducing a behavorial change in stable=E2=80=A6

My current preference would be something along those lines:
 - Introduce whatever changes we want in unstable/testing to make the
   situation and implementation clearer in the future (Pascal's proposal),
   also making sure to update documentation as needed, and also some code
   (see SSL_CERTS in src:debian-installer).
 - Minimally-patch the stable installer to avoid this issue, without
   changing anything else.

I'm also quite unhappy with the unstable/testing versus stable divergence
but not requiring users to update their config seems worth it to me.


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:

    $ git grep ca-certificates-udeb
    build/pkg-lists/base:ca-certificates-udeb

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.

I'm fine with looking into implementing this.


To be clear, I'm absolutely not meaning to insist on what was my initial
reaction, but at least Steve was thinking the same way, Pascal mentioned
we would have to be careful and keep track of ca-certificates-udeb files,
which this approach would address (not sure yet whether filenames are
sufficient or whether we should look the contents as well; I think the
former may be good enough)=E2=80=A6 and if that makes sense to everyone, we
would hit the pause button on Pascal's MR for now, deploy the changes to
src:debian-installer's git repository which would make them testable via
daily builds (even if a release is long overdue, and on my short term
list, but that's another story), together with an updated base-installer
package.

That would resolve the =E2=80=9Cunstable/testing versus stable=E2=80=9D div=
ergence (the
former via daily builds and/or via an actual release), and once the hotfix
is confirmed and backported to stable, Pascal's MR can be merged on top of
it, and the hotfix can be phased out (at the same time or later, combining
both shouldn't hurt).


Does that make sense?


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

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

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

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsECbsACgkQ/5FK8MKz
VSAVQQ//aiEQCMImwjDkoFY+U+tlBgGtuJNrhWfqGOQwqOjJgr1H6ihWpQCGiUH3
OngIBCRwGx/ESfHKCoxeOXeb/Xa79Z+NU1bnaHcsKJ205NeQvI94XjEP60age8BU
EGtMzmYvzStG8bOJQNSS7eWpFuIkQgL499TF5h24NRouYskp3oWENTy1AVaFKnWi
M5G3t7cFzWIPQN++wzyDUaiBVADx5w6T1F+E/dn3FguRSSBKgswZ24L4Diskwm8t
4qRhvPYIVncGbbDMSKwCbrPDYjbStzExuHFJxTyl3WJo+uQJwPEJptt9GZsCENuq
t28sltDvcxmTNPI1jBK9GyAxKUEDOl4Kr+yon04oLD+b9MJEfOw3K0lmT4q3gW/p
uwi89ksxJS6Kl6RgYcDWuMeIzioOD5Hc/911lZ4QrPRkL21iUXtkJaT9YxWvWv65
PDvbSVCpoJ2ZSdL43VH+H8s1WOPORFwdxNFjBQvNDeCRqqKGeyadZvimj3ZudwQ6
ixRjgzH//bBMkGDrbp35pWFL7sHKSlTI9yGWegvgM3z9v3Vqdh1dEq/sAVlz1hFL
n/5HcBonND0pS5apyIqV+6f7hgPvshG3Y5CFcXZXTruLgVFMUEbhR3VVJOBy0Pxv
82BWkNCEc6OkGMB5i2uHrMWloFQX4+sGe0KgXzDm8RZ2xED33w8=
=9NvM
-----END PGP SIGNATURE-----

--qz7x2iungwj73zcb--
Bug#1151671: debian-installer: copying udeb CAs to /usr/local keeps removed root CAs trusted
#5730
Author: Max Vozeler
Date: Mon, 23 Nov 2026 11:40
49 lines
4858 bytes
Hi Cyril,

On Mon, Nov 23, 2026 at 10:39:11AM +0100, Cyril Brulebois wrote:
> My current preference would be something along those lines:
>  - Introduce whatever changes we want in unstable/testing to make the
>    situation and implementation clearer in the future (Pascal's proposal),
>    also making sure to update documentation as needed, and also some code
>    (see SSL_CERTS in src:debian-installer).
>  - Minimally-patch the stable installer to avoid this issue, without
>    changing anything else.

> 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.

Agreed, it seems worth the effort and added complexity to avoid the
change in behaviour in stable. FWIW, my preseeding setup would have been
broken by and needed adjustment for the "proper" fix.

> I'm fine with looking into implementing this.
> 
> To be clear, I'm absolutely not meaning to insist on what was my initial
> reaction, but at least Steve was thinking the same way, Pascal mentioned
> we would have to be careful and keep track of ca-certificates-udeb files,
> which this approach would address (not sure yet whether filenames are
> sufficient or whether we should look the contents as well; I think the
> former may be good enough)… and if that makes sense to everyone, we
> would hit the pause button on Pascal's MR for now, deploy the changes to
> src:debian-installer's git repository which would make them testable via
> daily builds (even if a release is long overdue, and on my short term
> list, but that's another story), together with an updated base-installer
> package.
> 
> That would resolve the “unstable/testing versus stable” divergence (the
> former via daily builds and/or via an actual release), and once the hotfix
> is confirmed and backported to stable, Pascal's MR can be merged on top of
> it, and the hotfix can be phased out (at the same time or later, combining
> both shouldn't hurt).
> 
> Does that make sense?

It does to me. Happy to help test/review any changes.

I'll focus on completing the work on ca-certificates postinst to clean
up existing installations.

Best regards,
Max
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#5734
Author: 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--
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#5902
Author: Pascal Hambourg
Date: Tue, 24 Nov 2026 09:10
12 lines
3381 bytes
On 23/11/2026 at 13:00, Cyril Brulebois wrote:
> 
> 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.

Maybe a dumb question, but why delete certificates after copying them 
rather than not copying them in the first place ?
Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
#5912
Author: Cyril Brulebois
Date: Tue, 24 Nov 2026 10:50
67 lines
5458 bytes
--uvvgclfu76q7yx34
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Bug#1151671: DSA 6572-1 may be ineffective for systems installed
 w/ d-i from https
MIME-Version: 1.0

Pascal Hambourg <pascal@plouf.fr.eu.org> (2026-11-24):
> On 23/11/2026 at 13:00, Cyril Brulebois wrote:
> >=20
> > 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.
>=20
> Maybe a dumb question, but why delete certificates after copying them
> rather than not copying them in the first place ?

As usual, especially when it's about something (1) temporary and (2)
meant for stable, simplicity and low risk are at the top of my list.

Of course, I could implement =E2=80=9Ccopy these but not those=E2=80=9D but=
 that means
higher chances of getting something wrong, also not being able to test
everything still works fine when certificates are added (I don't have
such a setup at the moment, and I'm happy not to work on adding one),
also breaking the context for your merge request, just to avoid copying
then deleting < 1 MB worth of certificate to /target?

The goal is not to have those certificates in the end, I think those
patches achieve those goals, and I'm not sure we need to come up with
the most optimal or beautiful solution. If that was about the long-term
solution, rathen than about a short-term hotfix, that'd be a different
discussion.


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

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

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

iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmsFah8ACgkQ/5FK8MKz
VSCH3BAAmxz+5MsFNz5HuhrO2q3CZ1RJu1G4d5miqFGnVM9dFIOiBVXBCwTJ12MG
R3t/CjXwRO3Iip9mLyRMKYWV4Q2suBRyut/isGOFumjA9wSiC2ozkPtkT8wJslvs
kGL9glrvIPzaWSjY+t1i1nSigqoMpI58l+CZYinFJzZ8zzYq+Q5Hhil1LHnI57Bw
ruYwPiNwe+OBbKlieVkdvc5YPOS9vqNIbnLCujImFsWFFeUTZCk9Ygyl0lwwtaIt
NVA53E0FGSkfZzSkN46L6FiIAxEArqUZXE+a6OyUStIgz4j7k+AJPB4+lsV/9aD8
qHGIYNYF+bYsYwv1mlZWG1yRSqaibQo6Uyt811ucuO8Nt3Z7DjIruOAliLbKX6v3
uXup2oem8pVLoHilGATi56iPtmVu3pgyFJ20QRiiDVQelLhX4rofilOgGx5F/LYr
hHWAx9aVsrh3LZZ++NgmkpIZIgOjYnPCqYVpnsBDp3w2S2ao2bkln5b4C3qMzupF
G6P6pr3S+2F9APNthrZQVA+dG1Jdfkn5acw13t0lo28uOd0oRl7QjjF5OrCB0A1C
X0powcBEJCNtPii3/Nc79pfEqdgi6v7ZjXNLv4E1gZc0+LnlHVfbUx5Q8BVJIuj+
hJFrms2GIO8yZtFsyn4YP1gDXYoKH0twwD4R1of0LI8/Z05JTSY=
=DhfG
-----END PGP SIGNATURE-----

--uvvgclfu76q7yx34--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads