一、升级背景
2024 年 7 月,互联网公开披露了一个 OpenSSH 的远程代码执行漏洞(CVE-2024-6387), 8.5p1<= openssh 版本<9.8p1 之间的版本中存在条件竞争漏洞,漏洞危害等级为严重。鉴于该漏洞虽然利用较为困难但危害较大,建议升级至9.8p1版本。
二、升级前的环境
[root@openssh ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@openssh ~]# uname -a
Linux openssh 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@openssh ~]# ssh -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
三、对Openssl进行升级
直接升级openssh会由于OpenSSL 版本太低而报错 “configure: error: OpenSSL >= 1.1.1 required”,因此升级openssh前需要先升级至OpenSSL-1.1.1
1、查看当前openssl版本信息
[root@openssh ~]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017
</