RUSTSEC-2026-0581: `Deque::make_contiguous` could lead to broken invariants

Published Nov 18, 2026
·
Updated

In some branches, Deque::makecontiguous 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.

Affected Software

1 affected componentFixes available
rust/heapless>=0.0.0-0<0.9.4
0.9.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/heapless to a version that resolves this vulnerability.

    Fixed in 0.9.4

Event History

Nov 18, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionAffected Software

Frequently Asked Questions

1

Which deployments should be investigated first?

Investigate Rust applications using the heapless crate that call Deque::make_contiguous. The issue occurs in some branches of that method and can result in broken deque invariants and out-of-bounds writes.

2

Does the advisory identify affected or fixed heapless versions?

No affected or fixed version numbers are provided in the available advisory data. Use the referenced heapless issue and advisory for version-specific remediation details.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203