Red Hat VEX
RHVEX-CVE-2022-2879
golang: archive/tar: github.com/vbatts/tar-split: unbounded memory consumption when reading headers
Details
A flaw was found in the golang package, where Reader.Read does not set a limit on the maximum size of file headers. After fixing, Reader.Read limits the maximum size of header blocks to 1 MiB. This flaw allows a maliciously crafted archive to cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panic.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | buildah | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | buildah-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | containers-common | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-catatonit | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-docker | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-gvproxy | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-manpages | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-plugins | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-remote | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | podman-tests | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | skopeo | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | skopeo-tests | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | buildah | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | buildah-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-catatonit | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-docker | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-gvproxy | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-plugins | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-remote | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | podman-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | skopeo | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | skopeo-tests | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2022-2879
- https://bugzilla.redhat.com/show_bug.cgi?id=2132867
- https://www.cve.org/CVERecord?id=CVE-2022-2879
- https://nvd.nist.gov/vuln/detail/CVE-2022-2879
- https://github.com/golang/go/issues/54853
- https://github.com/vbatts/tar-split/releases/tag/v0.12.1
- https://groups.google.com/g/golang-announce/c/xtuG5faxtaU?pli=1