<?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://cve.radiocsirt.org</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>Wed, 21 Oct 2026 10:41:20 +0000</lastBuildDate>
    <item>
      <title>RUSTSEC-2026-0152 — Use-after-free</title>
      <link>https://cve.radiocsirt.org/vuln/rustsec-2026-0152</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: oneringbuf&lt;/p&gt;
&lt;p&gt;Affected versions of `oneringbuf` exposed the obsolete `IntoRef::into_ref` method through the public `IntoRef` trait. For heap-backed ring buffers, this method returned a `DroppableRef` handle.&lt;/p&gt;
&lt;p&gt;`DroppableRef` stored an owning raw pointer created from `Box::into_raw`. Its `Clone` implementation copied this raw pointer without incrementing the internal `alive_iters` counter. Internally, this clone pattern appears to rely on a fixed number of handles being created to match the initial `alive_iters` value. However, exposing `DroppableRef` through the public `IntoRef::TargetRef` associated type allows safe external code to create additional clones beyond that fixed count, breaking the lifetime protocol. `Drop` later dereferenced the pointer and could free the backing allocation with `Box::from_raw`.&lt;/p&gt;
&lt;p&gt;Safe code could call `IntoRef::into_ref` to obtain a `DroppableRef` and then clone it. Each clone pointed to the same allocation, but the internal `alive_iters` counter was not increased. As a result, one clone could free the allocation while another clone still existed. Dropping the remaining clone then accessed freed memory, causing a heap-use-after-free.&lt;/p&gt;
&lt;p&gt;The issue was fixed in version 0.8.0 by removing the obsolete `into_ref` method.&lt;/p&gt;
&lt;p&gt;## Trigger&lt;/p&gt;
&lt;p&gt;```rust
use oneringbuf::{IntoRef, LocalHeapRB};&lt;/p&gt;
&lt;p&gt;fn main() {
    let rb = LocalHeapRB::&amp;lt;usize&amp;gt;::from(vec![1, 2, 3]);&lt;/p&gt;
&lt;p&gt;let r = &amp;lt;LocalHeapRB&amp;lt;usize&amp;gt; as IntoRef&amp;gt;::into_ref(rb);
    let r2 = r.clone();
    let r3 = r.clone();&lt;/p&gt;
&lt;p&gt;drop(r…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; crates.io: oneringbuf&lt;/p&gt;
&lt;p&gt;Affected versions of `oneringbuf` exposed the obsolete `IntoRef::into_ref` method through the public `IntoRef` trait. For heap-backed ring buffers, this method returned a `DroppableRef` handle.&lt;/p&gt;
&lt;p&gt;`DroppableRef` stored an owning raw pointer created from `Box::into_raw`. Its `Clone` implementation copied this raw pointer without incrementing the internal `alive_iters` counter. Internally, this clone pattern appears to rely on a fixed number of handles being created to match the initial `alive_iters` value. However, exposing `DroppableRef` through the public `IntoRef::TargetRef` associated type allows safe external code to create additional clones beyond that fixed count, breaking the lifetime protocol. `Drop` later dereferenced the pointer and could free the backing allocation with `Box::from_raw`.&lt;/p&gt;
&lt;p&gt;Safe code could call `IntoRef::into_ref` to obtain a `DroppableRef` and then clone it. Each clone pointed to the same allocation, but the internal `alive_iters` counter was not increased. As a result, one clone could free the allocation while another clone still existed. Dropping the remaining clone then accessed freed memory, causing a heap-use-after-free.&lt;/p&gt;
&lt;p&gt;The issue was fixed in version 0.8.0 by removing the obsolete `into_ref` method.&lt;/p&gt;
&lt;p&gt;## Trigger&lt;/p&gt;
&lt;p&gt;```rust
use oneringbuf::{IntoRef, LocalHeapRB};&lt;/p&gt;
&lt;p&gt;fn main() {
    let rb = LocalHeapRB::&amp;lt;usize&amp;gt;::from(vec![1, 2, 3]);&lt;/p&gt;
&lt;p&gt;let r = &amp;lt;LocalHeapRB&amp;lt;usize&amp;gt; as IntoRef&amp;gt;::into_ref(rb);
    let r2 = r.clone();
    let r3 = r.clone();&lt;/p&gt;
&lt;p&gt;drop(r…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/rustsec-2026-0152</guid>
    </item>
  </channel>
</rss>
