CVE-2021-20291 Improper Locking in github.com/containers/storage
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- bugzilla.redhat.com issue-tracking patch third-party-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- unit42.paloaltonetworks.com exploit third-party-advisory
- github.com patch
- pkg.go.dev
- github.com
- github.com product
- Debian Security Tracker CVE-2021-20291 vendor-advisory
- FEDORA-2021-ec00da7faa vendor-advisory
- FEDORA-2021-c56a213327 vendor-advisory
- FEDORA-2021-a3703b9dc8 vendor-advisory
- FEDORA-2021-83b3740389 vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.cve.org issue-tracking