{"id":"RUSTSEC-2026-0133","aliases":[],"status":"published","title":"Invalid pointer arithmetic in `iter()` and `iter_mut()`","description":"The `iter()` and `iter_mut()` APIs compute\n`current = (\u0026children[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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2026-05-02T12:00:00Z","modified":"2026-05-13T12:45:17Z","affected":[{"source":"osv","ecosystem":"crates.io","package":"auto_vec","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"references":[{"url":"https://crates.io/crates/auto_vec","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0133.html","tags":["advisory"]},{"url":"https://github.com/lluvz/AutoVec/issues/1","tags":["report"]}],"sources":{"osv":[{"id":"RUSTSEC-2026-0133","title":"Invalid pointer arithmetic in `iter()` and `iter_mut()`","description":"The `iter()` and `iter_mut()` APIs compute\n`current = (\u0026children[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.","status":"published","published":"2026-05-02T12:00:00Z","modified":"2026-05-13T12:45:17.622026Z","updated_at":"2026-11-02T15:53:40.430679Z"}]}}
