Skip to content

Add advisory for sp-sized-chunks: panic-safety UAF/double-free in clear/drop_left/drop_right - #3136

Merged
djc merged 2 commits into
rustsec:mainfrom
tooson9010-spec:sp-sized-chunks-advisory
Aug 12, 2026
Merged

Add advisory for sp-sized-chunks: panic-safety UAF/double-free in clear/drop_left/drop_right#3136
djc merged 2 commits into
rustsec:mainfrom
tooson9010-spec:sp-sized-chunks-advisory

Conversation

@tooson9010-spec

@tooson9010-spec tooson9010-spec commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Affected crate(s)

  • sp-sized-chunks 0.1.0 (197 recent downloads per crates.io)

Links to upstream issue(s) or PR(s)

The repo is archived and the crate is still on 0.1.0 with no fix, so upstream reporting isn't possible. sp-sized-chunks is a fork of sized-chunks (companion advisory in #3111).

Severity

Panic-safety unsoundness in Chunk and InlineArray (clear, drop_left, drop_right, InlineArray::clear). Elements are dropped before the length/boundary metadata is updated, so a panicking element Drop leaves stale metadata and the container's own Drop re-drops already-freed elements — use-after-free / double-free reachable from safe Rust, confirmed under AddressSanitizer.

Checklist

Add advisory for sp-sized-chunks panic-safety unsoundness

@djc djc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest adding a separate informational = "unmaintained" advisory as well.

Comment thread crates/sp-sized-chunks/RUSTSEC-0000-0000.md Outdated
update affected functions and fix date
@tooson9010-spec

Copy link
Copy Markdown
Contributor Author

Filed the unmaintained advisory as a separate PR: #3143

@djc
djc merged commit 125ea42 into rustsec:main Aug 12, 2026
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.

2 participants