CVE-2021-20291
Public on
Last Modified:
Description
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).
Statement
The vulnerability was first exposed in v1.23.8 of containers/storage (and subsequently fixed in v1.28.1) with this git commit [1].
-
In OpenShift Container Platform (OCP) only 4.7 contains a version of CRI-O (and openshift/ose-docker-builder) which uses a vulnerable version of containers/storage. Subsequently this has been addressed in OCP 4.7.7.
-
Red Hat Quay quay-builder-container is not affected because it uses a version of github.com/containers/storage earlier than v1.23.8
-
Red Hat Openshift Virtualization is not affected because all containers depending on github.com/containers/storage use a version earlier than v1.23.8
-
For Red Hat OpenStack Platform, because containers/storage is not directly used by the director-operator, no update will be provided at this time for the operator containers.
Additional Information
- This content is not included.Bugzilla 1939485: containers/storage: DoS via malicious image
- Content from cwe.mitre.org is not included.CWE-667: Improper Locking
- FAQ: Frequently asked questions about CVE-2021-20291
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2021-20291
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2021-20291
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Red Hat Cluster Application Migration | openshift-migration-plugin-container | Not affected | |
| Red Hat Enterprise Linux 7 | buildah | Out of support scope | |
| Red Hat Enterprise Linux 7 | podman | Out of support scope | |
| Red Hat Enterprise Linux 7 | skopeo | Out of support scope | |
| Red Hat Enterprise Linux 8 | container-tools:3.0 | Fixed | RHBA-2022:0348 |
| Red Hat Enterprise Linux 8 | container-tools:rhel8 | Fixed | RHSA-2021:4154 |
| Red Hat Enterprise Linux 8 | container-tools:1.0/buildah | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:1.0/podman | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:1.0/skopeo | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/buildah | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/podman | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/skopeo | Not affected | |
| Red Hat Enterprise Linux 9 | podman | Fixed | RHSA-2022:7954 |
| Red Hat Enterprise Linux 9 | skopeo | Fixed | RHSA-2022:7955 |
| Red Hat Enterprise Linux 9 | buildah | Fixed | RHSA-2022:8008 |
| Red Hat OpenShift Container Platform 4 | assisted-installer-container | Not affected | |
| Red Hat OpenShift Container Platform 4 | assisted-installer-reporter-container | Not affected | |
| Red Hat OpenShift Container Platform 4 | buildah | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/cnf-tests-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/compliance-rhel8-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/file-integrity-rhel8-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cluster-node-tuning-rhel9-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-machine-config-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | skopeo | Not affected | |
| Red Hat OpenShift Container Platform 4.7 | cri-o | Fixed | RHSA-2021:1150 |
| Red Hat OpenShift Container Platform 4.7 | openshift | Fixed | RHSA-2021:1150 |
| Red Hat OpenShift Container Platform 4.8 | openshift4/ose-docker-builder | Fixed | RHSA-2021:2438 |
| Red Hat OpenShift Virtualization 2 | virt-cdi-importer-container | Not affected | |
| Red Hat OpenShift Virtualization 2 | virt-cdi-uploadserver-container | Not affected | |
| Red Hat OpenStack Platform 16.2 | osp-director-provisioner-container | Will not fix | |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8-tech-preview/osp-director-operator | Will not fix | |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8/osp-director-downloader | Will not fix | |
| Red Hat Quay 3 | quay/quay-builder-rhel8 | Not affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 6.5 | 6.5 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | None | None |
| User Interaction | Required | Required |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | None | None |
| Integrity Impact | None | None |
| Availability Impact | High | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Acknowledgements
Red Hat would like to thank Aviv Sasson (Palo Alto Networks) for reporting this issue.
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.