-
Security Vulnerability
-
Resolution: Fixed
-
Normal
-
None
-
None
app-emulation/containerd-1.5.5 has two high severity CVEs
- https://nvd.nist.gov/vuln/detail/CVE-2021-41103
containerd is an open source container runtime with an emphasis on simplicity, robustness and portability. A bug was found in containerd where container root directories and some plugins had insufficiently restricted permissions, allowing otherwise unprivileged Linux users to traverse directory contents and execute programs. When containers included executable programs with extended permission bits (such as setuid), unprivileged Linux users could discover and execute those programs. When the UID of an unprivileged Linux user on the host collided with the file owner or group inside a container, the unprivileged Linux user on the host could discover, read, and modify those files. This vulnerability has been fixed in containerd 1.4.11 and containerd 1.5.7. Users should update to these version when they are released and may restart containers or update directory permissions to mitigate the vulnerability. Users unable to update should limit access to the host to trusted users. Update directory permission on container bundles directories.
- (this one is exploitable only if you use SELinux) https://nvd.nist.gov/vuln/detail/CVE-2021-43816
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.
found using https://github.com/mrl5/vulner
example packages that depend on containerd:
$ equery depends containerd app-emulation/docker-20.10.8 (>=app-emulation/containerd-1.4.6[apparmor?,btrfs?,device-mapper?,seccomp?])
- relates to
-
FL-9412 autogen for app-emulation/containerd and app-emulation/runc
- Closed