Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions EXAMPLE_ADVISORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ date = "2020-01-31"
url = "https://example.com"
# Valid categories: "code-execution", "crypto-failure", "denial-of-service", "file-disclosure"
# "format-injection", "memory-corruption", "memory-exposure", "privilege-escalation"
# They are described at https://github.com/rustsec/rustsec/blob/main/rustsec/src/advisory/category.rs
categories = ["code-execution", "privilege-escalation"]
keywords = ["example", "freeform", "keywords"]
# Valid informational: notice, unmaintained, unsound
informational = "unsound"
#aliases = ["CVE-YYYY-NNNN"]
#cvss = "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"

Expand Down
25 changes: 25 additions & 0 deletions crates/lockfree/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "lockfree"
date = "2025-11-17"
url = "https://gitlab.com/bzim/lockfree/-/issues/4"
categories = ["memory-corruption"]
keywords = ["memory-safety", "std::mem::uninitialized"]
informational = "unsound"

[versions]
patched = []
unaffected = ["<= 0.4.0"]
```

# lockfree crate is unsound and unmaintained

Affected versions of this crate called `mem::uninitialized()` to construct `Removable<T>`.
This is unsound.

In addition, the `lockfree` crate is no longer actively maintained. If you rely on this crate, consider switching to a recommended alternative.

## Recommended alternatives

- [`lock_freedom`](https://crates.io/crates/lock_freedom)
Comment on lines +23 to +25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is active/trustworthy enough to merit a recommendation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so should I look for others, or just not recommend any?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just don't recommend any -- users can look for themselves.

Copy link
Contributor Author

@jayvdb jayvdb Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintainer of lock_freedom is giving it a bit of love.

Also I have found https://github.com/DiscordJim/lfqueue and https://github.com/emilHof/sling and https://github.com/emilHof/unlink as other narrower alternatives that users may find useful if they dont need the full suite of features of lockfree.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of these are in widespread usage or by maintainers that have other popular crates.