Skip to content
OpenAdvisories
Medium · 5.7 CVE-2022-23471 EUVD-2022-7476GHSA-2qjp-425j-52j9GO-2022-1147

containerd CRI stream server: Host memory exhaustion through terminal resize goroutine leak

Published Dec 7, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
containerd containerd < 1.5.16, >= 1.6.0, < 1.6.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 containerd 1.6.12~ds1-1 —
Debian 13 containerd 1.6.12~ds1-1 —
Debian 12 containerd 1.6.12~ds1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS containerd 1.5.9-0ubuntu3.1 USN-5776-1
Ubuntu 20.04 LTS containerd 1.5.9-0ubuntu1~20.04.6 USN-5776-1
Ubuntu 18.04 LTS containerd 1.5.9-0ubuntu1~18.04.2 USN-5776-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS containerd No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP4 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLES 15 SP3 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLES 15 SP2 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLES 15 SP1 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLES 15 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
Show 18 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 containerd 1.6.12-16.68.1 SUSE-SU-2023:1566-1, SUSE-SU-2022:4409-1
SLES for SAP 15 SP3 containerd 1.6.16-150000.82.2 SUSE-SU-2023:1628-1
SLES for SAP 15 SP2 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLES for SAP 15 SP1 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLES for SAP 15 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
SLE Micro 5.3 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLE Micro 5.2 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLE Micro 5.1 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLE HPC 15 SP3 containerd 1.6.16-150000.82.2 SUSE-SU-2023:1628-1
SLE HPC 15 SP2 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLE HPC 15 SP1 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SLE HPC 15 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
SUSE Manager Server 4.1 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
SUSE Manager Retail Branch Server 4.1 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
SUSE Manager Proxy 4.1 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
SUSE Enterprise Storage 7.1 containerd 1.6.16-150000.82.2 SUSE-SU-2023:1628-1
SUSE Enterprise Storage 7 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
SUSE Enterprise Storage 6 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed containerd 1.6.12-1.1 openSUSE-SU-2024:12558-1
openSUSE Leap 15.4 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
openSUSE Leap 15.3 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 containerd 1.6.12-150000.79.1 SUSE-SU-2023:1628-1, SUSE-SU-2022:4463-1
openSUSE Leap Micro 5.2 containerd 1.6.12-150000.79.1 SUSE-SU-2022:4463-1
ReleasePackageFixed inAdvisory
Alpine v3.24 containerd 1.6.12-r0 —
Alpine v3.23 containerd 1.6.12-r0 —
Alpine v3.22 containerd 1.6.12-r0 —
Alpine v3.21 containerd 1.6.12-r0 —
Alpine v3.20 containerd 1.6.12-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 containerd 1.6.12-r0 —
Alpine v3.18 containerd 1.6.12-r0 —
Alpine v3.17 containerd 1.6.12-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 containerd +1 1.6.19-1.amzn2023.0.1 ALAS2023-2023-156

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) moby-containerd 1.6.12-3 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ctop 0.7.7-r13 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/containerd/containerd < 1.5.16 1.5.16 GHSA-2qjp-425j-52j9
Go github.com/containerd/containerd >= 1.6.0, < 1.6.12 1.6.12 GHSA-2qjp-425j-52j9
Go github.com/containerd/containerd < 1.5.16 · >= 1.6.0, < 1.6.12 1.5.16, 1.6.12 GO-2022-1147

Advisories 12

References