CVE-2021-43784
Summary
| CVE | CVE-2021-43784 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-12-06 18:15:00 UTC |
| Updated | 2021-12-08 18:05:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| [SECURITY] [DLA 2841-1] runc security update |
MLIST |
lists.debian.org |
|
| Open bind mount sources from the host userns · opencontainers/runc@9c44407 · GitHub |
MISC |
github.com |
|
| Merge pull request from GHSA-v95c-p5hm-xq8f · opencontainers/runc@f50369a · GitHub |
MISC |
github.com |
|
| 2241 -
project-zero -
Project Zero -
Monorail |
MISC |
bugs.chromium.org |
|
| runc init: avoid netlink message length overflows · opencontainers/runc@d72d057 · GitHub |
MISC |
github.com |
|
| Overflow in netlink bytemsg length field allows attacker to override netlink-based container configuration · Advisory · opencontainers/runc · GitHub |
CONFIRM |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 161114 Oracle Enterprise Linux Security Update for runc (ELSA-2023-6380)
- 178929 Debian Security Update for runc (DLA 2841-1)
- 183127 Debian Security Update for runc (CVE-2021-43784)
- 199528 Ubuntu Security Notification for runC Vulnerabilities (USN-6088-2)
- 242301 Red Hat Update for runc (RHSA-2023:6380)
- 502183 Alpine Linux Security Update for runc
- 6000482 Debian Security Update for runc (DLA 3735-1)
- 6140096 AWS Bottlerocket Security Update for runc (GHSA-86p7-cxqj-3p24)
- 751555 OpenSUSE Security Update for runc (openSUSE-SU-2021:4171-1)
- 751558 OpenSUSE Security Update for runc (openSUSE-SU-2021:1625-1)
- 900460 Common Base Linux Mariner (CBL-Mariner) Security Update for moby-runc (6295)
- 901615 Common Base Linux Mariner (CBL-Mariner) Security Update for moby-runc (6682-1)
- 941400 AlmaLinux Security Update for runc (ALSA-2023:6380)