From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: Heads up: Backdoor in upstream xz tarball, stable version of IPFire likely unaffected, testing version somewhat affected
Date: Sat, 30 Mar 2024 12:37:41 +0000 [thread overview]
Message-ID: <DB9FE2AA-FDED-4A57-9A76-C5B6190D9950@ipfire.org> (raw)
In-Reply-To: <d28081d1-543e-49af-91e5-21045271ff09@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 3621 bytes --]
Hello,
> On 29 Mar 2024, at 21:53, Peter Müller <peter.mueller(a)ipfire.org> wrote:
>
> Hello *,
>
> a quick heads-up on reports on the oss-security mailing list that indicate the upstream
> tarball of xz containing a backdoor since version 5.6.0, with the target objective appearing
> to constitute in backdooring SSH: https://openwall.com/lists/oss-security/2024/03/29/4
>
> Please note that this is a developing situation, so take the assessments below with a
> pinch of salt.
>
> - The latest stable version of IPFire, IPFire 2.29 - Core Update 184, is NOT affected by
> the backdoor discussed in the oss-security post linked above. This is because it includes
> xz 5.4.6 (as mentioned in https://www.ipfire.org/blog/ipfire-2-29-core-update-184-released).
> Further, since IPFire does NOT patch OpenSSH in order to include lzma compression (which
> is a requirement for the unveiled backdoor to work), my understanding at this time is that
> OpenSSH on stable IPFire installations is not affected.
I agree with this assessment.
I believe that IPFire does not meat a number of criteria that are required for this backdoor to be usage:
* The build is checking whether a Debian/RPM package is being built and only then injects the backdoor code. This should not be the case on IPFire and therefore I believe that we don’t even include the malicious code paths.
* OpenSSH is not directly linked against liblzma and we do not have anything else (e.g. that pulls it in). So the library is not loaded into sshd at runtime, so even if liblzma was affected on IPFire, we should not have a compromised SSH service.
> This is further corroborated by the backdoor known so far only becoming active under
> certain build environment conditions that are not met by IPFire 2.x's build environment.
>
> However, it currently appears as if the xz developer has actively worked towards including
> a backdoor, rather than their account having been compromised. Therefore, it may be that
> there are other backdoors in the xz upstream tarball, and that they have been included in
> earlier versions.
>
> - Forthcoming Core Update 185 includes two patches that update xz to 5.6.0 and 5.6.1,
> respectively. These versions are known to include the aforementioned OpenSSH backdoor.
> The IPFire development team will discuss reversion of xz to a version not known to be
> affected thus far in the next few days. Currently, both Debian and Fedora opted to
> revert back to version 5.4.5, rather than 5.4.6 (which is what IPFire currently ships
> in stable Core Update 184, but is not known to include any malicious code, which only
> commenced in version 5.6.0).
Adolf has been really quick in providing a patch to downgrade back to 5.4.5. As far as I can see this is what Debian is doing and believing that they have some more information about everything I would like to follow their decisions. I have currently no reason to believe that 5.4.6 is compromised.
The patch has been merged and I have included everything that is linked against XZ in the updater as a precaution.
> Again, since no custom patching of OpenSSH is in place, the unveiled SSH backdoor would
> not have been functional on IPFire installations.
>
> IPFire is currently unaware of the unveiled backdoor impacting any other service that is
> usually directly exposed on IPFire installations to the internet, such as OpenVPN or IPsec.
>
> For reference, CVE-2024-3094 has been assigned by Red Hat for this issue.
>
> Thanks, and best regards,
> Peter Müller
-Michael
next prev parent reply other threads:[~2024-03-30 12:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 21:53 Peter Müller
2024-03-30 12:37 ` Michael Tremer [this message]
2024-03-30 13:30 ` Adolf Belka
2024-04-01 11:56 ` Michael Tremer
2024-04-05 16:51 ` Matthias Fischer
2024-04-08 16:33 ` Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB9FE2AA-FDED-4A57-9A76-C5B6190D9950@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox