CVE-2022-23471containerd CRI stream server: Host memory exhaustion through terminal resize goroutine…
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.
What to do
Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | containerd | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | containerd | Fixed | 1.5.9-0ubuntu3.1 | UBUNTU-CVE-2022-23471 |
| Ubuntu 20.04 | containerd | Fixed | 1.5.9-0ubuntu1~20.04.6 | UBUNTU-CVE-2022-23471 |
| Ubuntu 18.04 | containerd | Fixed | 1.5.9-0ubuntu1~18.04.2 | UBUNTU-CVE-2022-23471 |
| Ubuntu 16.04 | containerd | Fix pending | UBUNTU-CVE-2022-23471 | |
| Debian 14 | containerd | Fixed | 1.6.12~ds1-1 | DEBIAN-CVE-2022-23471 |
| Debian 13 | containerd | Fixed | 1.6.12~ds1-1 | DEBIAN-CVE-2022-23471 |
| Debian 12 | containerd | Fixed | 1.6.12~ds1-1 | DEBIAN-CVE-2022-23471 |
| Alpine Linux 3.24 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Alpine Linux 3.23 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Alpine Linux 3.22 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Alpine Linux 3.21 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Alpine Linux 3.20 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Alpine Linux 3.19 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Alpine Linux 3.18 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Alpine Linux 3.17 | containerd | Fixed | 1.6.12-r0 | ALPINE-CVE-2022-23471 |
| Go library | github.com/containerd/containerd | Fixed | 1.5.16 | GO-2022-1147 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- containerd: affected: < 1.5.16, >= 1.6.0, < 1.6.12
References
- https://github.com/containerd/containerd/security/advisories/GHSA-2qjp-425j-52j9
- https://github.com/containerd/containerd/commit/a05d175400b1145e5e6a735a6710579d181e7fb0
- https://security.gentoo.org/glsa/202401-31
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.