Bug 1949211 (CVE-2021-28879)

Summary: CVE-2021-28879 rust: integer overflow in the Zip implementation can lead to a buffer overflow
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amulhern, bodavis, cbuissar, igor.raits, jcajka, jistone, jpadman, mnewsome, rust-sig, TicoTimo, tstellar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rust 1.52.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-10 13:28:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1949212, 1949213, 1952982, 1952983, 1959103, 1967943    
Bug Blocks: 1949215    

Description Guilherme de Almeida Suckevicz 2021-04-13 17:37:48 UTC
In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer overflow. This bug can lead to a buffer overflow when a consumed Zip iterator is used again.

Reference:
https://github.com/rust-lang/rust/issues/82282

Upstream patch:
https://github.com/rust-lang/rust/pull/82289

Comment 1 Guilherme de Almeida Suckevicz 2021-04-13 17:38:10 UTC
Created rust tracking bugs for this issue:

Affects: epel-7 [bug 1949213]
Affects: fedora-all [bug 1949212]

Comment 5 errata-xmlrpc 2021-08-10 07:26:12 UTC
This issue has been addressed in the following products:

  Red Hat Developer Tools

Via RHSA-2021:3042 https://access.redhat.com/errata/RHSA-2021:3042

Comment 6 Product Security DevOps Team 2021-08-10 13:28:34 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-28879

Comment 7 errata-xmlrpc 2021-08-10 13:51:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:3063 https://access.redhat.com/errata/RHSA-2021:3063