CVE-2019-19921: opencontainers runc contains procfs race condition with a shared volume mount
(updated )
By crafting a malicious root filesystem (with /proc being a symlink to a directory which was inside a volume shared with another running container), an attacker in control of both containers can trick runc into not correctly configuring the container’s security labels and not correctly masking paths inside /proc which contain potentially-sensitive information about the host (or even allow for direct attacks against the host).
In order to exploit this bug, an untrusted user must be able to spawn custom containers with custom mount configurations (such that a volume is shared between two containers). It should be noted that we consider this to be a fairly high level of access for an untrusted user – and we do not recommend allowing completely untrusted users to have such degrees of access without further restrictions.
References
- access.redhat.com/errata/RHSA-2020:0688
- access.redhat.com/errata/RHSA-2020:0695
- github.com/advisories/GHSA-fh74-hm69-rqjw
- github.com/opencontainers/runc/commit/2fc03cc11c775b7a8b2e48d7ee447cb9bef32ad0
- github.com/opencontainers/runc/issues/2197
- github.com/opencontainers/runc/pull/2190
- github.com/opencontainers/runc/pull/2207
- github.com/opencontainers/runc/releases
- github.com/opencontainers/runc/security/advisories/GHSA-fh74-hm69-rqjw
- lists.debian.org/debian-lts-announce/2023/03/msg00023.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ANUGDBJ7NBUMSUFZUSKU3ZMQYZ2Z3STN
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DHGVGGMKGZSJ7YO67TGGPFEHBYMS63VF
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNB2UEDIIJCRQW4WJLZOPQJZXCVSXMLD
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FYVE3GB4OG3BNT5DLQHYO4M5SXX33AQ5
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6BF24VCZRFTYBTT3T7HDZUOTKOTNPLZ
- nvd.nist.gov/vuln/detail/CVE-2019-19921
- pkg.go.dev/vuln/GO-2021-0087
- security-tracker.debian.org/tracker/CVE-2019-19921
- security.gentoo.org/glsa/202003-21
- usn.ubuntu.com/4297-1
Code Behaviors & Features
Detect and mitigate CVE-2019-19921 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →