一、查看不受影響版本
CentOS:
CentOS 6:polkit-0.96-11.el6_10.2
CentOS 7:polkit-0.112-26.el7_9.1
CentOS 8.0:polkit-0.115-13.el8_5.1
CentOS 8.2:polkit-0.115-11.el8_2.2
CentOS 8.4:polkit-0.115-11.el8_4.2
Ubuntu:
Ubuntu 14.04 ESM:policykit-1-0.105-4ubuntu3.14.04.6+esm1
Ubuntu 16.04 ESM:policykit-1-0.105-14.1ubuntu0.5+esm1
Ubuntu 18.04 LTS:policykit-1-0.105-20ubuntu0.18.04.6
Ubuntu 20.04 LTS:policykit-1-0.105-26ubuntu1.2
Ubuntu 21.10:policykit-1-0.105-31ubuntu0.1
Debain:
Debain stretch:policykit-1 0.105-18+deb9u2
Debain buster:policykit-1 0.105-25+deb10u1
Debain bullseye:policykit-1 0.105-31+deb11u1
Debain bookworm,bullseye:policykit-1 0.105-31.1
因我自己系統(tǒng)是centos7,因此下載版本CentOS 7:polkit-0.112-26.el7_9.1
二、查看polkit版本
rpm -qa polkit
三、進行漏洞修復(fù)
1、緩解方案
可刪除pkexec的SUID-bit權(quán)限來緩解該漏洞風(fēng)險,執(zhí)行命令如下:
chmod 0755 /usr/bin/pkexec
2、在線更新(能連互聯(lián)網(wǎng)或局域網(wǎng)有最新的yum源)
yum clean all && yum makecache
yum update polkit -y
3.局域網(wǎng)離線手工更新
上傳文件polkit-0.112-26.el7_9.1.x86_64.rpm到/opt(任意)目錄下
先進行卸載
rpm -e polkit-0.112-22.el7.x86_64 --nodeps
卸載完成然后安裝
rpm -Uvh polkit-0.112-26.el7_9.1.x86_64.rpm文章來源:http://www.zghlxwxcb.cn/news/detail-628537.html
提示版本是正確
rpm -qa polkit文章來源地址http://www.zghlxwxcb.cn/news/detail-628537.html
到了這里,關(guān)于Linux Polkit pkexec權(quán)限提升漏洞(CVE-2021-4034) centos系統(tǒng)polkit漏洞修復(fù)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!