cve.bz

CVE-2021-43784 Year 2038 problem, Y2K38, Y2038, Epochalypse

5.0 mediumExploit referenceEPSS 1.8%Fix available

Medium (5.0). EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/opencontainers/runc 1.0.3, 1.1.0.

On this page
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.

Severity

CVSS 3.1

5.0 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-43784 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-43784?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-43784?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-43784 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linuxfoundation:runcbefore 1.0.3
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v95c-p5hm-xq8fGogithub.com/opencontainers/runc<1.0.31.0.3
GO-2022-0274Gogithub.com/opencontainers/runc>=1.0.1-0.20211012131345-9c444070ec7b <1.1.01.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9runc0.1.1+dfsg1-2+deb9u3DLA-2841-1
Debian10runc1.0.0~rc6+dfsg1-3+deb10u3DLA-3735-1
Debian12, 13, 14runc1.0.3+ds1-1DEBIAN-CVE-2021-43784
UbuntuPro:16.04:LTSrunc1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4UBUNTU-CVE-2021-43784 USN-6088-2
UbuntuPro:18.04:LTSruncno fix listedUBUNTU-CVE-2021-43784
Red Hatenterprise_linux:9::appstreamrunc, runc-debuginfo, runc-debugsource4:1.1.9-1.el9RHSA-2023:6380
SUSEEnterprise Storage 7, Linux Enterprise Micro 5.0, Linux Enterprise Micro 5.1 and 2 morerunc1.0.3-27.1SUSE-SU-2021:4171-1
SUSELinux Enterprise Module for Containers 12runc1.0.3-16.18.1SUSE-SU-2021:4059-1
openSUSELeap 15.2runc1.0.3-lp152.2.12.1openSUSE-SU-2021:1625-1
openSUSELeap 15.3runc1.0.3-27.1openSUSE-SU-2021:4171-1
openSUSETumbleweedrunc1.0.3-1.1openSUSE-SU-2024:11664-1
AlmaLinux9runc4:1.1.9-1.el9ALSA-2023:6380
Alpinev3.15, v3.16, v3.17 and 7 morerunc1.0.3-r0ALPINE-CVE-2021-43784
Azure Linux2moby-runc1.1.0-1AZL-6682

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Before runC 1.0.3, the only user-controlled byte array (used to exploit this vulnerability) was the namespace paths attributes, located in runC's config.json. Having raw access to that setting would allow the attacker to disable namespace protections entirely. This issue means that in practice, it was fairly difficult to specify an arbitrary-length netlink message with most container runtimes, resulting in the impact of this vulnerability being Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9container-tools:latest/runc-4:1.1.9-1.el9Fixed 2023-11-07RHSA-2023:6380
Red Hat Enterprise Linux 8container-tools:2.0/runcFix deferred
Red Hat Enterprise Linux 8container-tools:3.0/runcFix deferred
Red Hat Enterprise Linux 8container-tools:rhel8/runcFix deferred
Red Hat OpenShift Container Platform 3.11runcOut of support scope
Red Hat OpenShift Container Platform 4runcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-43784.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON