PT-2025-45795 · Crates.Io · Borrowck Sacrifices
Publicado
2025-10-22
·
Atualizado
2025-10-22
CVSS v4.0
2.0
Baixa
| Vetor | AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P |
The safe function
any as u8 slice can create byte slices that reference uninitialized memory when used with types containing padding bytes.The function uses
slice::from raw parts to create a &[u8] covering the entire size of a type, including padding bytes. According to Rust's documentation, from raw parts requires all bytes to be properly initialized, but padding bytes in structs are not guaranteed to be initialized. This violates the safety contract and causes undefined behavior.Correção
Access of Uninitialized Pointer
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Borrowck Sacrifices