Skip to content
OpenAdvisories
Unscored RUSTSEC-2026-0133

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

Published May 2, 2026 · Updated May 13, 2026 · Assigned by RUSTSEC

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 packages

EcosystemPackageAffectedFixedRecord
crates.io auto_vec >= 0.0.0-0 — RUSTSEC-2026-0133

References