CVE-2021-20291: Medium severity Storage Project Storage vulnerability

Published Mar 16, 2021
·
Updated

A deadlock vulnerability was found in 'github.com/containers/storage' in versions before 1.28.1. When a container image is processed, each layer is unpacked using tar. If one of those layers is not a valid tar archive this causes an error leading to an unexpected situation where the code indefinitely waits for the tar unpacked stream, which never finishes. An attacker could use this vulnerability to craft a malicious image, which when downloaded and stored by an application using containers/storage, would then cause a deadlock leading to a Denial of Service (DoS).

Other sources

A deadlock vulnerability was found in github.com/containers/storage. When a container image is processed, each layer is unpacked using tar. If one of those layers is not a valid tar archive this causes an error leading to an unexpected situation where the code indefinitely waits for the tar unpacked stream, which never finishes. An attacker could use this vulnerability to craft a malicious image, which when downloaded and stored by an application using containers/storage, would then cause a deadlock leading to a Denial of Service (DoS).

The decompression functionality of github.com/containers/storage in all versions starting from v1.23.8, is susceptible to a Denial of Service (DoS) when used during container image pulls by tools like podman and cri-o.

— Red Hat

Affected Software

11 affected componentsFixes available
redhat/podman<2:4.2.0-3.el9
2:4.2.0-3.el9
redhat/skopeo<2:1.9.2-1.el9
2:1.9.2-1.el9
redhat/buildah<1:1.27.0-2.el9
1:1.27.0-2.el9
redhat/cri-o<0:1.20.2-6.rhaos4.7.gitf1d5201.el8
0:1.20.2-6.rhaos4.7.gitf1d5201.el8
redhat/openshift<0:4.7.0-202104090228.p0.git.97111.77863f8.el8
0:4.7.0-202104090228.p0.git.97111.77863f8.el8
redhat/containers/storage<1.28.1
1.28.1
Storage Project Storage<1.28.1
redhat OpenShift Container Platform=4.0
redhat Enterprise Linux=8.0
Fedoraproject Fedora=33
Fedoraproject Fedora=34

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/podman to a version that resolves this vulnerability.

    Fixed in 2:4.2.0-3.el9
  2. Upgrade

    Upgrade redhat/skopeo to a version that resolves this vulnerability.

    Fixed in 2:1.9.2-1.el9
  3. Upgrade

    Upgrade redhat/buildah to a version that resolves this vulnerability.

    Fixed in 1:1.27.0-2.el9
  4. Upgrade

    Upgrade redhat/cri-o to a version that resolves this vulnerability.

    Fixed in 0:1.20.2-6.rhaos4.7.gitf1d5201.el8
  5. Upgrade

    Upgrade redhat/openshift to a version that resolves this vulnerability.

    Fixed in 0:4.7.0-202104090228.p0.git.97111.77863f8.el8
  6. Upgrade

    Upgrade redhat/containers/storage to a version that resolves this vulnerability.

    Fixed in 1.28.1
  7. Upgrade

    Upgrade github.com/containers/storage to a version that resolves this vulnerability.

    Fixed in 1.28.1

Event History

Mar 16, 2021
Data Sourced
via Red Hat·01:29 PM
DescriptionSeverityAffected Software
Apr 1, 2021
CVE Published
12:00 AM
CVE Published
via MITRE·05:49 PM
Data Sourced
via MITRE·05:49 PM
DescriptionWeakness
Data Sourced
via OSV·06:15 PM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-20291?

CVE-2021-20291 has been classified with a moderate severity level due to the potential for deadlock and system hang upon processing erroneous container images.

2

How do I fix CVE-2021-20291?

To fix CVE-2021-20291, upgrade to the designated patched versions of affected packages, such as containers/storage version 1.28.1 or higher.

3

Which software is affected by CVE-2021-20291?

CVE-2021-20291 affects various software packages including Podman, Skopeo, Buildah, and CRI-O, particularly those versions before the recommended updates.

4

What causes the CVE-2021-20291 vulnerability?

The CVE-2021-20291 vulnerability is caused by a deadlock issue arising when a non-valid tar archive is processed while unpacking container image layers.

5

Is CVE-2021-20291 exploitable remotely?

CVE-2021-20291 is not directly exploitable remotely as it requires processing of container images under specific erroneous conditions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203