Repository navigation
chore(deps): update rust crate rustix to v1.1.6 [security] - #48
Open
cachekit-renovate-bot[bot] wants to merge 1 commit into
Open
cachekit-renovate-bot[bot] wants to merge 1 commit into
cachekit-renovate-bot[bot] wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
This PR contains the following updates:
1.1.5→1.1.61.1.5→1.1.6xattr functions mark unwritten bytes as initialized when given a zero-length buffer
GHSA-jh2m-fhpj-3vr7 / RUSTSEC-2026-0486
More information
Details
The extended-attribute functions in
rustix::fs(getxattr,lgetxattr,fgetxattr,listxattr,llistxattrandflistxattr) write into aBufferand then mark as many bytes initialized as the system call reported. When the buffer has zero length, the operating system treats the call as a size query: it writes nothing and returns the size of the attribute value or of the name list. rustix still marked that many bytes as initialized.Passing a
Vecwhose length equals its capacity throughspare_capacitygives such a zero-length buffer, and rustix then set the vector's length past its capacity over memory that was never written. This is undefined behavior reachable from safe code. With an empty&mut [MaybeUninit<u8>]the call panics instead.From 1.1.6 these functions return an empty result for a zero-length buffer, and new
getxattr_query,lgetxattr_query,fgetxattr_query,listxattr_query,llistxattr_queryandflistxattr_queryfunctions return the size. The 0.38 series did not have theBufferAPI and is not affected.Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Release Notes
bytecodealliance/rustix (rustix)
v1.1.6Compare Source
Configuration
📅 Schedule: (in timezone Australia/Sydney)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate.