Skip to content

CVE-2021-20291 Improper Locking in github.com/containers/storage

MediumCVSS 6.5 EPSS 1.6%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebianRed Hat

Description

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).

Upgrade path

9 packages: 5 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/golang-github-containers-storage(Ubuntu 20.04) = 1.13.2+dfsg1-2; = 1.13.2+dfsg1-3; = 1.13.5+dfsg1-1; = 1.15.1+dfsg1-1 +9 more No fix listed No fix yet
containers github.com/containers/storage(Go) < 1.28.1 1.28.1 Fixed
debian/golang-github-containers-storage(Debian 12) < 1.34.1+ds1-1 1.34.1+ds1-1 Fixed
debian/golang-github-containers-storage(Debian 13) < 1.34.1+ds1-1 1.34.1+ds1-1 Fixed
debian/golang-github-containers-storage(Debian 14) < 1.34.1+ds1-1 1.34.1+ds1-1 Fixed
storage project storage < 1.28.1 1.28.1 Fixed
fedoraproject fedora = 33; = 34 No fix listed Versions listed
redhat enterprise linux = 8.0 No fix listed Versions listed
redhat openshift container platform = 4.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
containers github.com/containers/storage(Go) < 1.28.1 1.28.1
debian/golang-github-containers-storage(Debian:12) < 1.34.1+ds1-1 1.34.1+ds1-1
debian/golang-github-containers-storage(Debian:13) < 1.34.1+ds1-1 1.34.1+ds1-1
debian/golang-github-containers-storage(Debian:14) < 1.34.1+ds1-1 1.34.1+ds1-1
storage project storage < 1.28.1 1.28.1
redhat openshift container platform = 4.0 No fix listed
redhat enterprise linux = 8.0 No fix listed
fedoraproject fedora = 33 No fix listed
fedoraproject fedora = 34 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) All versions No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.13.2+dfsg1-2 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.13.2+dfsg1-3 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.13.5+dfsg1-1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.1+dfsg1-1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.2+dfsg1-1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.3+dfsg1-1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.5+dfsg1-1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.7+dfsg1-1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.8+dfsg1-1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.8+dfsg1-1ubuntu1 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.8+dfsg1-1ubuntu2 No fix listed
ubuntu/golang-github-containers-storage(Ubuntu:20.04) = 1.15.8+dfsg1-1ubuntu2.1 No fix listed

References