Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUSTSEC-2020-0123: Contents of uninitialized memory exposed in DeflateOutput's AsyncRead implementation #60

Closed
github-actions bot opened this issue Jan 28, 2021 · 1 comment
Labels
State: wontfix This will not be worked on

Comments

@github-actions
Copy link

Contents of uninitialized memory exposed in DeflateOutput's AsyncRead implementation

Details
Package libp2p-deflate
Version 0.23.0
URL libp2p/rust-libp2p#1932
Date 2020-01-24
Patched versions >=0.27.1

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().

See advisory page for additional details.

@stale
Copy link

stale bot commented Apr 7, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you think this is an important issue, notify it directly by email to: [email protected]

@stale stale bot added the State: wontfix This will not be worked on label Apr 7, 2021
@stale stale bot closed this as completed Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

0 participants