Security mailing lists by PureSourceCode

RUSTSEC-2024-0005

MEDIUM

Unsound sending of non-Send types across threads in threadalone

Affected versions can run the Drop impl of a non-Send type on a different
thread than it was created on.

The flaw occurs when a stderr write performed by the threadalone crate fails,
for example because stderr is redirected to a location on a filesystem that is
full, or because stderr is a pipe that has been closed by the reader.

Dropping a non-Send type on the wrong thread is unsound. If used with a type
such as a pthread-based MutexGuard, the consequence is undefined
behavior
. If used with Rc, there would be a data race on the
reference count, which is likewise undefined behavior.

Published
7 Jan 2024
Last modified
10 Feb 2024
Also known as
GHSA-w59h-378f-2frm
Sources
OSV GHSA-w59h-378f-2frmJSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io threadalone < 0.2.1 0.2.1
OSV crates.io threadalone >= 0.0.0-0, < 0.2.1 0.2.1

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jan 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jan 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.