Skip to content

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

Closed
tooson9010-spec wants to merge 2 commits into
mainfrom
sp-sized-chunks-panic-safety-advisory
Closed

Add advisory for sp-sized-chunks: panic-safety UAF/double-free in clear/drop_left/drop_right#1
tooson9010-spec wants to merge 2 commits into
mainfrom
sp-sized-chunks-panic-safety-advisory

Conversation

@tooson9010-spec

Copy link
Copy Markdown
Owner

Affected crate(s)

  • sp-sized-chunks 0.1.0

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 rustsec#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
Fix advisory file
@tooson9010-spec
tooson9010-spec deleted the sp-sized-chunks-panic-safety-advisory branch August 11, 2026 04:03
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.

1 participant