Vulnerability Details : CVE-2021-43784
Potential exploit
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.
Vulnerability category: Overflow
Products affected by CVE-2021-43784
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-43784
0.40%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 73 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-43784
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.0
|
MEDIUM | AV:N/AC:M/Au:S/C:P/I:P/A:P |
6.8
|
6.4
|
NIST | |
5.0
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
1.6
|
3.4
|
NIST | |
6.0
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L |
1.8
|
3.7
|
GitHub, Inc. |
CWE ids for CVE-2021-43784
-
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.Assigned by: security-advisories@github.com (Primary)
References for CVE-2021-43784
-
https://github.com/opencontainers/runc/commit/d72d057ba794164c3cce9451a00b72a78b25e1ae
runc init: avoid netlink message length overflows · opencontainers/runc@d72d057 · GitHubPatch;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html
[SECURITY] [DLA 3735-1] runc security update
-
https://lists.debian.org/debian-lts-announce/2021/12/msg00005.html
[SECURITY] [DLA 2841-1] runc security updateVendor Advisory
-
https://github.com/opencontainers/runc/commit/f50369af4b571e358f20b139eea52d612eb55eed
Merge pull request from GHSA-v95c-p5hm-xq8f · opencontainers/runc@f50369a · GitHubPatch;Third Party Advisory
-
https://github.com/opencontainers/runc/security/advisories/GHSA-v95c-p5hm-xq8f
Overflow in netlink bytemsg length field allows attacker to override netlink-based container configuration · Advisory · opencontainers/runc · GitHubPatch;Third Party Advisory
-
https://github.com/opencontainers/runc/commit/9c444070ec7bb83995dbc0185da68284da71c554
Open bind mount sources from the host userns · opencontainers/runc@9c44407 · GitHubPatch;Third Party Advisory
-
https://bugs.chromium.org/p/project-zero/issues/detail?id=2241
2241 - runc/libcontainer: insecure handling of bind mount sources - project-zeroExploit;Third Party Advisory
Jump to