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-0146: arr! macro erases lifetimes #156

Closed
github-actions bot opened this issue Mar 2, 2021 · 6 comments
Closed

RUSTSEC-2020-0146: arr! macro erases lifetimes #156

github-actions bot opened this issue Mar 2, 2021 · 6 comments

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2021

arr! macro erases lifetimes

Details
Package generic-array
Version 0.12.3
URL fizyk20/generic-array#98
Date 2020-04-09
Patched versions >=0.14.0
Unaffected versions <0.8.0

Affected versions of this crate allowed unsoundly extending
lifetimes using arr! macro. This may result in a variety of
memory corruption scenarios, most likely use-after-free.

See advisory page for additional details.

@tensor-programming
Copy link
Contributor

We don't use this crate to my knowledge at least not directly.

@nothingismagick
Copy link
Contributor

It is because of outdated transient deps in libp2p-core
libp2p/rust-libp2p#1980

@nothingismagick
Copy link
Contributor

@mbrubeck
Copy link

mbrubeck commented Mar 2, 2021

A patched version generic-array 0.12.4 is now available, so you can now fix this just by running:

cargo update -p generic-array:0.12.3

@tensor-programming
Copy link
Contributor

A patched version generic-array 0.12.4 is now available, so you can now fix this just by running:

cargo update -p generic-array:0.12.3

We don't use the generic_array library in stronghold. This is a matter for the libp2p team to update. We could patch it but I suspect that might cause further issues.

@mbrubeck
Copy link

mbrubeck commented Apr 6, 2021

To clarify, the cargo update command is only necessary for consumers of this crate, or for developers’ local machines that have Cargo.lock files on disk referencing the old version of generic-array. That command will update the local Cargo.lock file to the new version of generic-array.

For builds done from a fresh checkout of the stronghold.rs repo, no action is necessary. Cargo will automatically select generic-array 0.12.4, which contains the fix, by default.

@elenaf9 elenaf9 closed this as completed Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants