RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0581

Deque::make_contiguous could lead to broken invariants

Reported
Issued
Package
heapless (crates.io)
Type
INFO Unsound
Categories
Keywords
#out-of-bounds
References
Patched
  • >=0.9.4
Affected Functions
Version
heapless::deque::Deque::make_contiguous
  • <0.9.4

Description

In some branches, Deque::make_contiguous set the back value to either 0 or N when it shouldn't, leading to broken invariants and out-of-bounds writes.

Reported by DRMacIver and https://github.com/MJUCOM.

Advisory available under CC0-1.0 license.