futures_task::waker may cause a use-after-free if used on a type that isn't 'static
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Jun 13, 2023
Description
Published by the National Vulnerability Database
Dec 31, 2020
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Jun 16, 2022
Last updated
Jun 13, 2023
Affected versions of the crate did not properly implement a 'static lifetime bound on the waker function. This resulted in a use-after-free if Waker::wake() is called after original data had been dropped.
The flaw was corrected by adding 'static lifetime bound to the data waker takes.
References