PT-2025-46131

Published

2025-10-21

·

Updated

2025-10-21

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

The safe function index of ptr causes undefined behavior when called with an empty slice.
The issue occurs in the line ptr.add(slice.len() - 1) which underflows when slice.len() is 0, creating a pointer with a massive offset. According to Rust's safety rules, creating such a pointer causes immediate undefined behavior.
Vendors
Affected products
Related identifiers
RUSTSEC-2025-0106
Found an issue in the description? Have something to add? Feel free to write us 👾