CVE-2021-43784
published medium CVSS 3.1 · 6.0Overflow in netlink bytemsg length field allows attacker to override netlink-based container configuration
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| opencontainers | — | runc< 1.0.3 | Affected | Not stated | GitHub_M |
| AlmaLinux | 9 | runc | Advisory build | 4:1.1.9-1.el9 | ALSA-2023:6380 |
| Alpine Linux | edge | runc | Fixed | 1.0.3-r0 | Package fix record |
| Debian | buster | runc | Advisory build | 1.0.0~rc6+dfsg1-3+deb10u3 | DLA-3735-1 |
| Oracle Linux | 9 | runcaarch64 | Advisory build | 4:1.1.9-1.el9 | ELSA-2023-6380 |
| Red Hat Enterprise Linux | RHEL-9 | runcaarch64 | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| SUSE / openSUSE | SLE-12 | runcppc64le | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| Ubuntu | xenial | runc | Advisory build | 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 | USN-6088-2 |
Show 56 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.15 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.16 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.17 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.18 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.19 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.20 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.21 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.22 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.23 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Alpine Linux | v3.24 | runc | Fixed | 1.0.3-r0 | Package fix record |
| Debian | stretch | runc | Advisory build | 0.1.1+dfsg1-2+deb9u3 | DLA-2841-1 |
| Oracle Linux | 9 | runcx86_64 | Advisory build | 4:1.1.9-1.el9 | ELSA-2023-6380 |
| Red Hat Enterprise Linux | RHEL-9 | runcppc64le | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runcs390x | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runcsrc | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runcx86_64 | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| SUSE / openSUSE | SLE-12 | runcs390x | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12 | runcx86_64 | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP3 | runcppc64le | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP3 | runcs390x | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP3 | runcx86_64 | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP4 | runcppc64le | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP4 | runcs390x | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP4 | runcx86_64 | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP5 | runcppc64le | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP5 | runcs390x | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-12-SP5 | runcx86_64 | Advisory build | 1.0.3-16.18.1 | SUSE-SU-2021:4059-1 |
| SUSE / openSUSE | SLE-15-SP2 | runcaarch64 | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-15-SP2 | runcppc64le | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-15-SP2 | runcs390x | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-15-SP2 | runcx86_64 | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-15-SP3 | runcaarch64 | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-15-SP3 | runcppc64le | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-15-SP3 | runcs390x | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-15-SP3 | runcx86_64 | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-5 | runcaarch64 | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-5 | runcs390x | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | SLE-5 | runcx86_64 | Advisory build | 1.0.3-27.1 | SUSE-SU-2021:4171-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | runcx86_64 | Advisory build | 1.0.3-lp152.2.12.1 | OPENSUSE-SU-2021:1625-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | runcaarch64 | Advisory build | 1.0.3-27.1 | OPENSUSE-SU-2021:4171-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | runcppc64le | Advisory build | 1.0.3-27.1 | OPENSUSE-SU-2021:4171-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | runcs390x | Advisory build | 1.0.3-27.1 | OPENSUSE-SU-2021:4171-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | runcx86_64 | Advisory build | 1.0.3-27.1 | OPENSUSE-SU-2021:4171-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | runcaarch64 | Advisory build | 1.0.3-1.1 | OPENSUSE-SU-2024:11664-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | runcppc64le | Advisory build | 1.0.3-1.1 | OPENSUSE-SU-2024:11664-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | runcs390x | Advisory build | 1.0.3-1.1 | OPENSUSE-SU-2024:11664-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | runcx86_64 | Advisory build | 1.0.3-1.1 | OPENSUSE-SU-2024:11664-1 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debuginfoaarch64 | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debuginfoppc64le | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debuginfos390x | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debuginfox86_64 | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debugsourceaarch64 | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debugsourceppc64le | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debugsources390x | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Red Hat Enterprise Linux | RHEL-9 | runc-debugsourcex86_64 | Advisory build | 4:1.1.9-1.el9 | RHSA-2023:6380 |
| Ubuntu | xenial | golang-github-opencontainers-runc-dev | Advisory build | 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 | USN-6088-2 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| opencontainers | runc | < 1.0.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-190 CWE-190: Integer Overflow or Wraparound
References
7- https://bugs.chromium.org/p/project-zero/issues/detail?id=2241
- https://github.com/opencontainers/runc/commit/9c444070ec7bb83995dbc0185da68284da71c554
- https://github.com/opencontainers/runc/commit/d72d057ba794164c3cce9451a00b72a78b25e1ae
- https://github.com/opencontainers/runc/commit/f50369af4b571e358f20b139eea52d612eb55eed
- https://github.com/opencontainers/runc/security/advisories/GHSA-v95c-p5hm-xq8f
- [debian-lts-announce] 20211206 [SECURITY] [DLA 2841-1] runc security update https://lists.debian.org/debian-lts-announce/2021/12/msg00005.html
- [debian-lts-announce] 20240219 [SECURITY] [DLA 3735-1] runc security update https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html
Provider assertions
3GitHub_M · cna
Overflow in netlink bytemsg length field allows attacker to override netlink-based container configuration
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4a7ef66c362dc49ce610a2c0f25a95f4474702e36463443b2073cc58313bc81e
- Ingested
- 23 Sep 2026, 07:56:36 UTC
- Source record
- Official CVE record