RUSTSEC-2026-0133
JSON

Not scored

Invalid pointer arithmetic in `iter()` and `iter_mut()`

Severity
Not scored
Published
Last changed

Description

The iter() and iter_mut() APIs compute current = (&children[0] as *const *const RawAutoChild).sub(1), which performs pointer subtraction going before the start of the allocation. This is undefined behavior per Rust's pointer arithmetic rules.

This can be triggered through safe public APIs — iter() and iter_mut() — with no unsafe required from the caller.

Affected

Product or packageVersionsReported by
auto_vec (crates.io)from 0.0.0-0RustSec Advisory Database

References

Sources

SourceRecordLicence
RustSec Advisory DatabaseRUSTSEC-2026-0133 changed 2026-05-13CC0-1.0