{"id":"RUSTSEC-2026-0133","summary":"Invalid pointer arithmetic in `iter()` and `iter_mut()`","details":"The `iter()` and `iter_mut()` APIs compute\n`current = (&children[0] as *const *const RawAutoChild).sub(1)`, which\nperforms pointer subtraction going before the start of the allocation. This\nis undefined behavior per Rust's pointer arithmetic rules.\n\nThis can be triggered through safe public APIs — `iter()` and `iter_mut()`\n— with no `unsafe` required from the caller.","modified":"2026-05-13T12:45:17.622026Z","published":"2026-05-02T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/auto_vec"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0133.html"},{"type":"REPORT","url":"https://github.com/lluvz/AutoVec/issues/1"}],"affected":[{"package":{"name":"auto_vec","ecosystem":"crates.io","purl":"pkg:cargo/auto_vec"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affects":{"os":[],"functions":[],"arch":[]},"affected_functions":null},"database_specific":{"categories":["memory-corruption"],"informational":"unsound","cvss":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0133.json"}}],"schema_version":"1.7.5"}