When the xz backdoor was discovered, I quickly uninstalled my Arch based setup with an infected version of the software and switched to a distro that shipped an older version (5.5 or 5.4 or something). I found an article which said that in 5.6.1-3 the backdoor was “fixed” by just not letting the malware part communicating with the vulnerable ssh related stuff and the actual malware is still there? (I didn’t understand 80% of the technical terms and abbreviations in it ok?) Like it still sounds kinda dangerous to me, especially since many experts say that we don’t know the other ways this malware can use (except for the ssh supply chain) yet. Is it true? Should I stick with the new distro for now or can I absolutely safely switch back and finally say that I use Arch btw again?

P. S. I do know that nothing is completely safe. Here I’m asking just about xz and libxzlk or whatever the name of that library is

  • rtxn@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    TL;DR: starting with 5.6.1-2, XZ is safe on Arch.

    Look here: https://gitlab.archlinux.org/archlinux/packaging/packages/xz/-/commit/881385757abdc39d3cfea1c3e34ec09f637424ad

    And here: https://security.archlinux.org/ASA-202403-1

    5.6.1-2 is where the package switched from building from the tarball (backdoored) to the upstream git repo (clean). The tarball release contained some extra build instructions (which didn’t exist in the git repo) that added the backdoor during the build process. The issue arose from the downstream maintainers’ assumption that the contents of the tarball and the git repo were identical.

    Subsequent changes, and 5.6.1-3, were mostly administrative, like changing the git repository’s URL (since the maintainer’s github account was banned) and locking out Jia Tan’s PGP key.

    • GolfNovemberUniform@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      5.6.1-2 is where the package switched from building from the tarball (backdoored) to the upstream git repo (clean)

      This is what I was looking for. Though if 5.6.1-2 doesn’t contain the backdoor, why is it listed as the last version that does contain it everywhere?

      • rtxn@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 year ago

        why is it listed as the last version that does contain it everywhere?

        I don’t know, but the official advisory is most likely to be correct. Everything else is a game of Chinese whispers where the information becomes less reliable the more it is passed on. Maybe it’s because -2 still had Jia Tan’s signing key, and could have, theoretically, accepted commits signed by them.

        Where is it listed as such? Can you give examples?

  • Titou@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    When i first heard of xz backdoor, i updated my arch system and the xz-utils package to 5.6.1-3 which in the version numbers seems to be a patch, and it seems to be, so think you’re safe from now

  • BaalInvoker@lemmy.eco.br
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Arch wasn’t affected at all, cause the backdoor trigger was only on deb and rpm distros.

    However it still a good practice to update your system and leave this version behind. Anyway, Arch already updated and is no longer distributing the backdoor version, therefore 5.6.1-3 is safe

    You can use Arch btw again. Actually, you never had to leave it at first

    • pastermil@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      To add to your point: The .deb ones are most likely safe, since it would only be on the unstable & experimental branches. Your garden variety production servers & personal computers should be fine. That is unless you’re into some unusual setup like with playing around with the upcoming version, or for some reason are pulling your own xz build.

      Can’t speak for the .rpm tho.

    • GolfNovemberUniform@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I know that Arch wasn’t affected but it’s only true for the known ssh backdoor. Afaik that thing can contain 100+ more “viruses” in it that we don’t yet know about. And btw I was using a distro that was quite a bit different to Arch (no, not Manjaro) so idk if it was any safer than Debian sid

      • Petter1@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Well, we don’t really know if there are backdoors in the old version as well, applying your logic

      • BaalInvoker@lemmy.eco.br
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 year ago

        Well, until someone find a new backdoor, I call it safe again

        I’ll not lose my mental health to a potentially and unknown shady backdoor that could be installed or not in a lib

          • 4am@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            What about all the unknown back doors in the old versions 👻

          • bizdelnick@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            So you need to downgrade to even earlier version. Best of all, use a fork created by Joey Hess.

              • bizdelnick@lemmy.ml
                link
                fedilink
                arrow-up
                0
                ·
                1 year ago

                I don’t know for sure, it depend on changes in the liblzma API. If there were any changes (backward compatible or not, usually nobody cares about forward compatibility), yes, recompiling is required.

          • Strit@lemmy.linuxuserspace.show
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            If you worry about potential other backdoors in newer XZ versions, then you should also look into your kernel, systemd, dbus etc etc. All these things, can potentially contain backdoors that no one knows about yet.

            As for currently known backdoors, the Arch versions are safe.

            • GolfNovemberUniform@lemmy.mlOP
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              Of course backdoors can be anywhere. I was worried about this one especially because somewhere I read that the malicious code wasn’t removed but just restricted with some hacky stuff in 5.6.1-3. It turned out to be false, at least for Arch, so, in case the new information is true, I can switch back I guess. Using a “safe” version of Arch is better than running all the apps as Flatpaks that can still have the infected version of xz libraries as dependencied anyways

  • unreliable@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    The back door was crafted to be used by a very specific encryption key. You are are vulnerable if the attackers are specifically targeting you. If you are a tangent of a nation, you should be worried:)

    • GolfNovemberUniform@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Well idk what “a tangent of a nation” means but I have political opinions very different to what my nation wants me to have so it might actually be a problem for me

      • unreliable@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        I mean, appears a country is responsible for the attack after 2 years of preparation. If they don’t like you, probably was easy to send someone knock your door instead. Relax :)

      • 520@kbin.social
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        What they mean is if you are a affiliated with a national government. You might also be a target if you are very very rich.

        If you’re an average Joe, they probably won’t burn it on you.

        • The Doctor@beehaw.org
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          1 year ago

          It’s already burned by being discovered.

          And, never underestimate the utility of a large botnet.