https://www.v2ex.com/t/1028287满足以下条件才会受到影响:
liblzma5 v5.6.0/5.6.1
A debian or RPM based distro of Linux on x86_64
Running OpenSSH sshd from systemd
用以下脚本( author: Vegard Nossum; source: https://www.openwall.com/lists/oss-security/2024/03/29/4/3 )亦可检测是否受到影响:
#! /bin/bash
set -eu
# find path to liblzma used by sshd
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')"
# does it even exist?
if [ "$path" == "" ]
then
echo probably not vulnerable
exit
fi
# check for function signature
if hexdump -ve '1/1 "%.2x"' "$path" | grep -q f30f1efa554889f54c89ce5389fb81e7000000804883ec28488954241848894c2410
then
echo probably vulnerable
else
echo probably not vulnerable
fi