问题原文
原帖链接 · I-P-X · CC BY-SA 4.0
With the recent security announcement by libssh (CVE-2018-10933) I wonder how to find out if any of my running services use the vulnerable library? I will eventually yum upgrade the system but for now it would be nice to know if I'm in danger. I'm using Amazon Linux 2 AMI on EC2. Thanks!
已采纳解答
原帖链接 · MLu · CC BY-SA 4.0
You can get a list of all packages that need libssh2 with rpm -q --whatrequires.
On my Amazon Linux 2 instance nothing seems to require it:
[root@ip-xx-xx-xx-xx ~]# rpm -q --whatrequires libssh2
no package requires libssh2
To be extra sure you can try to list all processes that have the shared library open:
[root@ip-xx-xx-xx-xx ~]# rpm -ql libssh2
/usr/lib64/libssh2.so.1
/usr/lib64/libssh2.so.1.0.1 <== this is the one
...
[root@ip-xx-xx-xx-xx ~]# fuser /usr/lib64/libssh2.so.1.0.1
(... empty output ...)
[root@ip-xx-xx-xx-xx ~]#
Looks like on my Amazon Linux 2 EC2 nothing uses libssh2. Note that fuser must be run as root or with sudo, otherwise you won't see any system processes.
Hope that helps :)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
