<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sun, 18 Oct 2026 20:13:10 +0000</lastBuildDate>
    <item>
      <title>RUSTSEC-2023-0078 — Potential stack use-after-free in `Instrumented::into_inner`</title>
      <link>https://db.gcve.eu/vuln/rustsec-2023-0078</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: tracing&lt;/p&gt;
&lt;p&gt;The implementation of the [`Instrumented::into_inner`] method in affected
versions of this crate contains undefined behavior due to incorrect use of
[`std::mem::forget`] The function creates `*const` pointers to `self`, calls
[`mem::forget(self)`][`std::mem::forget`], and then moves values out of those
pointers using [`std::ptr::read`].&lt;/p&gt;
&lt;p&gt;```rust
// To manually destructure `Instrumented` without `Drop`, we
// move it into a ManuallyDrop and use pointers to its fields
let span: *const Span = &amp;amp;this.span;
let inner: *const ManuallyDrop&amp;lt;T&amp;gt; = &amp;amp;this.inner;
mem::forget(self);
// SAFETY: Those pointers are valid for reads, because `Drop` didn&amp;#39;t
//         run, and properly aligned, because `Instrumented` isn&amp;#39;t
//         `#[repr(packed)]`.
let _span = unsafe { span.read() };
let inner = unsafe { inner.read() };
```&lt;/p&gt;
&lt;p&gt;However, the [`mem::forget` documentation][`std::mem::forget`] states:&lt;/p&gt;
&lt;p&gt;&amp;gt; Any resources the value manages, such as heap memory or a file handle, will
&amp;gt; linger forever in an unreachable state. **However, it does not guarantee that
&amp;gt; pointers to this memory will remain valid.**&lt;/p&gt;
&lt;p&gt;This means that these pointers are no longer valid. This could result in a stack
use-after-free if LLVM chooses to reuse `self`&amp;#39;s stack slot for a rebinding
after the call to [`std::mem::forget`].&lt;/p&gt;
&lt;p&gt;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 `tracing`
are unsound.&lt;/p&gt;
&lt;p&gt;The flaw was corrected in com…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: tracing&lt;/p&gt;
&lt;p&gt;The implementation of the [`Instrumented::into_inner`] method in affected
versions of this crate contains undefined behavior due to incorrect use of
[`std::mem::forget`] The function creates `*const` pointers to `self`, calls
[`mem::forget(self)`][`std::mem::forget`], and then moves values out of those
pointers using [`std::ptr::read`].&lt;/p&gt;
&lt;p&gt;```rust
// To manually destructure `Instrumented` without `Drop`, we
// move it into a ManuallyDrop and use pointers to its fields
let span: *const Span = &amp;amp;this.span;
let inner: *const ManuallyDrop&amp;lt;T&amp;gt; = &amp;amp;this.inner;
mem::forget(self);
// SAFETY: Those pointers are valid for reads, because `Drop` didn&amp;#39;t
//         run, and properly aligned, because `Instrumented` isn&amp;#39;t
//         `#[repr(packed)]`.
let _span = unsafe { span.read() };
let inner = unsafe { inner.read() };
```&lt;/p&gt;
&lt;p&gt;However, the [`mem::forget` documentation][`std::mem::forget`] states:&lt;/p&gt;
&lt;p&gt;&amp;gt; Any resources the value manages, such as heap memory or a file handle, will
&amp;gt; linger forever in an unreachable state. **However, it does not guarantee that
&amp;gt; pointers to this memory will remain valid.**&lt;/p&gt;
&lt;p&gt;This means that these pointers are no longer valid. This could result in a stack
use-after-free if LLVM chooses to reuse `self`&amp;#39;s stack slot for a rebinding
after the call to [`std::mem::forget`].&lt;/p&gt;
&lt;p&gt;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 `tracing`
are unsound.&lt;/p&gt;
&lt;p&gt;The flaw was corrected in com…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/rustsec-2023-0078</guid>
    </item>
  </channel>
</rss>
