containerd: CRI ExecSync Goroutine Leak Leads to Node-Level Denial of Service
Description
Impact
A bug in containerd's CRI ExecSync implementation allows exec probes and lifecycle hooks with background child processes to keep containerd's stdio-drain goroutines indefinitely blocked. Because the I/O drain phase lacks a default timeout or context cancellation handling, repeated ExecSync invocations (like probes) that include long-lived background processes against a container can cause containerd to leak goroutines and host memory. Over time, this resource exhaustion can cause the containerd daemon to be terminated by the OOM killer, rendering containerd unavailable until it is restarted. This issue affects containerd on Linux systems running with the CRI plugin enabled. Users not using containerd's CRI implementation or not running containers on Linux are not affected.
Patches
This bug has been fixed in containerd 2.3.5, 2.2.8, 2.0.12, and 1.7.35. Users should update to these versions to resolve the issue.
Workarounds
Ensure exec probes and lifecycle hooks do not launch long-lived background child processes.
Credits
The containerd project would like to thank XlabAI Team of Tencent Xuanwu Lab ([email protected]), including Guannan Wang, Zhanpeng Liu, Jiashuo Liang, and Guancheng Li, and @IamwhatIamSY who independently discovered and responsibly disclosed this issue in accordance with the containerd security policy.
For more information
If there are any questions or comments about this advisory:
- Open an issue in containerd
- Send an email to [email protected]
To report a security issue in containerd: * Report a new vulnerability * Send an email to [email protected]
Affected products
1- Range: >= 2.3.0, < 2.3.5
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-7jxh-36q5-gcqvghsaADVISORY
- github.com/containerd/containerd/releases/tag/v1.7.35ghsa
- github.com/containerd/containerd/releases/tag/v2.0.12ghsa
- github.com/containerd/containerd/releases/tag/v2.2.8ghsa
- github.com/containerd/containerd/releases/tag/v2.3.5ghsa
- github.com/containerd/containerd/security/advisories/GHSA-7jxh-36q5-gcqvghsa
News mentions
0No linked articles in our index yet.