# RUSTSEC-2026-0133: Invalid pointer arithmetic in iter() and iter\_mut()

- Database: RustSec
- Published: 2026-05-02
- Modified: 2026-05-13

## Affected versions

- auto\_vec (crates.io): all versions

## 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.

## References

- https://crates.io/crates/auto_vec
- https://rustsec.org/advisories/RUSTSEC-2026-0133.html
- https://github.com/lluvz/AutoVec/issues/1

Page: https://cve.now/RUSTSEC-2026-0133

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
