中危 containerd 权限许可和访问控制问题漏洞

CVE编号

CVE-2021-43816

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-01-06
漏洞描述
containerd是美国阿帕奇(Apache)基金会的一个容器守护进程。该进程根据 RunC OCI 规范负责控制宿主机上容器的完整周期。

containerd 存在安全漏洞,该漏洞源于自 v1.5.0-beta.0 起的 containerd 作为后备容器运行时接口 (CRI),调度到节点的非特权 pod 可能会绑定 mount , 通过 hostPath 卷,磁盘上的任何特权的常规文件以进行完整的读/写访问(无删除)。 这是通过将 hostPath 卷挂载的容器内位置放置在`/etc/hosts`、`/etc/hostname` 或`/etc/resolv.conf` 来实现的。 这些位置被不加选择地重新标记以匹配容器进程标签,这有效地提升了通常无法访问特权主机文件的精明容器的权限。
解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:

https://github.com/containerd/containerd/security/advisories/GHSA-mvff-h3cj-wj9c
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 linuxfoundation containerd * From
(including)
1.5.1
Up to
(excluding)
1.5.9
运行在以下环境
应用 linuxfoundation containerd 1.5.0 -
运行在以下环境
系统 alpine_3.15 containerd * Up to
(excluding)
1.5.9-r0
运行在以下环境
系统 alpine_3.16 containerd * Up to
(excluding)
1.5.9-r0
运行在以下环境
系统 alpine_3.17 containerd * Up to
(excluding)
1.5.9-r0
运行在以下环境
系统 alpine_3.18 containerd * Up to
(excluding)
1.5.9-r0
运行在以下环境
系统 alpine_3.19 containerd * Up to
(excluding)
1.5.9-r0
运行在以下环境
系统 debian_11 containerd * Up to
(excluding)
1.4.13~ds1-1~deb11u4
运行在以下环境
系统 debian_12 containerd * Up to
(excluding)
1.5.9~ds1-1
运行在以下环境
系统 fedora_34 containerd * Up to
(excluding)
1.6.0~rc.2-3.fc34
运行在以下环境
系统 fedora_35 containerd * Up to
(excluding)
1.6.0~rc.2-2.fc35
运行在以下环境
系统 fedora_36 containerd * Up to
(excluding)
1.5.9-1.fc36
运行在以下环境
系统 ubuntu_18.04 containerd * Up to
(excluding)
1.5.9-0ubuntu1~18.04.1
运行在以下环境
系统 ubuntu_20.04 containerd * Up to
(excluding)
1.5.9-0ubuntu1~20.04.4
运行在以下环境
系统 ubuntu_21.10 containerd * Up to
(excluding)
1.5.9-0ubuntu1~21.10.3
运行在以下环境
系统 ubuntu_22.04 containerd * Up to
(excluding)
1.5.9-0ubuntu1
运行在以下环境
系统 ubuntu_22.10 containerd * Up to
(excluding)
1.5.9-0ubuntu1
阿里云评分
5.8
  • 攻击路径
    远程
  • 攻击复杂度
    复杂
  • 权限要求
    无需权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-281 权限预留不恰当
阿里云安全产品覆盖情况