Skip to content
OpenAdvisories
High · 8.0 CVE-2021-43816 EUVD-2022-0652GHSA-mvff-h3cj-wj9cGO-2022-0278

Improper Preservation of Permissions in containerd

Published Jan 5, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

containerd is an open source container runtime. On installations using SELinux, such as EL8 (CentOS, RHEL), Fedora, or SUSE MicroOS, with containerd since v1.5.0-beta.0 as the backing container runtime interface (CRI), an unprivileged pod scheduled to the node may bind mount, via hostPath volume, any privileged, regular file on disk for complete read/write access (sans delete). Such is achieved by placing the in-container location of the hostPath volume mount at either `/etc/hosts`, `/etc/hostname`, or `/etc/resolv.conf`. These locations are being relabeled indiscriminately to match the container process-label which effectively elevates permissions for savvy containers that would not normally be able to access privileged host files. This issue has been resolved in version 1.5.9. Users are advised to upgrade as soon as possible.

Affected products

VendorProductAffectedFixed
containerd containerd >= 1.5.0, < 1.5.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 containerd 1.5.9~ds1-1 —
Debian 13 containerd 1.5.9~ds1-1 —
Debian 12 containerd 1.5.9~ds1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS containerd 1.5.9-0ubuntu1 —
Ubuntu 20.04 LTS containerd 1.5.9-0ubuntu1~20.04.4 —
Ubuntu 18.04 LTS containerd 1.5.9-0ubuntu1~18.04.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS containerd No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 containerd 1.5.9-r0 —
Alpine v3.23 containerd 1.5.9-r0 —
Alpine v3.22 containerd 1.5.9-r0 —
Alpine v3.21 containerd 1.5.9-r0 —
Alpine v3.20 containerd 1.5.9-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 containerd 1.5.9-r0 —
Alpine v3.18 containerd 1.5.9-r0 —
Alpine v3.17 containerd 1.5.9-r0 —
Alpine v3.16 containerd 1.5.9-r0 —
Alpine v3.15 containerd 1.5.9-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/containerd/containerd >= 1.5.0, < 1.5.9 1.5.9 GHSA-mvff-h3cj-wj9c

Advisories 1

References