{"id":"RUSTSEC-2026-0133","aliases":["RUSTSEC-2026-0133"],"related":[],"kind":"vulnerability","state":"published","title":"Invalid pointer arithmetic in `iter()` and `iter_mut()`","summary":"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.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"rustsec"}],"published":"2026-05-02T12:00:00.000Z","modified":"2026-05-13T12:45:17.622Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"auto_vec","purl":"pkg:cargo/auto_vec","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/auto_vec","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0133.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/lluvz/AutoVec/issues/1","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0133","url":"https://rustsec.org/advisories/RUSTSEC-2026-0133.html","licence":"CC0-1.0","modified":"2026-05-13T12:45:17.622Z"}],"updatedAt":"2026-11-25T22:56:43.351Z"}