Thread View: linux.debian.security
4 messages
4 total messages
Started by Max Vozeler
Thu, 22 Oct 2026 14:30
DSA 6572-1 may be ineffective for systems installed w/ d-i from https
Author: Max Vozeler
Date: Thu, 22 Oct 2026 14:30
Date: Thu, 22 Oct 2026 14:30
32 lines
2777 bytes
2777 bytes
Hi everyone, I just found this on a customer's systems, which were originally installed using d-i from an https mirror: /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. These will continue to be trusted even after upgrade of ca-certificates to the fixed version (!) I think this comes from: https://salsa.debian.org/installer-team/base-installer/-/blob/master/debian/bootstrap-base.postinst?ref_type=heads#L174 # If we need SSL certificates, copy them in now. if [ "$PROTOCOL" = "https" -o "$mirror_protocol" = "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 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. I haven't filed a bug on base-installer yet; I will try to that tomorrow if noone beats me to it. Best regards, Max
Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
Author: Cyril Brulebois
Date: Thu, 22 Oct 2026 14:50
Date: Thu, 22 Oct 2026 14:50
97 lines
5620 bytes
5620 bytes
--oht4vev4un6s56pb Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https MIME-Version: 1.0 Hi Max, Max Vozeler <xam@debian.org> (2026-10-22): > 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. Ouch. That seems to date back to the original implementation (all the way back to 2014), so this isn't an exactly recent change/regression of some kind=E2=80=A6 Somewhat good news (maybe): it seems the default deb.debian.org that's getting offered still leads to an HTTP-only (not HTTPS) installation and we don't hit that particular code path. So we're not talking about most installations' being misconfigured/vulnerable in this way (if this laptop installed with D-I Trixie RC 3 is indeed representative of Debian 13 systems). Where and how to go from here isn't entirely clear to me at this point. Wild guess, if we still need that manual copy/deployment in this specific location, we could still have some kind of cleanup some finish-install script, that would get rid of all files that are (currently) shipped by ca-certificates, so that we only keep any =E2=80=9Cr= eally local=E2=80=9D certificates in there on the long run? Also, maybe I could have caught that when I hacked together commits ee95d8a89a0a and 7a79b4556436=E2=80=A6 :( Is deploying ca-certificates at t= his point sufficient to make the manual copy of the whole directory's contents moot? Help more than welcome! Cheers, --=20 Cyril Brulebois (kibi@debian.org) <https://debamax.com/> D-I release manager -- Release team member -- Freelance Consultant --oht4vev4un6s56pb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmraIkUACgkQ/5FK8MKz VSD57g/8CNcNnlsqI9/vSTjMBcI7rsiPjnHCwdYnqC/n3npyuUK6oht54R526uQn CczpxXDTpQ8WlOm3eDCc1Ee5iZN1jVsiTxxKPV3WPiNyS2OtobJYqwC8PyiaLRjK gBzJ0AwbmkjyjntyrChNqaIa+HckmCeegJ3rB97bJb1u5kv1mxB9/4JlOh6qeXMt 7HQjtdlAgjwL8rFnLoJAY3DIZp5lhgm6B/2ibbwXLZ16coMFi8fUdSPlrcEaDVhq 0cUx72S5Cjk9C2SYOdl1vG2O2DvI8aLFc6Lo1kBt2kcDUrbzZoGsN4sYWg7xJ/CE nA9Dh2lM0l3aFLn5f4ndmhWOqq9bNsjByGK5EYzUxynXG17Zr+8wCMiSePxZZTAt HkwqeoY6oKJlI5hw7DhB/tAdqTSOgIBLabzgSLZKt+DSQOOk4Jta+XurM0WLdb1X cXZDaKo6X5HN3EjJ/wrZownU3jZbsP/UabyomczidsUL6QnFcRar+OkucDggLfch tVxCSNwESXbDSL2sRFgTez8AkENMCm+eBcrNStGzKhMarUYkgcZulmYteG/XS8WC 7FDEVG2xftwppK8NBy+ism2uNjeOfGoHAh5youehK2gNN3ehAz8xMXZ1pPOQv/mg z9AMcvQYHwZWxe5LMCydoJH0qeLE8sk7kg5kiUYT8Zv+fV3ryoY= =rrK8 -----END PGP SIGNATURE----- --oht4vev4un6s56pb--
Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
Author: Cyril Brulebois
Date: Thu, 22 Oct 2026 15:20
Date: Thu, 22 Oct 2026 15:20
65 lines
4519 bytes
4519 bytes
--pb7q63gshwceyjsi Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https MIME-Version: 1.0 Cyril Brulebois <kibi@debian.org> (2026-10-22): > Where and how to go from here isn't entirely clear to me at this point. >=20 > Wild guess, if we still need that manual copy/deployment in this > specific location, we could still have some kind of cleanup some > finish-install script, that would get rid of all files that are > (currently) shipped by ca-certificates, so that we only keep any =E2=80= =9Creally > local=E2=80=9D certificates in there on the long run? >=20 > Also, maybe I could have caught that when I hacked together commits > ee95d8a89a0a and 7a79b4556436=E2=80=A6 :( Is deploying ca-certificates at= this > point sufficient to make the manual copy of the whole directory's > contents moot? Of course, this is merely about trying to prevent this issue from happening in future d-i releases=E2=80=A6 As for remediating the issue on already-deployed systems, should there be something (in ca-certificates?) that would get rid of certificates that are known to be problematic? Something like using the blocklist for /usr/local/ as well? It's been a long while since I last looked at implementation details, so I'm not sure whether that'd be easily doable (or doable at all), even if there was a consensus. (All of this reminds me that there wasn't much feedback on #1142266, which is another story yet somewhat related.) Cheers, --=20 Cyril Brulebois (kibi@debian.org) <https://debamax.com/> D-I release manager -- Release team member -- Freelance Consultant --pb7q63gshwceyjsi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmraJ34ACgkQ/5FK8MKz VSCtUxAApvGLOjI5EDyxXNwPQRPeul17BfCM6ppygWixA93Ziw188fTrTxAfb574 dTC8D9KiWjxj1RC3wXudW9jFY0qPf2UuRqXghPPEbJ44xCgws7kQsxoh4DYGgbdj KvL6eXAawwskemK/ILJcDOxa45Q+vlf0BlsyUrOFkkeLYHL5fLIHqs8g9dqqUol7 u9VPholjDE7r9Ml5oG22x/HKQHl4EV3qo4yNbRUDZpNjyQZDBFvL6CaLEOMxX/0k +yLVsYTEqg2WXDerlyx/jKOO9TpnQUvkrcxsemlOUlEuw1DCh+q4jci3Pz4dPQTB WStg+M6FRQvPUT6KbuCenVXEUrnKDWP9mRGfvClP8Zzdp+oIWi8x/vnM/INUGnrB u+w12vvpQYolBvGl+YcsrnAfN/hzRRgw/74iJM3K5i0cm0bV1kJ6nre8qBPnjYXh ioaooQlmFDBSeLLy5SH6sAMdHefJtk49/mfh6+YXXpNET/uHDpfMe5a0cMoVUDj8 W4/fTzyhnA3/YIrxaqafrdwGjs5eiDERnLKwmo4256TfUxkmKVRi9XQZyjmnZkRI wb0LvffaZyJx+zmzHHCMilISpkhViLeoc09CjgpLOBVMoM44Qav3d71xoSX5YrdY uhXYEZZPYW+ikd1supcCEm3WAG0k4pEgsaORol19s7C+sm6CXag= =ajX6 -----END PGP SIGNATURE----- --pb7q63gshwceyjsi--
Re: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
Author: Max Vozeler
Date: Wed, 28 Oct 2026 19:50
Date: Wed, 28 Oct 2026 19:50
46 lines
3992 bytes
3992 bytes
Hi Cyril, all, On Thu, Oct 22, 2026 at 05:10:59PM +0200, Cyril Brulebois wrote: > Cyril Brulebois <kibi@debian.org> (2026-10-22): > > Where and how to go from here isn't entirely clear to me at this point. > > > > Wild guess, if we still need that manual copy/deployment in this > > specific location, we could still have some kind of cleanup some > > finish-install script, that would get rid of all files that are > > (currently) shipped by ca-certificates, so that we only keep any “really > > local” certificates in there on the long run? Pascal's testing seems to confirm that the copying is not required for the regular case - https mirror or https preseed URL covered by the CAs in ca-certificates. For custom CAs, did we ever document how to include them in d-i in a way that we should try to support going forward? A cursory search didn't bring up any documentation. If not, 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) > Of course, this is merely about trying to prevent this issue from > happening in future d-i releases… > > As for remediating the issue on already-deployed systems, should there > be something (in ca-certificates?) that would get rid of certificates > that are known to be problematic? Something like using the blocklist > for /usr/local/ as well? It's been a long while since I last looked at > implementation details, so I'm not sure whether that'd be easily doable > (or doable at all), even if there was a consensus. This has been in the back of my head all week. I think ca-certificates can and should purge these cert copies. I've opened a draft MR on salsa https://salsa.debian.org/debian/ca-certificates/-/merge_requests/18 and asked Julien (CCed) for thoughts. Still details to be hashed out. > (All of this reminds me that there wasn't much feedback on #1142266, > which is another story yet somewhat related.) Ouch, that's also quite bad. :( Best regards, Max
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