Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785901 - <app-emulation/podman-3.1.2: deadlock vulnerability through embedded app-emulation/containers-storage (CVE-2021-20291)
Summary: <app-emulation/podman-3.1.2: deadlock vulnerability through embedded app-emul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
URL:
Whiteboard: ~3 [ebuild]
Keywords:
Depends on:
Blocks: CVE-2021-20291
  Show dependency tree
 
Reported: 2021-04-26 21:26 UTC by GLSAMaker/CVETool Bot
Modified: 2021-10-17 18:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GLSAMaker/CVETool Bot gentoo-dev 2021-04-26 21:26:22 UTC
CVE-2021-20291 (https://nvd.nist.gov/vuln/detail/CVE-2021-20291):
  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).
Comment 1 Larry the Git Cow gentoo-dev 2021-04-26 23:32:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ba1707f2083f32c57825fbf2d418a7018b9bc09

commit 6ba1707f2083f32c57825fbf2d418a7018b9bc09
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-04-26 23:26:06 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-04-26 23:31:40 +0000

    app-emulation/podman: Remove vulnerable version
    
    podman-3.0.1 is vulnerable because it uses
    containers-storage v1.24.6 vendored in this commit:
    
    https://github.com/containers/podman/commit/5a520cb4cae29e97085adfcf95b9d18e9e7a4c45
    
    podman-3.1.2 is *not* vulnerable because it uses
    containers-storage v1.30.0 vendored in this commit:
    
    https://github.com/containers/podman/commit/5aef11026a850bb99d8394dba17810bf05d727bc
    
    Bug: https://bugs.gentoo.org/785901
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-emulation/podman/Manifest            |   1 -
 app-emulation/podman/podman-3.0.1.ebuild | 165 -------------------------------
 2 files changed, 166 deletions(-)
Comment 2 NATTkA bot gentoo-dev 2021-07-29 17:22:43 UTC Comment hidden (obsolete)
Comment 3 NATTkA bot gentoo-dev 2021-07-29 17:31:00 UTC Comment hidden (obsolete)
Comment 4 NATTkA bot gentoo-dev 2021-07-29 17:38:57 UTC Comment hidden (obsolete)
Comment 5 NATTkA bot gentoo-dev 2021-07-29 17:47:06 UTC Comment hidden (obsolete)
Comment 6 NATTkA bot gentoo-dev 2021-07-29 18:03:04 UTC Comment hidden (obsolete)
Comment 7 NATTkA bot gentoo-dev 2021-07-29 18:11:22 UTC
Package list is empty or all packages have requested keywords.
Comment 8 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-10-17 18:56:21 UTC
All done, thanks!