# RUSTSEC-2026-0133: Invalid pointer arithmetic in `iter()` and `iter_mut()`

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-02T12:00:00.000Z
- Modified: 2026-05-13T12:45:17.622Z

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

(As written by RustSec Advisory Database.)

## Affected

- auto_vec (crates.io): from 0.0.0-0

## References

- <https://crates.io/crates/auto_vec> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0133.html> (advisory)
- <https://github.com/lluvz/AutoVec/issues/1> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0133](https://rustsec.org/advisories/RUSTSEC-2026-0133.html), CC0-1.0, modified 2026-05-13

---

Page: https://cve.day/RUSTSEC-2026-0133 · Whole record: https://cve.day/RUSTSEC-2026-0133.json · Rebuilt by cve.day 2026-11-25T22:56:43.351Z
