Re: Malware find in the news: xz related.

Liste des GroupesRevenir à col misc 
Sujet : Re: Malware find in the news: xz related.
De : not (at) *nospam* telling.you.invalid (Computer Nerd Kev)
Groupes : comp.os.linux.misc
Date : 31. Mar 2024, 01:00:44
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <6608a7ac@news.ausics.net>
References : 1 2
User-Agent : tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
Eli the Bearded <*@eli.users.panix.com> wrote:
The initial report is quite readable:
 
https://www.openwall.com/lists/oss-security/2024/03/29/4
 
Found because someone was trying to benchmark something else and ssh was
using noticable cpu. An exploit hidden by a multi-year contributor who
got promoted to maintainer. The exploit is hidden in a "bad" xz
compessed "test" file, a simple use of `tr` repairing the file. Today's
exploit specifically targets sshd on Debian, but there's no reason to
think that this was a final target instead of a first target.

True, though that post does mention that the exploit actually
relies on a Debian patch to OpenSSH which causes sshd to be linked
to the XZ compression library via a dependency on libsystemd:
"openssh does not directly use liblzma. However debian and several
 other distributions patch openssh to support systemd notification,
 and libsystemd does depend on lzma."

This post provides a patch for starting a child process from sshd
to talk to Systemd then exit, instead of linking the SSH server
to libsystemd directly. So it's not the only way that Systemd
integration can be done by distros (if they feel compelled to do it
at all).
https://www.openwall.com/lists/oss-security/2024/03/29/23

They also point out how many libraries are unnecessarily linked to
sshd by existing distro patches. On RHEL 9.x they say "ldd sshd"
lists 28 dynamically-linked libraries, but for their "Rocky Linux
SIG/Security override package" they've got it down to 13.

On Debian 11 (bookworm) with OpenSSH_8.4p1 I see by running ldd on
/sbin/sshd that it's linked to 31 libraries. But on Tiny Core Linux
14, which doesn't use Systemd, OpenSSH_9.5p1 links to only 8
libraries, and doesn't link to liblzma.

On OpenWRT 23 I use Dropbear v2022.82 and ldd shows that it links
to just 3 libraries!

So the attack surface of the SSH server process varies wildly
between distros. Indeed my first thought when I read about this was
"Huh, I didn't know that OpenSSH supported XZ compression". Turns
out it doesn't, but Systemd does.

--
__          __
#_ < |\| |< _#

Date Sujet#  Auteur
30 Mar 24 * Malware find in the news: xz related.59pH
30 Mar 24 +- Re: Malware find in the news: xz related.1Woozy Song
30 Mar 24 +* Re: Malware find in the news: xz related.2Eli the Bearded
31 Mar 24 i`- Re: Malware find in the news: xz related.1Computer Nerd Kev
31 Mar 24 +* Re: Malware find in the news: xz related.25MarioCCCP
31 Mar 24 i`* Re: Malware find in the news: xz related.24Computer Nerd Kev
31 Mar 24 i `* Re: Malware find in the news: xz related.23Computer Nerd Kev
31 Mar 24 i  +* Re: Malware find in the news: xz related.16D
31 Mar 24 i  i`* Re: Malware find in the news: xz related.15Lew Pitcher
31 Mar 24 i  i +* Re: Malware find in the news: xz related.12Nuno Silva
31 Mar 24 i  i i+- Re: Malware find in the news: xz related.1Lew Pitcher
31 Mar 24 i  i i+- Re: Malware find in the news: xz related.1Rich
31 Mar 24 i  i i`* Re: Malware find in the news: xz related.9Richard Kettlewell
1 Apr 24 i  i i `* Re: Malware find in the news: xz related.8Carlos E.R.
1 Apr 24 i  i i  `* Re: Malware find in the news: xz related.7Rich
2 Apr 24 i  i i   `* Re: Malware find in the news: xz related.6Carlos E.R.
6 Apr 24 i  i i    `* Re: Malware find in the news: xz related.5MarioCCCP
6 Apr 24 i  i i     `* Re: Malware find in the news: xz related.4Rich
6 Apr 24 i  i i      `* Re: Malware find in the news: xz related.3The Natural Philosopher
7 Apr 24 i  i i       +- Re: Malware find in the news: xz related.1Computer Nerd Kev
8 Apr 24 i  i i       `- Re: Malware find in the news: xz related.1Rich
31 Mar 24 i  i +- Re: Malware find in the news: xz related.1D
6 Apr 24 i  i `- Re: Malware find in the news: xz related.1Popping Mad
31 Mar 24 i  +- Re: Malware find in the news: xz related.1Woozy Song
31 Mar 24 i  `* Re: Malware find in the news: xz related.5Carlos E.R.
31 Mar 24 i   +- Re: Malware find in the news: xz related.1David W. Hodgins
31 Mar 24 i   `* Re: Malware find in the news: xz related.3D
31 Mar 24 i    `* Re: Malware find in the news: xz related.2Carlos E.R.
1 Apr 24 i     `- Re: Malware find in the news: xz related.1D
31 Mar 24 `* Re: Malware find in the news: xz related.30John McCue
31 Mar 24  `* Re: Malware find in the news: xz related.29Grant Taylor
31 Mar 24   +* Re: Malware find in the news: xz related.11David W. Hodgins
31 Mar 24   i+* Re: Malware find in the news: xz related.8Rich
31 Mar 24   ii`* Re: Malware find in the news: xz related.7David W. Hodgins
31 Mar 24   ii `* Re: Malware find in the news: xz related.6Lew Pitcher
31 Mar 24   ii  `* Re: Malware find in the news: xz related.5Marco Moock
31 Mar 24   ii   `* Re: Malware find in the news: xz related.4Grant Taylor
31 Mar 24   ii    +- Re: Malware find in the news: xz related.1David W. Hodgins
1 Apr 24   ii    `* Re: Malware find in the news: xz related.2Marco Moock
1 Apr 24   ii     `- Re: Malware find in the news: xz related.1Grant Taylor
31 Mar 24   i`* Re: Malware find in the news: xz related.2Grant Taylor
31 Mar 24   i `- Re: Malware find in the news: xz related.1Marc Haber
31 Mar 24   `* Re: Malware find in the news: xz related.17Rich
31 Mar 24    +* Re: Malware find in the news: xz related.4David W. Hodgins
31 Mar 24    i+* Re: Malware find in the news: xz related.2Grant Taylor
31 Mar 24    ii`- Re: Malware find in the news: xz related.1Richard Kettlewell
31 Mar 24    i`- Re: Malware find in the news: xz related.1D
31 Mar 24    +* Re: Malware find in the news: xz related.7Carlos E.R.
31 Mar 24    i`* Re: Malware find in the news: xz related.6D
31 Mar 24    i +* Re: Malware find in the news: xz related.4Carlos E.R.
31 Mar 24    i i`* Re: Malware find in the news: xz related.3Computer Nerd Kev
1 Apr 24    i i +- Re: Malware find in the news: xz related.1candycanearter07
1 Apr 24    i i `- Re: Malware find in the news: xz related.1John Dallman
6 Apr 24    i `- Re: Malware find in the news: xz related.1Popping Mad
31 Mar 24    `* Re: Malware find in the news: xz related.5Grant Taylor
1 Apr 24     +- Re: Malware find in the news: xz related.1Rich
1 Apr 24     `* Re: Malware find in the news: xz related.3Marco Moock
7 Apr 24      `* Re: Malware find in the news: xz related.2Carlos E.R.
7 Apr 24       `- Re: Malware find in the news: xz related.1John Dallman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal