Skip to content

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

HighCVSS 7.8 EPSS 0.30%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
DockerUbuntuDebian

Description

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.

Upgrade path

16 packages: 14 fixed.

PackageAffectedFixed inStatus
azure linux containerd(Azure Linux 3.0) < 1.7.13-8 1.7.13-8 Fixed
azure linux containerd2(Azure Linux 3.0) < 2.0.0-8 2.0.0-8 Fixed
azure linux moby-containerd-cc(Azure Linux 3.0) < 1.7.7-9 1.7.7-9 Fixed
cbl-mariner moby-containerd(CBL-Mariner 2.0) < 1.6.26-11 1.6.26-11 Fixed
cbl-mariner moby-containerd-cc(CBL-Mariner 2.0) < 1.7.7-11 1.7.7-11 Fixed
containerd(Go) < 1.6.38; < 2.0.4; >= 1.7.0-beta.0, < 1.7.27 1.6.38, 1.7.27, 2.0.4 Fixed
debian/containerd(Debian 12) < 1.6.20~ds1-1+deb12u2; = 1.6.20~ds1-1; = 1.6.20~ds1-1+deb12u1 1.6.20~ds1-1+deb12u2 Fixed
debian/containerd(Debian 13) < 1.7.24~ds1-6 1.7.24~ds1-6 Fixed
debian/containerd(Debian 14) < 1.7.24~ds1-6 1.7.24~ds1-6 Fixed
linuxfoundation containerd < 1.6.38; >= 1.7.0, < 1.7.27; >= 2.0.0, < 2.0.4 1.6.38, 1.7.27, 2.0.4 Fixed
ubuntu/containerd(Ubuntu 22.04) < 1.6.12-0ubuntu1~22.04.8 1.6.12-0ubuntu1~22.04.8 Fixed
ubuntu/containerd(Ubuntu 24.04) < 1.6.24~ds1-1ubuntu1.2+esm1 1.6.24~ds1-1ubuntu1.2+esm1 Fixed
ubuntu/containerd-app(Ubuntu 22.04) < 1.7.24-0ubuntu1~22.04.2 1.7.24-0ubuntu1~22.04.2 Fixed
ubuntu/containerd-app(Ubuntu 24.04) < 1.7.24-0ubuntu1~24.04.2 1.7.24-0ubuntu1~24.04.2 Fixed
containerd = < 1.6.38; = >= 1.7.0-beta.0, < 1.7.27; = >= 2.0.0-beta.0, < 2.0.4 No fix listed Versions listed
debian linux = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
containerd(Go) < 2.0.4 2.0.4
containerd(Go) >= 1.7.0-beta.0, < 1.7.27 1.7.27
containerd(Go) < 1.6.38 1.6.38
azure linux moby-containerd-cc(Azure Linux:3.0) < 1.7.7-9 1.7.7-9
azure linux containerd2(Azure Linux:3.0) < 2.0.0-8 2.0.0-8
azure linux containerd(Azure Linux:3.0) < 1.7.13-8 1.7.13-8
cbl-mariner moby-containerd(CBL-Mariner:2.0) < 1.6.26-11 1.6.26-11
cbl-mariner moby-containerd-cc(CBL-Mariner:2.0) < 1.7.7-11 1.7.7-11
debian/containerd(Debian:12) < 1.6.20~ds1-1+deb12u2 1.6.20~ds1-1+deb12u2
debian/containerd(Debian:12) = 1.6.20~ds1-1 No fix listed
debian/containerd(Debian:12) = 1.6.20~ds1-1+deb12u1 No fix listed
debian/containerd(Debian:13) < 1.7.24~ds1-6 1.7.24~ds1-6
debian/containerd(Debian:14) < 1.7.24~ds1-6 1.7.24~ds1-6
ubuntu/containerd(Ubuntu:22.04) < 1.6.12-0ubuntu1~22.04.8 1.6.12-0ubuntu1~22.04.8
ubuntu/containerd-app(Ubuntu:22.04) < 1.7.24-0ubuntu1~22.04.2 1.7.24-0ubuntu1~22.04.2
containerd = < 1.6.38 No fix listed
containerd = >= 1.7.0-beta.0, < 1.7.27 No fix listed
containerd = >= 2.0.0-beta.0, < 2.0.4 No fix listed
ubuntu/containerd-app(Ubuntu:24.04) < 1.7.24-0ubuntu1~24.04.2 1.7.24-0ubuntu1~24.04.2
ubuntu/containerd(Ubuntu:24.04) < 1.6.24~ds1-1ubuntu1.2+esm1 1.6.24~ds1-1ubuntu1.2+esm1
linuxfoundation containerd < 1.6.38 1.6.38
linuxfoundation containerd >= 1.7.0, < 1.7.27 1.7.27
linuxfoundation containerd >= 2.0.0, < 2.0.4 2.0.4
debian linux = 11.0 No fix listed

References