Email me

Rust advisories / bun_collections

UnsoundRUSTSEC-2026-0309 · bun_collections

RUSTSEC-2026-0309: `SinglyLinkedList::remove` dereferences a null link

Short answerbun_collections has an API that can cause undefined behaviour from safe code: `SinglyLinkedList::remove` dereferences a null link. Fixed in 0.2.1.

Cratebun_collections
TypeUnsound (memory-corruption)
Affected versionsBefore 0.2.1.
Fixed in0.2.1
Severitynot scored
Published2026-09-20
Last changed2026-09-25
Also known asnone
Affected functionsbun_collections::pool::SinglyLinkedList::remove

What to do

  1. See which version you have: cargo tree -i bun_collections (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p bun_collections. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example bun_collections = "0.2.1") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

In versions before 0.2.1, SinglyLinkedList::remove is safe and walks the intrusive list with an unchecked dereference. On an empty list, or when node is not in the list, (*current_elm).next reads a null pointer. That is undefined behavior. The list head is a raw *mut Node<T>, and safe code can construct the empty list.

The maintainer fixed this in 0.2.1 by rejecting those two cases with an unconditional assert! before the pointer is followed, matching the upstream Zig unwrap on the same paths. 0.2.0 was yanked. Versions 0.1.0 through 0.1.13 are still published and still contain the unchecked walk.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ