# CVE-2024-40635: containerd has an integer overflow in User ID handling

- Priority: **Routine**
- Reason: Not severe (CVSS 4.6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-17 · Modified: 2025-05-04
- Aliases: MGASA-2025-0130, SUSE-SU-2025:1345-1, SUSE-SU-2025:1346-1, SUSE-SU-2025:20216-1, SUSE-SU-2025:20459-1, UBUNTU-CVE-2024-40635, USN-7374-1, DEBIAN-CVE-2024-40635, DLA-4153-1, CGA-22p2-8m83-7cvp, CGA-22xj-v35c-j7r6, CGA-25xr-6xhw-gpjc, CGA-27j4-pf9h-h9pf, CGA-2ch8-wqrm-5wmg, CGA-2f58-wh95-hrqr, CGA-2f5f-6787-pjj6, CGA-2fv5-fxm5-qhv3, CGA-2g8x-53q7-v3j6, CGA-2w47-76v2-rf4g, CGA-37qm-m5hg-gmv6, CGA-38wv-7x7x-r34q, CGA-3gw4-w9cg-pmvq, CGA-3qg3-58j6-v9fg, CGA-3vxh-r3qv-3vfj, CGA-3xx5-cr45-9rp5, CGA-44hc-2jxh-2r33, CGA-44p4-5rv6-5q29, CGA-44x3-8j92-6x7h, CGA-476p-6qxh-6r37, CGA-47pg-6w46-c29h, CGA-47vq-v8fg-ghgj, CGA-4956-jq9v-5m3h, CGA-4cjx-93pw-9p4c, CGA-4f2x-j9rg-x57f, CGA-4g5g-r36f-hjv3, CGA-4vqv-q4ww-hg92, CGA-4vv6-66wf-wg9p, CGA-54wv-82q7-r7hj, CGA-54x2-w3g7-g77p, CGA-576p-cc2q-9xr2, CGA-58q4-wvqc-xfmq, CGA-5cpm-5qh9-vx9c, CGA-5h3p-9x9h-hp8f, CGA-5mvw-wx58-x3pc, CGA-63v4-v5m3-xmr7, CGA-68pj-gx9m-qxqx, CGA-6926-26fw-w7rf, CGA-6ch6-m87g-p52j, CGA-6f5x-4298-pjgf, CGA-6fr4-vpvm-c96f, CGA-75wr-6c28-2j5f, CGA-75xq-xqjq-x27h, CGA-77gm-h6qp-q27q, CGA-79jv-m9g4-x2cg, CGA-7fqq-3w8r-r3xp, CGA-7g25-h67w-6m8c, CGA-7m67-rhpf-4j3v, CGA-7q65-426q-mxqg, CGA-7wch-hpr2-pc33, CGA-85vm-3w4g-5ch3, CGA-8h6r-r3jg-jpfh, CGA-8q42-vv5v-rf8f, CGA-9455-j75r-jpvm, CGA-9457-wrw5-3hrf, CGA-94rv-5xh9-jjq5, CGA-95vm-rf5h-2j52, CGA-96j3-qq5v-qw4h, CGA-99m8-h462-29cx, CGA-9f68-43q2-qq8c, CGA-9prr-5xc8-p8hv, CGA-9r59-2vqp-pj6g, CGA-9r8j-43x3-85xx, CGA-9rf5-7wch-9pv2, CGA-9vc6-m538-p44q, CGA-9w4j-wr9r-fmm6, CGA-c39p-x8v8-jwf4, CGA-c3p9-ghr5-fwjr, CGA-chh6-fr36-qj5m, CGA-cj6c-8w47-8g3x, CGA-cmv4-hvhv-rrfx, CGA-cqpf-p4j5-2q32, CGA-cr28-w9v3-c83g, CGA-f3mc-8xf4-cjcc, CGA-f3mx-5c5h-fg9q, CGA-f5x2-mffh-gm8q, CGA-frfr-3h48-rg3g, CGA-fw9j-45w2-w42r, CGA-g5xp-wr68-g57g, CGA-g68c-j82g-2cjv, CGA-gfj8-c3p8-8x49, CGA-gr4x-7747-mxrh, CGA-h2pc-gxgj-rrvr, CGA-h45q-2mrw-688c, CGA-h4j6-43fm-8hhq, CGA-h5hp-rw7h-8vcj, CGA-hp28-965h-25vx, CGA-hpv5-wc25-3f52, CGA-hr7q-34fc-c28q, CGA-hr9j-q55p-74pm, CGA-j4pv-3498-mjgp, CGA-j524-mwc8-h9g3, CGA-j78g-x3vx-pm3r, CGA-j7w5-7w3v-c6m8, CGA-jc4m-7fxg-v6ww, CGA-jj9f-w22c-5w65, CGA-jm5q-78j9-frqh, CGA-jmq2-q6g6-r3xg, CGA-jmx5-f8xv-57p3, CGA-jmxj-v99p-gcv7, CGA-jq92-v7pw-gc5f, CGA-m244-cgwx-h6vq, CGA-m2v2-gp8h-c272, CGA-m3qw-jp35-9p62, CGA-m55m-c92p-xx5r, CGA-m6vf-9g9m-9mrp, CGA-m7gp-3jv8-2c4p, CGA-mfcj-9g23-8mhc, CGA-mhq6-hr98-q53w, CGA-mp2w-3fmp-jvh9, CGA-mqr5-7459-qrmw, CGA-mqr6-ffrf-rgxf, CGA-p853-q3r5-5mjj, CGA-pcpj-8xqg-335w, CGA-pfwj-g47j-c68p, CGA-pp5j-rf98-h7g6, CGA-pvcj-jwqj-qx2c, CGA-pvq6-3495-hgrv, CGA-px8x-hq3g-r86j, CGA-q38x-9rf6-5hfr, CGA-q3mh-j676-vwqp, CGA-q57f-7fpm-4rgj, CGA-q7w9-5298-v6vv, CGA-q85j-5mxv-fr4r, CGA-q98g-86hm-q6vx, CGA-qg4j-f8mp-65rj, CGA-qg6m-qrx8-p279, CGA-qmrm-cxph-ggr2, CGA-qpr8-8425-4hh3, CGA-qvc9-mrx9-jx22, CGA-qvf9-gw55-vqr5, CGA-qvrf-35vc-7rjr, CGA-qxqg-m6f6-v5w6, CGA-r2q5-8627-xj3r, CGA-r3cr-f8mr-r592, CGA-r5xr-6vq6-j8vv, CGA-r6w7-g5rr-grwq, CGA-rh56-w42c-hxmm, CGA-rjhh-v238-g754, CGA-rjr5-53q2-fpgh, CGA-rr27-jx2c-cvcf, CGA-rv83-w6v9-vx8j, CGA-v4mf-3hwj-vfv4, CGA-v65c-jwxx-x4r4, CGA-v6xx-mvxv-fm8x, CGA-v76p-pf45-5c22, CGA-v842-f74p-rg8r, CGA-v8jw-vqrp-c7mj, CGA-v8v5-x26j-pr52, CGA-vqv6-4cf6-364m, CGA-vrch-c8h3-gp34, CGA-vv38-73v5-382r, CGA-vwj8-74q2-36pv, CGA-w2x7-xxxp-mj8v, CGA-w3mm-x2q8-gg4q, CGA-w52r-f454-jpc2, CGA-w69c-894j-738r, CGA-w8r6-3gjm-jw99, CGA-w95g-6wqv-6mqm, CGA-wc5c-rvxx-9g76, CGA-wh56-h9jq-6hgr, CGA-wjj6-5j3p-c6x5, CGA-wv57-4495-vc8m, CGA-x2mr-65hm-wxqr, CGA-x357-x64p-cqj7, CGA-x6xh-5342-6r84, CGA-x74p-c6q5-wm77, CGA-x7h8-p8jm-29q5, CGA-x87g-77hv-jcxv, CGA-x9xm-v23h-fw3c, CGA-xh64-g485-qmpf, CGA-xmx9-p696-m2j8, CGA-xqgw-2fhj-rj36, CGA-xv6r-wvwh-6c69, CGA-xvp5-7mcc-3j47, CGA-xxr5-hvm5-3gv3, GHSA-265r-hfxg-fhmg, GO-2025-3528, openSUSE-SU-2025:15039-1, openSUSE-SU-2025:15169-1, CGA-22hg-vg3m-584x, CGA-247m-cmfm-3gjv, CGA-26w5-q6fh-c3wv, CGA-2899-rqwp-6xqx, CGA-2cjq-cgm3-454q, CGA-2g7j-c5fq-qwr7, CGA-2h5c-vj3q-j26g, CGA-2m74-gq8c-v4v7, CGA-2mm7-fc4c-3vmg, CGA-2r5c-6cvh-8wgj, CGA-2x5f-v6v5-pv54, CGA-2x7c-4cgx-2gc6, CGA-2xx6-qrfw-2cq5, CGA-347g-vjwh-ff56, CGA-35f8-28w5-9q33, CGA-39qv-c89r-5m83, CGA-3gwv-847h-x26j, CGA-3h9p-cf3v-5797, CGA-3p6w-76x2-f4mf, CGA-3pj9-r6r6-w2gh, CGA-3q39-crrg-x766, CGA-3r7p-2p9j-cwfx, CGA-3w76-56g5-px2g, CGA-3x33-75c3-v7vm, CGA-3xrv-gwv8-cmpw, CGA-42v8-xcjq-mg86, CGA-433x-8j3w-657v, CGA-43rx-f8xg-wwx5, CGA-44cj-j623-4vf8, CGA-44qc-496r-rc2p, CGA-46mr-p7fh-fh2w, CGA-46p9-9cph-fm49, CGA-47qv-p2f4-2xmf, CGA-4ggf-qxhp-x38j, CGA-4rf9-p432-8qxj, CGA-53hw-xgxv-692q, CGA-54pv-3p52-cx42, CGA-54x4-7ffh-mq43, CGA-582j-mh6h-h6hr, CGA-58q3-3924-f928, CGA-58qc-7895-vgc5, CGA-5chm-mw73-xvq4, CGA-5fc6-vrrx-c663, CGA-5jh6-86p5-48f6, CGA-5m5j-mw2m-pf57, CGA-5wmc-3rvp-gh7g, CGA-6259-3mrf-p2j4, CGA-64vq-jwcj-gq2w, CGA-6642-vp8p-323g, CGA-665v-mq2x-m3jw, CGA-66vg-mg3v-94jf, CGA-6c93-3v64-w3q7, CGA-6fq9-7cqc-wpvf, CGA-6hv5-9rg2-x2xw, CGA-6j5h-7gxr-fmc5, CGA-6qp7-287j-ghjq, CGA-6rpx-73rf-w3jj, CGA-6w2q-jf35-ff55, CGA-7967-vhx7-x4c6, CGA-7g8q-wcv6-4phq, CGA-7hfq-2jgg-qmm9, CGA-7j3r-8939-hjmq, CGA-7jxj-65xp-jx2j, CGA-7qj3-gxw9-frxp, CGA-7v6p-mmxw-4jpv, CGA-823q-m4w5-847r, CGA-84q5-cmgf-f3c4, CGA-84v6-556g-fqxq, CGA-859j-gch3-7223, CGA-8m25-wg8g-37pc, CGA-8m9p-p769-xjq2, CGA-8p5w-wjmg-wmp9, CGA-8p67-4r6v-xfj5, CGA-8p7p-g64c-853g, CGA-8wcm-c5jh-446p, CGA-8xc5-jqgh-pxpv, CGA-9532-4xg4-vqmf, CGA-9875-w5hw-86ph, CGA-9964-r8h9-676c, CGA-9c5j-rgj9-mg67, CGA-9c96-75vr-p86m, CGA-9cvq-j49c-42mw, CGA-9g86-x49c-gwpg, CGA-9gf8-68qc-cfrj, CGA-9h3c-c797-67wv, CGA-9p83-4hhm-j836, CGA-9rrp-rjvp-cgv2, CGA-9w62-cxr7-fgx6, CGA-c3pf-3f56-x9c2, CGA-c433-whw8-pfmm, CGA-c83m-c7q4-2wcg, CGA-c967-q6hj-wv33, CGA-c983-6v9f-6r9j, CGA-cc59-m77c-mh8v, CGA-cfgv-vpq2-9vrh, CGA-cgmh-cgfx-pv36, CGA-ch9v-72j9-5g93, CGA-f4cc-7xpr-5299, CGA-f52g-3v2c-3wr3, CGA-f5hr-45cq-gc3x, CGA-f7r9-fgfh-j43j, CGA-fg7c-29q7-75mf, CGA-fgr6-q3mm-8jpm, CGA-fm86-rpp7-995x, CGA-g6g6-6xm4-x9qp, CGA-g8pc-cjcm-xvx4, CGA-gc82-q9h8-fp9q, CGA-gr36-4vwg-w7vm, CGA-gwvh-hc64-x7m9, CGA-gx37-crrr-9728, CGA-h2wm-mc8p-rwqc, CGA-h36w-859p-6gvj, CGA-h5qx-7gxp-vqmg, CGA-h5x3-4hpp-2rvq, CGA-h746-8rm8-xff8, CGA-h995-fvjr-99mq, CGA-hp2m-9cv4-9f4m, CGA-hp8x-9fch-6g4h, CGA-hqfg-3ch6-5673, CGA-hwmp-5ch7-33pq, CGA-j276-fgxm-wv88, CGA-j284-q8wg-jvwh, CGA-j29g-f643-wvrh, CGA-j4mg-59hx-5w8m, CGA-j759-r7g7-cwwh, CGA-jgcq-v8ww-gvpw, CGA-jmv3-phfh-mprp, CGA-jpr5-g5m3-r8p7, CGA-jrjp-6m47-vgh2, CGA-jx46-4gm8-q3cq, CGA-jxmg-cqr6-69q3, CGA-m26c-f52w-m8gw, CGA-m5w3-4cqm-8x6g, CGA-m64h-vc4q-f4q4, CGA-m7vr-m3w8-9pr6, CGA-m8gc-q85g-fwcw, CGA-mg3r-5v55-fphv, CGA-mm3f-96fj-468f, CGA-mppr-cg3j-ffx5, CGA-mrr3-87r6-2q4x, CGA-mw99-9m8j-gcx9, CGA-mwq5-69hc-w23r, CGA-p2p3-phm8-6623, CGA-p3v3-xwwm-2v78, CGA-p9q9-8p8m-mmgw, CGA-pgvg-8v39-2xxg, CGA-pjp5-gvg4-246v, CGA-pqr2-55wr-h3w6, CGA-pv3f-h5xq-34gv, CGA-pvc7-c479-72r9, CGA-pxqc-c7px-9457, CGA-q2g4-j22f-gxw3, CGA-q39x-7r23-75m2, CGA-qhw2-2g2v-mvcp, CGA-qr93-qcgv-r6x7, CGA-qrm8-vxvq-9j5g, CGA-qwx4-pj4p-c8mm, CGA-r2mw-5crp-hc66, CGA-r7cc-2q96-qrgf, CGA-rc5h-cx43-g9f6, CGA-rgh8-h9fv-pprh, CGA-v67c-q5rw-mrg9, CGA-v7jf-93qf-365x, CGA-v7r2-g86c-x8wj, CGA-v8pm-r5rj-98m9, CGA-v99f-8j49-6pfc, CGA-vh75-pf2j-qjjq, CGA-vhf3-4px7-63fx, CGA-vhg8-928v-8pfv, CGA-vmp8-g63v-752p, CGA-vpfm-9qjg-hp9p, CGA-vpp7-jfv8-3wjm, CGA-vvx8-v8m8-2vjj, CGA-vw5r-qqg4-xwmc, CGA-w3f6-qx46-qp3q, CGA-w54h-hp2q-9hf7, CGA-wfg9-vvcx-999v, CGA-wjrr-pp26-g5c7, CGA-x3f2-vchp-qpp2, CGA-x4r2-r7w8-9mvh, CGA-xhq5-j498-r8rr, CGA-xm32-hf2h-3qm4, CGA-xqx9-fp88-68p6, CGA-xx6r-g6wr-wh9h
- Record: https://cvemate.com/vulnerability/CVE-2024-40635 · JSON: https://cvemate.com/vulnerability/CVE-2024-40635/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.304%, percentile 24.926%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 286)

- chainguard auditbeat-7 (Chainguard): \< 7.17.28-r7
- chainguard auditbeat-7-oci-entrypoint (Chainguard): \< 7.17.28-r7
- chainguard auditbeat-fips-7 (Chainguard): \< 7.17.28-r5
- chainguard beats-7 (Chainguard): \< 7.17.28-r7
- chainguard beats-fips-7 (Chainguard): \< 7.17.28-r5
- chainguard buildctl (Chainguard): \< 0.20.1-r3
- chainguard buildctl-fips (Chainguard): \< 0.20.1-r3
- chainguard buildkitd (Chainguard): \< 0.20.1-r3
- chainguard buildkitd-fips (Chainguard): \< 0.20.1-r3
- chainguard cert-manager-cmctl (Chainguard): \< 2.1.1-r9
- chainguard cert-manager-cmctl-fips (Chainguard): \< 2.1.1-r9
- chainguard chainctl (Chainguard): \< 0.2.59-r0
- chainguard chartmuseum (Chainguard): \< 0.16.2-r15
- chainguard cilium-cli (Chainguard): \< 0.18.2-r2
- chainguard cluster-api-helm-controller (Chainguard): \< 0.3.2-r2
- chainguard cluster-api-helm-controller-compat (Chainguard): \< 0.3.2-r2
- chainguard cluster-api-helm-controller-fips (Chainguard): \< 0.3.2-r2
- chainguard cluster-api-helm-controller-fips-compat (Chainguard): \< 0.3.2-r2
- chainguard consul-k8s-1.1 (Chainguard): \< 1.1.18-r9
- chainguard consul-k8s-1.1-cli (Chainguard): \< 1.1.18-r9

## References (first 20 of 25)

- <https://github.com/containerd/containerd/security/advisories/GHSA-265r-hfxg-fhmg>
- <https://github.com/containerd/containerd/commit/05044ec0a9a75232cad458027ca83437aae3f4da>
- <https://github.com/containerd/containerd/commit/1a43cb6a1035441f9aca8f5666a9b3ef9e70ab20>
- <https://github.com/containerd/containerd/commit/cf158e884cfe4812a6c371b59e4ea9bc4c46e51a>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00005.html>
- <https://advisories.mageia.org/MGASA-2025-0130.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34145>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IAMUEOAZJQQS6MSFKLEO72TDYAONTTXF/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20251345-1/>
- <https://bugzilla.suse.com/1239749>
- <https://www.suse.com/security/cve/CVE-2024-40635>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20251346-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202520216-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202520459-1/>
- <https://ubuntu.com/security/CVE-2024-40635>
- <https://www.cve.org/CVERecord?id=CVE-2024-40635>
- <https://github.com/containerd/containerd/commit/11504c3fc5f45634f2d93d57743a998194430b82>
- <https://github.com/containerd/containerd/commit/9639b9625554183d0c4d8d072dccb84fedd2320f>
- <https://ubuntu.com/security/notices/USN-7374-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-40635>

---

Data as of 2026-12-05T04:39:28.797Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
