cve.bz

CVE-2024-40635 Year 2038 problem, Y2K38, Y2038, Epochalypse

7.8 highEPSS 0.3%Fix available

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/containerd/containerd/v2 2.0.4.

On this page
containerd is an open-source container runtime. A bug was found in containerd prior to versions 1.6.38, 1.7.27, and 2.0.4 where containers launched with a User set as a `UID:GID` larger than the maximum 32-bit signed integer can cause an overflow condition where the container ultimately runs as root (UID 0). This could cause unexpected behavior for environments that require containers to run as a non-root user. This bug has been fixed in containerd 1.6.38, 1.7.27, and 2.04. As a workaround, ensure that only trusted images are used and that only trusted users have permissions to import images.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 24th 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 2025-03-18. 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
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-40635 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-40635?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-40635?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-2024-40635 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:containerdbefore 1.6.38
linuxfoundation:containerdfrom 1.7.0 before 1.7.27
linuxfoundation:containerdfrom 2.0.0 before 2.0.4
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-265r-hfxg-fhmgGogithub.com/containerd/containerd/v2<2.0.42.0.4
GHSA-265r-hfxg-fhmgGogithub.com/containerd/containerd>=1.7.0-beta.0 <1.7.271.7.27
GHSA-265r-hfxg-fhmgGogithub.com/containerd/containerd<1.6.381.6.38
GO-2025-3528Gogithub.com/containerd/containerd<1.6.38
>=1.7.0-beta.0 <1.7.27
1.6.38, 1.7.27
GO-2025-3528Gogithub.com/containerd/containerd/v2<2.0.42.0.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11containerd1.4.13~ds1-1~deb11u5DLA-4153-1
Debian12containerd1.6.20~ds1-1+deb12u2DEBIAN-CVE-2024-40635
Debian13, 14containerd1.7.24~ds1-6DEBIAN-CVE-2024-40635
Ubuntu20.04:LTScontainerd1.6.12-0ubuntu1~20.04.8UBUNTU-CVE-2024-40635 USN-7374-1
Ubuntu20.04:LTScontainerd-app1.7.24-0ubuntu1~20.04.2UBUNTU-CVE-2024-40635 USN-7374-1
Ubuntu22.04:LTScontainerd1.6.12-0ubuntu1~22.04.8UBUNTU-CVE-2024-40635 USN-7374-1
Ubuntu22.04:LTScontainerd-app1.7.24-0ubuntu1~22.04.2UBUNTU-CVE-2024-40635 USN-7374-1
Ubuntu24.04:LTScontainerd-app1.7.24-0ubuntu1~24.04.2UBUNTU-CVE-2024-40635 USN-7374-1
Ubuntu25.10containerd-app2.0.2-0ubuntu2UBUNTU-CVE-2024-40635
UbuntuPro:16.04:LTScontainerd1.2.6-0ubuntu1~16.04.6+esm5UBUNTU-CVE-2024-40635 USN-7374-1
UbuntuPro:18.04:LTScontainerd1.6.12-0ubuntu1~18.04.1+esm2UBUNTU-CVE-2024-40635 USN-7374-1
UbuntuPro:24.04:LTScontainerd1.6.24~ds1-1ubuntu1.2+esm1UBUNTU-CVE-2024-40635 USN-7374-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 3 morecontainerd1.7.27-150000.123.1SUSE-SU-2025:1345-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5containerd1.7.27-16.100.1SUSE-SU-2025:1346-1
SUSELinux Micro 6.0containerd1.7.27-1.1SUSE-SU-2025:20216-1
SUSELinux Micro 6.1containerd1.7.27-slfo.1.1_1.1SUSE-SU-2025:20459-1
openSUSELeap 15.6containerd1.7.27-150000.123.1SUSE-SU-2025:1345-1
openSUSETumbleweedcmctl2.2.0-1.1openSUSE-SU-2025:15039-1
openSUSETumbleweedcontainerd1.7.27-1.1openSUSE-SU-2025:15169-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250318T181448-1.1openSUSE-SU-2025:14910-1
Azure Linux2moby-containerd1.6.26-11AZL-58844
Azure Linux2moby-containerd-cc1.7.7-11AZL-60897
Azure Linux3containerd1.7.13-8AZL-58845
Azure Linux3containerd22.0.0-8AZL-58867
Azure Linux3moby-containerd-cc1.7.7-9AZL-60893
Alpaquita23containerdno fix listedBELL-CVE-2024-40635
Alpaquitastreamcontainerd2.0.4-r0BELL-CVE-2024-40635

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

For Red Hat OpenShift GitOps and OpenShift Container Platform deployments, image sources are controlled through OpenShift's Image configuration and RBAC policies. Administrators can restrict image imports to trusted registries using allowedRegistriesForImport and registrySources configuration.In typical GitOps deployments, application images are pulled from pre-approved registries configured by platform administrators.

Red Hat's mitigation

To mitigate this vulnerability, ensure that only trusted images are used and that only trusted users have permissions to import images.

To implement the recommended controls in OpenShift:

1. Restrict allowed registries at the cluster level by configuring image.config.openshift.io/cluster with allowedRegistriesForImport and registrySources.allowedRegistries.

2. To find out who can pull/import container images into OpenShift for that namespace Based on RBAC permissions: `oc adm policy who-can create imagestreamimports -n <namespace>`

3. Enforce image signature verification using sigstore or cluster image signature policies.

4. For GitOps deployments, use Gatekeeper/OPA policies to enforce that ArgoCD Applications reference only approved registries.

ProductPackageStateAdvisory
Red Hat Openshift Data Foundation 4.22odf4/cephcsi-rhel9:1782932114Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/cephcsi-rhel9-operator:1782931768Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/devicefinder-rhel9:1782932104Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/mcg-core-rhel9:1783536000Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/mcg-rhel9-operator:1783535989Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/ocs-client-console-rhel9:1783536515Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/ocs-client-rhel9-operator:1782932521Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/ocs-metrics-exporter-rhel9:1783018461Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/ocs-rhel9-operator:1783018421Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/odf-blackbox-exporter-rhel9:1782932812Fixed 2026-07-09RHSA-2026:37387
Assisted Installer for Red Hat OpenShift Container Platform 2rhai-tech-preview/assisted-installer-agent-rhel8Fix deferred
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-acmesolver-rhel9Fix deferred
cert-manager Operator for Red Hat OpenShiftjetstack-cert-manager-containerFix deferred
Deployment Validation Operatordeployment-validation-operator-containerFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Fix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-validation-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-service-8-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-service-9-rhel9Fix deferred
Network Observability Operatornetwork-observability/network-observability-cli-rhel9Fix deferred
OpenShift Developer Tools and Servicesjenkins-agent-base-containerFix deferred
57 more in the JSON and on Red Hat's page.

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-2024-40635.

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