Lucene search

K
rustsecRustsecRUSTSEC-2020-0123
HistoryJan 24, 2020 - 12:00 p.m.

Contents of uninitialized memory exposed in DeflateOutput's AsyncRead implementation

2020-01-2412:00:00
rustsec.org
11

EPSS

0.002

Percentile

61.8%

Affected versions of this crate passes an uninitialized buffer to a user-provided trait function AsyncRead::poll_read().

Arbitrary AsyncRead::poll_read() implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.
Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.

The flaw was fixed in commit 5ba266a by ensuring the newly allocated part of the buffer is zero-initialized before passing it to a user-provided AsyncRead::poll_read().

EPSS

0.002

Percentile

61.8%

Related for RUSTSEC-2020-0123