首页 AI 资讯 技术前沿 KnowSafe 安全预警:runc 符号链接挂载与容器逃逸漏洞(CVE-2021-30465)
技术前沿

KnowSafe 安全预警:runc 符号链接挂载与容器逃逸漏洞(CVE-2021-30465)

KnowSafe 安全预警:KnowSafe 安全团队监测到编号 AVD-2021-30465 的安全漏洞(危害等级:高危)已公开披露,相关用户应尽快排查并完成修复。

漏洞介绍

runc是容器Runtime的一个实现,主要作用是使用Linux Kernel提供的如namespaces等进程隔离机制,构建供容器运行的隔离环境。

CVE-2021-30465 中,攻击者可通过创建恶意POD及container,利用符号链接以及条件竞争漏洞,可挂载宿主机目录至 container 中,并最终可导致容器逃逸。漏洞作者已在 谷歌云GKE 复现该漏洞

5月30日,漏洞作者披露相关writeup和POC

影响范围

应用:Google runc(影响面 Up to (excluding) 1.0.0-rc95)

系统:alibaba_cloud_linux_3 runc(影响面 Up to (excluding) 2.162.0-1.1.al8)

系统:alibaba_cloud_linux_3_pro runc(影响面 Up to (excluding) 1.2.2-10.1.al8)

系统:alpine_3.12 runc(影响面 Up to (excluding) 1.0.0_rc95-r0)

系统:alpine_3.13 runc(影响面 Up to (excluding) 1.0.0_rc95-r0)

系统:alpine_3.14 runc(影响面 Up to (excluding) 1.0.0_rc95-r0)

系统:alpine_3.15 k3s(影响面 Up to (excluding) 1.21.1.1-r0)

系统:alpine_3.16 k3s(影响面 Up to (excluding) 1.21.1.1-r0)

……另有 25 项受影响环境,详见官方公告

解决方案

升级runc至1.0.0-rc95安全版本

参考信息

http://www.openwall.com/lists/oss-security/2021/05/19/2

https://bugzilla.opensuse.org/show_bug.cgi?id=1185405

https://github.com/opencontainers/runc/commit/0ca91f44f1664da834bc61115a849b56d22f595f

https://github.com/opencontainers/runc/releases

https://github.com/opencontainers/runc/security/advisories/GHSA-c3xm-pvg7-gh7r

KnowSafe 将持续跟踪该漏洞的利用情况与修复进展,如需漏洞管理与应急响应支持,欢迎联系 KnowSafe 安全团队。