CVE-2022-31030
JSON

5.5medium

containerd CRI plugin: Host memory exhaustion through ExecSync

Severity
5.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.46% (higher than 32% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5ffw-gxpp-mxpfGO-2022-0482

Description

containerd is an open source container runtime. A bug was found in the containerd's CRI implementation where programs inside a container can cause the containerd daemon to consume memory without bound during invocation of the `ExecSync` API. This can cause containerd to consume all available memory on the computer, denying service to other legitimate workloads. Kubernetes and crictl can both be configured to use containerd's CRI implementation; `ExecSync` may be used when running probes or when executing processes via an "exec" facility. This bug has been fixed in containerd 1.6.6 and 1.5.13. Users should update to these versions to resolve the issue. Users unable to upgrade should ensure that only trusted images and commands are used.

Affected

Product or packageVersionsReported by
containerd containerd< 1.5.13, >= 1.6.0, < 1.6.6CVE List
github.com/containerd/containerd (Go)before 1.5.13, from 1.6.0 before 1.6.6GitHub Advisory Database, Go Vulnerability Database
linuxfoundation containerdbefore 1.5.13, from 1.6.0 before 1.6.6NVD
debian debian_linux11.0NVD
fedoraproject fedora35, 36NVD

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD2.1low CVSS:2.0AV:L/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

containerd is an open source container runtime. A bug was found in the containerd's CRI implementation where programs inside a container can cause the containerd daemon to consume memory without bound during invocation of the `ExecSync` API. This can cause containerd to consume all available memory on the computer, denying service to other legitimate workloads. Kubernetes and crictl can both be configured to use containerd's CRI implementation; `ExecSync` may be used when running probes or when executing processes via an "exec" facility. This bug has been fixed in containerd 1.6.6 and 1.5.13. Users should update to these versions to resolve the issue. Users unable to upgrade should ensure that only trusted images and commands are used.

GitHub Advisory Database
Impact

A bug was found in containerd's CRI implementation where programs inside a container can cause the containerd daemon to consume memory without bound during invocation of the ExecSync API. This can cause containerd to consume all available memory on the computer, denying service to other legitimate workloads. Kubernetes and crictl can both be configured to use containerd's CRI implementation; ExecSync may be used when running probes or when executing processes via an "exec" facility.

Patches

This bug has been fixed in containerd 1.6.6 and 1.5.13. Users should update to these versions to resolve the issue.

Workarounds

Ensure that only trusted images and commands are used.

References
Credits

The containerd project would like to thank David Korczynski and Adam Korczynski of ADA Logics for responsibly disclosing this issue in accordance with the containerd security policy during a security audit sponsored by CNCF and facilitated by OSTIF.

For more information

If you have any questions or comments about this advisory:

Go Vulnerability Database

containerd CRI plugin: Host memory exhaustion through ExecSync in github.com/containerd/containerd

NVD (es)

containerd es un tiempo de ejecución de contenedores de código abierto. Se ha encontrado un error en la implementación de CRI de containerd en el que los programas dentro de un contenedor pueden causar que el demonio containerd consuma memoria sin límites durante la invocación de la API "ExecSync". Esto puede causar que containerd consuma toda la memoria disponible en el equipo, negando el servicio a otras cargas de trabajo legítimas. Tanto Kubernetes como crictl pueden configurarse para usar la implementación CRI de containerd; "ExecSync" puede usarse cuando son ejecutadas sondas o cuando son ejecutados procesos por medio de una instalación "exec". Este error ha sido corregido en containerd versiones 1.6.6 y 1.5.13. Los usuarios deben actualizar a estas versiones para resolver el problema. Los usuarios que no puedan actualizar deberían asegurarse de que sólo son usadas imágenes y comandos confiables

References

https://github.com/containerd/containerd/security/advisories/GHSA-5ffw-gxpp-mxpfadvisory, third-party-advisory, web
https://github.com/containerd/containerd/commit/c1bcabb4541930f643aa36a2b38655e131346382fix, product, third-party-advisory, web
http://www.openwall.com/lists/oss-security/2022/06/07/1mailing-list, third-party-advisory, web
https://www.debian.org/security/2022/dsa-5162third-party-advisory, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSIGDBHAB3I75JBJNGWEPBTJPS2FOVHD/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/REOZCUAPCA7NFDWYBDYX6EYXWLHABKBO/vendor-advisory
https://security.gentoo.org/glsa/202401-31vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2022-31030advisory
https://github.com/containerd/containerdpackage
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/REOZCUAPCA7NFDWYBDYX6EYXWLHABKBOweb
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WSIGDBHAB3I75JBJNGWEPBTJPS2FOVHDweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/REOZCUAPCA7NFDWYBDYX6EYXWLHABKBOweb

Related

Sources

SourceRecordLicence
CVE ListCVE-2022-31030 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-5ffw-gxpp-mxpf changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0482 changed 2026-02-04CC-BY-4.0
NVDCVE-2022-31030 changed 2026-06-17Public domain