Bug 1949194 (CVE-2021-28875) - CVE-2021-28875 rust: heap-based buffer overflow in read_to_end() because it does not validate the return value from Read in an unsafe context
Summary: CVE-2021-28875 rust: heap-based buffer overflow in read_to_end() because it d...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-28875
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1949195 1949196 1952539 1952540 1952977 1959099
Blocks: 1949215
TreeView+ depends on / blocked
 
Reported: 2021-04-13 17:16 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-04-17 21:17 UTC (History)
10 users (show)

Fixed In Version: rust 1.51.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-10 13:28:16 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3042 0 None None None 2021-08-10 07:26:04 UTC
Red Hat Product Errata RHSA-2021:3063 0 None None None 2021-08-10 13:51:26 UTC

Description Guilherme de Almeida Suckevicz 2021-04-13 17:16:02 UTC
In the standard library in Rust before 1.51.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow.

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

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

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

Affects: epel-7 [bug 1949196]
Affects: fedora-all [bug 1949195]

Comment 5 errata-xmlrpc 2021-08-10 07:26:02 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:16 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-28875

Comment 7 errata-xmlrpc 2021-08-10 13:51:24 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


Note You need to log in before you can comment on or make changes to this bug.