Skip to main content

Integer Overflow or Wraparound

CVE-2024-40635

Severity Medium
Score 4.6/10

Summary

containerd is an open-source container runtime. A bug was found in containerd prior to versions prior to 1.6.38, 1.7.x prior to 1.7.27 and 2.0.x prior to 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. As a workaround, ensure that only trusted images are used and that only trusted users have permissions to import images.

  • LOW
  • LOCAL
  • LOW
  • CHANGED
  • NONE
  • HIGH
  • LOW
  • NONE

CWE-190 - Integer Overflow or Wraparound

The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

Advisory Timeline

  • Published