欢迎您光临自学哈网,只为分享网络知识教程,供大家学习参考!

「自学哈网」Linux 系统安全近期发现的polkit pkexec本地提权漏洞(CVE-2021-4034)修复方案

作者 : 自学哈 本文共1802个字,预计阅读时间需要5分钟 2023-10-30 共204人阅读
也想出现在这里? 联系我们

事件: qualys 安全研究人员披露 CVE-2021-4034 polkit pkexec 本地提权漏洞细节。
漏洞描述: polkit pkexec 中对命令行参数处理有误,参数注入能够使非特权用户在有漏洞的主机上获取完全 root 权限。

我检测了我的几台 linux 设备都有问题,赶紧来修复一下。
修复方式:
yum update polkit 命令更新解决问题。

[root@NCCLOUD-CPYY-YLZ ~]# yum update polkit
Loaded plugins: fastestmirror
Determining fastest mirrors
base                                                                    | 2.2 kB  00:00:00
epel                                                                    | 3.3 kB  00:00:00
extras-source                                                           | 1.5 kB  00:00:00
mysql-connectors                                                        | 1.5 kB  00:00:00
mysql-tools                                                             | 1.5 kB  00:00:00
mysql56-community                                                       | 1.5 kB  00:00:00
mysql57-community                                                       | 1.5 kB  00:00:00
mysql80-community                                                       | 1.5 kB  00:00:00
updates-source                                                          | 1.5 kB  00:00:00
(1/4): epel/7/x86_64/updateinfo                                         | 1.1 MB  00:00:00
(2/4): epel/7/x86_64/primary                                            | 3.9 MB  00:00:00
(3/4): mysql-tools/primary                                              |  23 kB  00:00:00
(4/4): updates-source/7/x86_64/primary                                  | 7.8 MB  00:00:00
epel                                                                               13728/13728
mysql-tools                                                                            137/137
updates-source                                                                       3411/3411
Resolving Dependencies
--> Running transaction check
---> Package polkit.x86_64 0:0.112-18.el7 will be updated
---> Package polkit.x86_64 0:0.112-26.el7_9.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================
 Package          Arch             Version                      Repository                Size
===============================================================================================
Updating:
 polkit           x86_64           0.112-26.el7_9.1             updates-source           170 k

Transaction Summary
===============================================================================================
Upgrade  1 Package

Total download size: 170 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
polkit-0.112-26.el7_9.1.x86_64.rpm                                      | 170 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : polkit-0.112-26.el7_9.1.x86_64                                              1/2
  Cleanup    : polkit-0.112-18.el7.x86_64                                                  2/2
  Verifying  : polkit-0.112-26.el7_9.1.x86_64                                              1/2
  Verifying  : polkit-0.112-18.el7.x86_64                                                  2/2

Updated:
  polkit.x86_64 0:0.112-26.el7_9.1

Complete!

 

本站声明:
本站所有资源来源于网络,分享目的仅供大家学习和交流!如若本站内容侵犯了原著者的合法权益,可联系邮箱976157886@qq.com进行删除。
自学哈专注于免费提供最新的分享知识、网络教程、网络技术的资源分享平台,好资源不私藏,大家一起分享!

自学哈网 » 「自学哈网」Linux 系统安全近期发现的polkit pkexec本地提权漏洞(CVE-2021-4034)修复方案
也想出现在这里? 联系我们
© 2022 Theme by - 自学哈网 & WordPress Theme. All rights reserved 浙ICP备2022016594号