CVEfocus › CVE database › CVE-2021-43784

CVE-2021-43784Overflow in netlink bytemsg length field allows attacker to override netlink-based…

CVSS 6.0 MediumEPSS 1.8% (higher than 79% of CVEs)Published 2021-12-06Updated 2024-10-15Assigner: GitHub_M

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.

CWE-190

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
3Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04runcNot affected
vulnerable_code_not_present
Ubuntu 25.10runcNot affected
vulnerable_code_not_present
Ubuntu 24.04runcNot affected
vulnerable_code_not_present
Ubuntu 22.04runcNot affected
vulnerable_code_not_present
Ubuntu 20.04runcNot affected
vulnerable_code_not_present
Ubuntu 18.04runcFix pendingUBUNTU-CVE-2021-43784
Ubuntu 16.04runcFix pending1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 (Ubuntu Pro)UBUNTU-CVE-2021-43784
Debian 14runcFixed1.0.3+ds1-1DEBIAN-CVE-2021-43784
Debian 13runcFixed1.0.3+ds1-1DEBIAN-CVE-2021-43784
Debian 12runcFixed1.0.3+ds1-1DEBIAN-CVE-2021-43784
Red Hat Enterprise Linux 9runcFixed4:1.1.9-1.el9RHSA-2023:6380
Red Hat Enterprise Linux 8runcFix pending
Fix deferred
AlmaLinux 9runcFixed4:1.1.9-1.el9ALSA-2023:6380
Alpine Linux 3.24runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.23runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.22runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.21runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.20runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.19runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.18runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.17runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.16runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Alpine Linux 3.15runcFixed1.0.3-r0ALPINE-CVE-2021-43784
Go librarygithub.com/opencontainers/runcFixed1.0.3GO-2022-0274

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.