this post was submitted on 30 Mar 2024
73 points (98.7% liked)

technology

23218 readers
2 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 5 years ago
MODERATORS
 

If you're running version 5.6.0 or 5.6.1, downgrade immediately.

top 30 comments
sorted by: hot top controversial new old
[–] Faresh@lemmy.ml 23 points 1 year ago (2 children)

Do not run xz --version. Instead check the version in your package manager.

[–] heyfrancis@lemmy.ml 14 points 1 year ago* (last edited 1 year ago) (2 children)
debian/ubuntu based distros:
apt show xz-utils
or
dpkg -l | grep xz

redhat/fedora-based:
yum info xz
dnf info xz

arch-based:
pacman -Qi xz

EDIT: correction as suggested below

[–] poweruser@lemmy.sdf.org 3 points 1 year ago

On my machine the package name is slightly different:

apt show xz-utils

[–] buckykat@hexbear.net 2 points 1 year ago

5.4.1, my habit of putting off updates pays off again

[–] LibsEatPoop@hexbear.net 6 points 1 year ago (1 children)

Why is that? I know the latter gives you more info, but it's still the same thing isn't it?

[–] Faresh@lemmy.ml 20 points 1 year ago (1 children)

Because you are running the affected software. It's a bad idea to run something if we are aware that it contains or relies on malicious code.

[–] LibsEatPoop@hexbear.net 16 points 1 year ago

Omg obviously. Can't believe I didn't realize that. Thanks for the answer.

[–] henfredemars 17 points 1 year ago (1 children)

Wow! This was so close to perhaps being one of the worst security compromises in open source history.

[–] CoolYori@hexbear.net 12 points 1 year ago (2 children)

For me I feel like we have not had any big security stuff since the whole log4j thing. While this seems bigger they have caught it relatively early. I feel like more people had to panic patch Minecraft servers with log4j.

[–] yuli@hexbear.net 7 points 1 year ago (1 children)

maybe the libwebp vulnerability deserves a honorable mention, although i don’t think it has had as big an impact, it could’ve been way worse.

[–] CoolYori@hexbear.net 4 points 1 year ago

Good point! I did forget about that one.

[–] henfredemars 6 points 1 year ago (1 children)

My only reservation is that this compromised contributor has been working on the project for a few years. I hope that this is the end of the tunnel and there aren’t more issues to be uncovered with further analysis.

[–] CoolYori@hexbear.net 12 points 1 year ago

Its easy to spiral out of control thinking about how the practice that got us this backdoor is something that is used all over the open source community to build code. In the end we can only evaluate what is in front of us and pray the things lurking in the shadows are something we can deal with when they expose themselves.

[–] puff@hexbear.net 16 points 1 year ago (1 children)

Jokes on you; I haven't run a system update since 2006

[–] hello_hello@hexbear.net 2 points 1 year ago (1 children)

Ubuntu 6.06 moment (Debian 3.1)

[–] NoamParenti@hexbear.net 3 points 1 year ago

I'm using arch btw. ... oh no

[–] AssortedBiscuits@hexbear.net 15 points 1 year ago (1 children)

Mods should sticky this. This is the third post in this comm about the vulnerability.

[–] hello_hello@hexbear.net 6 points 1 year ago* (last edited 1 year ago)

The only people who will have this vulnerability AFAIK (and have it be actionable with the ssh backdoor) are folks running Debian unstable on a ssh server. The shitty part about this is a rupture in trust for the maintainers at xz.

Honestly, the attacker picked a really shitty time frame considering their payload isn't in any important point releases where they could have the most effect.

[–] itappearsthat@hexbear.net 14 points 1 year ago* (last edited 1 year ago) (1 children)

How to check your version without running xz on nixOS, the official OS of trans people:

ls -l $(which xz)

I'm at 5.4.4 thankfully.

[–] underisk@hexbear.net 7 points 1 year ago

nixos doesn't appear to be vulnerable in general, based on this thread

[–] Abracadaniel@hexbear.net 7 points 1 year ago (1 children)

My repos are only pulling 5.4.1 big-cool

[–] anarchoilluminati@hexbear.net 2 points 1 year ago (1 children)

Phew. Same.

So, what do we do in this case to avoid contamination via updating? Just don't "sudo apt upgrade" for a while?

[–] Abracadaniel@hexbear.net 4 points 1 year ago

I'm no expert, but I'd assume the repository maintainers would pull the malicious packages ASAP. check to see if you have any updates available, if the malicious version is not available then you're chilling squidward-chill

[–] Saff@lemmy.ml 7 points 1 year ago (2 children)

So I assume the malicious code is being removed and a version 5.6.2 without it will be released soon? Or is it more complex to solve and I’m being naive?

[–] CoolYori@hexbear.net 10 points 1 year ago* (last edited 1 year ago)

So the backdoor was not in the source code but in the system used to build the code. Devs for a long time now have swapped over to an automated build system and what happened with this one is in the last step for the xz build process it adds the backdoor to it. You simply have to remove the references to the data in the build config.

EDIT: Rewrote a sentence that sounded stupid

[–] FriendBesto@lemmy.ml 5 points 1 year ago* (last edited 1 year ago)

Something like that. It should be patched shortly. Thank god for smart people and autists.

[–] RyanGosling@hexbear.net 5 points 1 year ago (1 children)

Does it spread itself to other parts of the system, or it contained exclusively within locations used by this program?

[–] itappearsthat@hexbear.net 15 points 1 year ago

People aren't 100% sure yet but preliminary analysis believes it is contained. Look forward to excrutiatingly-detailed levels of analysis to be published in the coming days and weeks, this is like every Foss Discourse topic tossed into a blender all at once.

[–] umbrella@lemmy.ml 4 points 1 year ago* (last edited 1 year ago)

goddamn chuds hijacking my linux libraries

[–] FumpyAer@hexbear.net 2 points 1 year ago

Good thing I disassembled my laptop this week.

Haven't updated since last month, is this a newly released vulnerability?