Vulnerability Name:

CVE-2021-20291 (CCN-199425)

Assigned:2020-12-17
Published:2021-04-01
Updated:2021-06-02
Summary: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).
CVSS v3 Severity:6.5 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H)
5.7 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
5.5 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H)
4.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
6.5 Medium (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H)
5.7 Medium (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
CVSS v2 Severity:7.1 High (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:N/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Complete
4.6 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:N/I:N/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Complete
Vulnerability Type:CWE-667
Vulnerability Consequences:Denial of Service
References:Source: MITRE
Type: CNA
CVE-2021-20291

Source: CCN
Type: Red Hat Bugzilla - Bug 1939485
(CVE-2021-20291) - CVE-2021-20291 containers/storage: DoS via malicious image

Source: MISC
Type: Issue Tracking, Patch, Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1939485

Source: XF
Type: UNKNOWN
containers-cve202120291-dos(199425)

Source: CCN
Type: storage GIT Repository
Use an xz library instead of shelling out to xz for decompression

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-ec00da7faa

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-c56a213327

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-a3703b9dc8

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-83b3740389

Source: MISC
Type: Exploit, Third Party Advisory
https://unit42.paloaltonetworks.com/cve-2021-20291/

Source: CCN
Type: IBM Security Bulletin 7001867 (Cloud Pak for Security)
IBM Cloud Pak for Security includes components with multiple known vulnerabilities

Vulnerable Configuration:Configuration 1:
  • cpe:/a:storage_project:storage:*:*:*:*:*:*:*:* (Version < 1.28.1)

  • Configuration 2:
  • cpe:/a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:fedoraproject:fedora:33:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration RedHat 3:
  • cpe:/a:redhat:enterprise_linux:9:*:*:*:*:*:*:*

  • Configuration RedHat 4:
  • cpe:/a:redhat:enterprise_linux:9::appstream:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:ibm:cloud_pak_for_security:1.10.0.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:7584
    P
    libcontainers-common-20230214-150500.2.1 on GA media (Moderate)
    2023-06-12
    oval:com.redhat.rhsa:def:20228008
    P
    RHSA-2022:8008: buildah security and bug fix update (Moderate)
    2022-11-15
    oval:com.redhat.rhsa:def:20227954
    P
    RHSA-2022:7954: podman security and bug fix update (Moderate)
    2022-11-15
    oval:com.redhat.rhsa:def:20227955
    P
    RHSA-2022:7955: skopeo security and bug fix update (Moderate)
    2022-11-15
    oval:org.opensuse.security:def:119739
    P
    Security update for libcontainers-common (Moderate) (in QA)
    2022-08-31
    oval:org.opensuse.security:def:118972
    P
    Security update for libcontainers-common (Moderate) (in QA)
    2022-08-31
    oval:org.opensuse.security:def:119826
    P
    Security update for libcontainers-common (Moderate) (in QA)
    2022-08-31
    oval:org.opensuse.security:def:119277
    P
    Security update for libcontainers-common (Moderate) (in QA)
    2022-08-31
    oval:org.opensuse.security:def:119728
    P
    Security update for libcontainers-common (Moderate) (in QA)
    2022-08-31
    oval:org.opensuse.security:def:118782
    P
    Security update for libcontainers-common (Moderate) (in QA)
    2022-08-31
    oval:org.opensuse.security:def:3000
    P
    MozillaFirefox-68.1.0-109.92.1 on GA media (Moderate)
    2022-06-28
    oval:org.opensuse.security:def:94630
    P
    libcontainers-common-20210626-150400.1.3 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:98958
    P
    Security update for conmon, libcontainers-common, libseccomp, podman (Moderate)
    2022-03-04
    oval:org.opensuse.security:def:42308
    P
    Security update for conmon, libcontainers-common, libseccomp, podman (Moderate)
    2022-02-25
    oval:org.opensuse.security:def:923
    P
    Security update for conmon, libcontainers-common, libseccomp, podman (Moderate)
    2022-02-25
    oval:org.opensuse.security:def:101615
    P
    Security update for conmon, libcontainers-common, libseccomp, podman (Moderate)
    2022-02-25
    oval:org.opensuse.security:def:994
    P
    Security update for conmon, libcontainers-common, libseccomp, podman (Moderate)
    2022-02-25
    oval:org.opensuse.security:def:101684
    P
    Security update for conmon, libcontainers-common, libseccomp, podman (Moderate)
    2022-02-25
    oval:com.redhat.rhba:def:20220348
    P
    RHBA-2022:0348: container-tools:3.0 security, bug fix, and enhancement update (Moderate)
    2022-02-01
    oval:com.redhat.rhsa:def:20214154
    P
    RHSA-2021:4154: container-tools:rhel8 security, bug fix, and enhancement update (Moderate)
    2021-11-09
    BACK
    storage_project storage *
    redhat openshift container platform 4.0
    redhat enterprise linux 8.0
    fedoraproject fedora 33
    fedoraproject fedora 34
    ibm cloud pak for security 1.10.0.0