CVE-2021-43784
Description
runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc, netlink is used internally as a serialization system for specifying the relevant container configuration to the C portion of the code (responsible for the based namespace setup of containers). In all versions of runc prior to 1.0.3, the encoder did not handle the possibility of an integer overflow in the 16-bit length field for the byte array attribute type, meaning that a large enough malicious byte array attribute could result in the length overflowing and the attribute contents being parsed as netlink messages for container configuration. This vulnerability requires the attacker to have some control over the configuration of the container and would allow the attacker to bypass the namespace restrictions of the container by simply adding their own netlink payload which disables all namespaces. The main users impacted are those who allow untrusted images with untrusted configurations to run on their machines (such as with shared cloud infrastructure). runc version 1.0.3 contains a fix for this bug. As a workaround, one may try disallowing untrusted namespace paths from your container. It should be noted that untrusted namespace paths would allow the attacker to disable namespace protections entirely even in the absence of this bug.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/opencontainers/runcGo | < 1.0.3 | 1.0.3 |
Affected products
16- osv-coords15 versionspkg:apk/chainguard/runcpkg:apk/chainguard/runc-docpkg:apk/wolfi/runcpkg:apk/wolfi/runc-docpkg:golang/github.com/opencontainers/runcpkg:rpm/almalinux/runcpkg:rpm/opensuse/runc&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/runc&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/runc&distro=openSUSE%20Tumbleweedpkg:rpm/suse/runc&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2012pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP2pkg:rpm/suse/runc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP3
< 0+ 14 more
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 1.0.3
- (no CPE)range: < 4:1.1.9-1.el9
- (no CPE)range: < 1.0.3-lp152.2.12.1
- (no CPE)range: < 1.0.3-27.1
- (no CPE)range: < 1.0.3-1.1
- (no CPE)range: < 1.0.3-27.1
- (no CPE)range: < 1.0.3-27.1
- (no CPE)range: < 1.0.3-27.1
- (no CPE)range: < 1.0.3-16.18.1
- (no CPE)range: < 1.0.3-27.1
- (no CPE)range: < 1.0.3-27.1
- opencontainers/runcv5Range: < 1.0.3
Patches
Vulnerability mechanics
References
11- github.com/opencontainers/runc/commit/9c444070ec7bb83995dbc0185da68284da71c554nvdPatchThird Party AdvisoryWEB
- github.com/opencontainers/runc/commit/d72d057ba794164c3cce9451a00b72a78b25e1aenvdPatchThird Party AdvisoryWEB
- github.com/opencontainers/runc/commit/f50369af4b571e358f20b139eea52d612eb55eednvdPatchThird Party AdvisoryWEB
- github.com/opencontainers/runc/security/advisories/GHSA-v95c-p5hm-xq8fnvdPatchThird Party AdvisoryWEB
- bugs.chromium.org/p/project-zero/issues/detailnvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-v95c-p5hm-xq8fghsaADVISORY
- lists.debian.org/debian-lts-announce/2021/12/msg00005.htmlnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-43784ghsaADVISORY
- github.com/opencontainers/runc/commit/dde509df4e28cec33b3c99c6cda3d4fd5beafc77ghsaWEB
- lists.debian.org/debian-lts-announce/2024/02/msg00005.htmlnvdWEB
- pkg.go.dev/vuln/GO-2022-0274ghsaWEB
News mentions
0No linked articles in our index yet.