Repository navigation
chore(deps): update rust crate tracing to v0.1.43 [security] - autoclosed - #630
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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:
0.1.41→0.1.43use-after-free in tracing
GHSA-8f24-6m29-wm2r
More information
Details
The implementation of the
Instrumented::into_innermethod in affected versions of this crate contains undefined behavior due to incorrect use ofstd::mem::forgetThe function creates*constpointers toself, callsmem::forget(self), and then moves values out of those pointers usingstd::ptr::read.However, the
mem::forgetdocumentation states:This means that these pointers are no longer valid. This could result in a stack use-after-free if LLVM chooses to reuse
self's stack slot for a rebinding after the call tostd::mem::forget.This undefined behavior has not been observed to cause miscompilation as of Rust 1.73.0. However, any use of this method with the affected versions of
tracingare unsound.The flaw was corrected in commit 20a1762 (PR #2765) by replacing the use of
std::mem::forgetwithstd::mem::ManuallyDrop, ensuring that the stack slot is not reused and the pointers remain valid when they are read. The fix ispublished in
tracingv0.1.40. Affected versions have been yanked from crates.io.Thanks to Taylor Cramer and Manish Goregaokar for finding and correcting
this issue!
Severity
Medium
References
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
tokio-rs/tracing (tracing)
v0.1.43: tracing 0.1.43Compare Source
Important
The previous release 0.1.42 was yanked because #3382 was a breaking change.
See further details in #3424. This release contains all the changes from that
version, plus a revert for the problematic part of the breaking PR.
Fixed
valuesetmacro sanitary" (#3425)v0.1.42: tracing 0.1.42Compare Source
Important
The
Span::record_allmethod has been removed from the documented API. Itwas always unsuable via the documented API as it requried a
ValueSetwhichhas no publically documented constructors. The method remains, but should not
be used outside of
tracingmacros.Added
record_all!macro for recording multiple values in one call (#3227)Changed
tracing-core: updated to 0.1.35 (#3414)tracing-attributes: updated to 0.1.31 (#3417)Fixed
event!(#2983)release_max_level_*not set (#3373)valuesetmacro sanitary (#3382)Documented
dynkeyword inVisitdocumentation code sample (#3387)Configuration
📅 Schedule: (UTC)
🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.