Skip to content

Conversation

lewismosciski
Copy link
Contributor

This PR adds an advisory for a soundness issue in borrowck_sacrifices.

Summary

The safe function any_as_u8_slice exposes uninitialized memory when used with types containing padding bytes.

Details

  • Vulnerability: Creates &[u8] including uninitialized padding bytes via from_raw_parts
  • Impact: Violates safety contract of from_raw_parts, causing undefined behavior
  • Affected versions: < 0.2.0
  • Status: ✅ Confirmed and fixed by maintainer
  • Fixed in: 0.2.0

Safe function any_as_u8_slice exposes uninitialized padding bytes. Fixed in 0.2.0.
@lewismosciski
Copy link
Contributor Author

Hi @alexpyattaev,

Could you please confirm you're okay with publishing this advisory for the soundness issue alexpyattaev/borrowck_sacrifices#1?

Thanks!

@alexpyattaev
Copy link

Not sure it warrants a RUSTSEC entry but no objections either.

@djc djc merged commit eadb6d8 into rustsec:main Oct 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants