Data races in libsbc
High severity
GitHub Reviewed
Published
Aug 25, 2021
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Description
Published by the National Vulnerability Database
Aug 8, 2021
Reviewed
Aug 9, 2021
Published to the GitHub Advisory Database
Aug 25, 2021
Last updated
Jan 27, 2023
Affected versions of this crate implements
Send
forDecoder<R>
for anyR: Read
. This allowsDecoder<R>
to containR: !Send
and carry (move) it to another thread.This can result in undefined behavior such as memory corruption from data race on
R
, or droppingR = MutexGuard<_>
from a thread that didn't lock the mutex.The flaw was corrected in commit a34d6e1 by adding trait bound
R: Send
to theSend
impl forDecoder<R>
.References