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.
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.
Link | Tags |
---|---|
https://github.com/rust-lang/rust/issues/80894 | patch exploit third party advisory issue tracking |
https://github.com/rust-lang/rust/pull/80895 | third party advisory patch |
https://security.gentoo.org/glsa/202210-09 | third party advisory vendor advisory |