Rapid7 Vulnerability & Exploit Database

Red Hat: 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 (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

Red Hat: 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 (Multiple Advisories)

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:N/I:N/A:P)
Published
04/11/2021
Created
08/12/2021
Added
08/12/2021
Modified
12/15/2023

Description

In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow.

Solution(s)

  • redhat-upgrade-cargo
  • redhat-upgrade-cargo-debuginfo
  • redhat-upgrade-cargo-doc
  • redhat-upgrade-clippy
  • redhat-upgrade-clippy-debuginfo
  • redhat-upgrade-rls
  • redhat-upgrade-rls-debuginfo
  • redhat-upgrade-rust
  • redhat-upgrade-rust-analysis
  • redhat-upgrade-rust-debugger-common
  • redhat-upgrade-rust-debuginfo
  • redhat-upgrade-rust-debugsource
  • redhat-upgrade-rust-doc
  • redhat-upgrade-rust-gdb
  • redhat-upgrade-rust-lldb
  • redhat-upgrade-rust-src
  • redhat-upgrade-rust-std-static
  • redhat-upgrade-rust-toolset
  • redhat-upgrade-rustfmt
  • redhat-upgrade-rustfmt-debuginfo

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;