Mitigating CVE-2021-20291: DoS affecting CRI-O and Podman
Blog post from Sysdig
CVE-2021-20291 is a medium-severity vulnerability found in the containers/storage Go library, affecting container engines like CRI-O (before v1.20.2) and Podman (before v3.1.0), which can lead to a Denial of Service (DoS) when a malicious image layer is introduced and executed within a containerized infrastructure, including Kubernetes and OpenShift. The vulnerability, which scores 6.5 on the CVSS scale, arises when an extra malicious layer is added to an image and uploaded to a registry; upon pulling the image, the engine's execution can result in a deadlock, halting other processes. Mitigation involves upgrading to secure versions of the affected engines and employing best practices such as using private registries and container image signing to ensure the authenticity and integrity of images, along with deploying security tools like Sysdig Secure to monitor and reinforce security posture.