CVE-2022-23471
containerd CRI stream server vulnerable to host memory exhaustion via terminal
Reported by github_m · Published December 7, 2022
github.com/containerd/containerd is fixed in 1.6.12 and 1.5.16 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/containerd/containerd | Go Modules | 1.6.12, 1.5.16 |
| ctop | Chainguard | 0.7.7-r13 |
| ctop | Wolfi | 0.7.7-r13 |
| containerd-stress | Amazon Linux | 1.6.19-1.amzn2023.0.1 |
| containerd | Alpine | 1.6.12-r0 |
| flux-helm-controller-0.37 | Chainguard | 0.27.0-r7 |
| containerd | Amazon Linux | 1.6.19-1.amzn2023.0.1 |
| containerd | linuxfoundation | 1.6.12, 1.5.16 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| containerd | containerd | < 1.5.16, >= 1.6.0, < 1.6.12 |
| chainguard | ctop | 0 |
| wolfi | ctop | 0 |
| amazon:2023 | containerd-stress | 0 |
| alpine | containerd | 0 |
| github.com | containerd/containerd | 0, 1.6.0 |
| chainguard | flux-helm-controller-0.37 | 0 |
| amazon:2023 | containerd | 0 |
| containerd | containerd | 0, 1.6.0 |
Timeline
- Dec 7, 2022 CVE Published
- Dec 8, 2022 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (2 in total, the first dated here)
- Jul 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-23471
vulnetix vdb fixes CVE-2022-23471
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-23471/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/containerd/containerd/security/advisories/GHSA-2qjp-425j-52j9 x_refsource_CONFIRM
- https://github.com/containerd/containerd/commit/a05d175400b1145e5e6a735a6710579d181e7fb0 x_refsource_MISC
- https://github.com/containerd/containerd/commit/241563be06a3de8b6a849414c4e805b68d3bb295 patch
- https://github.com/containerd/containerd/releases/tag/v1.5.16 url
- https://github.com/containerd/containerd/releases/tag/v1.6.12 url
- https://nvd.nist.gov/vuln/detail/CVE-2022-23471 advisory
- https://github.com/advisories/GHSA-2qjp-425j-52j9 advisory