PT-2021-17971 · Rust+6 · Rust+6
Sfackler
·
Published
2021-03-01
·
Updated
2022-11-03
·
CVE-2021-28875
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions:
Rust versions prior to 1.50.0
Description:
The issue arises from the
read to end() function in the standard library not validating the return value from Read in an unsafe context, potentially leading to a buffer overflow.Recommendations:
For versions prior to 1.50.0, update to version 1.50.0 or later to resolve the issue. As a temporary workaround, consider adding manual validation for the return value from
Read in unsafe contexts to prevent potential buffer overflows.Exploit
Fix
Unchecked Return Value
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Centos
Debian
Red Hat
Rocky Linux
Rust