{"id":"CVE-2022-23471","published":"2022-12-07T22:51:34Z","modified":"2025-04-23T16:31:30Z","title":"containerd CRI stream server: Host memory exhaustion through terminal resize goroutine leak","vendor":"containerd","product":"containerd","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01114,"percentile":0.6683,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-2qjp-425j-52j9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/containerd/containerd/commit/a05d175400b1145e5e6a735a6710579d181e7fb0","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/202401-31","tags":[]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":13.37},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"containerd","affectedVersions":[{"vendor":"containerd","product":"containerd","versions":["< 1.5.16",">= 1.6.0, < 1.6.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:52:53.736356Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/containerd/containerd","vulnerableRanges":["<1.5.16",">=1.6.0, <1.6.12"],"patched":["1.5.16","1.6.12"],"from":["GHSA-2qjp-425j-52j9","GO-2022-1147"],"provenance":"source"}],"summary":{"text":"A flaw in containerd's CRI stream server, the component that handles container I/O for the CRI implementation used by Kubernetes and crictl, causes a goroutine to leak when terminal resize handling is requested with a TTY and the user's process fails to launch. An attacker with network access and low privileges, where user interaction is required, can exhaust memory on the host, which is a denial-of-service condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:10Z"},"euvd":{"id":"EUVD-2022-7476","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-43816","published":"2022-01-05","fixed":"1.5.9","kev":false},{"cve":"CVE-2022-23648","published":"2022-03-03","fixed":"1.6.1","kev":false},{"cve":"CVE-2022-31030","published":"2022-06-06","fixed":"1.6.6","kev":false,"link":{"from":"CVE-2022-31030","to":"CVE-2022-23471","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.5.13","toFixed":"1.5.16","daysApart":184}]}},{"cve":"CVE-2022-23471","published":"2022-12-07","fixed":"1.6.12","kev":false},{"cve":"CVE-2023-25153","published":"2023-02-16","fixed":"1.6.18","kev":false,"link":{"from":"CVE-2022-23471","to":"CVE-2023-25153","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.5.16","toFixed":"1.5.18","daysApart":71}]}},{"cve":"CVE-2023-25173","published":"2023-02-16","fixed":"1.6.18","kev":false,"link":{"from":"CVE-2022-23471","to":"CVE-2023-25173","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.5.16","toFixed":"1.5.18","daysApart":71}]}},{"cve":"CVE-2024-40635","published":"2025-03-17","fixed":"1.7.27","kev":false}],"package":"Go:github.com/containerd/containerd"}}