Add advisory for inplace-vec-builder: InPlaceVecBuilder can corrupt the backing Vec#2912
Open
DiuDiu777 wants to merge 1 commit into
Open
Add advisory for inplace-vec-builder: InPlaceVecBuilder can corrupt the backing Vec#2912DiuDiu777 wants to merge 1 commit into
InPlaceVecBuilder can corrupt the backing Vec#2912DiuDiu777 wants to merge 1 commit into
Conversation
Member
|
I made an attempt to reach out to the maintainer. |
Author
|
Thank you for reaching out; I’ll wait for any feedback and adjust the advisory if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Affected crate(s)
inplace-vec-builder(1,222,237 recent downloads per crates.io; 5,820,504 total downloads)Links to upstream issue(s) or PR(s)
The issue was publicly reported upstream on 2026-03-09 and remains open with no maintainer response as of 2026-05-27.
Severity
Informational soundness issue. Safe Rust code can leak
InPlaceVecBuilderwithstd::mem::forgetafter it has entered an intermediate state, bypassing theDropcleanup that restores the backingVec.This can expose the
Vecwith an invalid length and duplicated or otherwise invalid elements. Subsequent safe use or drop of theVeccan trigger undefined behavior, including double free and use-after-free. Miri reports a dangling pointer dereference during drop. Nounsafecode is required from the caller.Checklist
RUSTSEC-0000-0000as the IDdatefield is set to the public disclosure dateThe issue has been public for more than two months without upstream response. I am filing this advisory under RustSec's documented allowance for advisories after public disclosure with no upstream response.