CVE-2022-23471

Public on 2022-12-07
Modified on 2023-06-07
Description
containerd is an open source container runtime. A bug was found in containerd's CRI implementation where a user can exhaust memory on the host. In the CRI stream server, a goroutine is launched to handle terminal resize events if a TTY is requested. If the user's process fails to launch due to, for example, a faulty command, the goroutine will be stuck waiting to send without a receiver, resulting in a memory leak. Kubernetes and crictl can both be configured to use containerd's CRI implementation and the stream server is used for handling container IO. This bug has been fixed in containerd 1.6.12 and 1.5.16. Users should update to these versions to resolve the issue. Users unable to upgrade should ensure that only trusted images and commands are used and that only trusted users have permissions to execute commands in running containers.
Severity
Medium severity
Medium
CVSS v3 Base Score
6.5
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 1 containerd Pending Fix
Amazon Linux 2 - Docker Extra containerd 2023-03-30 ALAS2DOCKER-2023-023 Fixed
Amazon Linux 2 - Ecs Extra containerd 2023-03-30 ALAS2ECS-2023-002 Fixed
Amazon Linux 2 - Aws-nitro-enclaves-cli Extra containerd 2023-03-30 ALAS2NITRO-ENCLAVES-2023-023 Fixed
Amazon Linux 2023 containerd 2023-03-30 ALAS2023-2023-156 Fixed

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD CVSSv3 5.7 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H