mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:14:33 -06:00
1587 lines
51 KiB
XML
1587 lines
51 KiB
XML
<?xml version="1.0"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2025-08-27T12:00:00+00:00</updated><author><name>RustSec</name></author><icon>https://rustsec.org/favicon.ico</icon><link href="https://rustsec.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://rustsec.org/" rel="alternate" type="text/html"/><subtitle xml:lang="en">Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2025-0052: async-std is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0052.html</id><updated>2025-08-27T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0052.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0052: async-std is unmaintained"/><published>2025-08-27T12:00:00+00:00</published><summary xml:lang="en">async-std has been discontinued</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/async-std/RUSTSEC-2025-0052.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/async-std/RUSTSEC-2025-0052.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0052">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0052
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>async-std has been discontinued</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-08-24">
|
|
August 24, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-08-27">
|
|
August 27, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/async-std.html">async-std</a>
|
|
(<a href="https://crates.io/crates/async-std">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/async-rs/async-std">
|
|
https://github.com/async-rs/async-std
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>async-std</code> has been discontinued.</p>
|
|
<p>Alternatives:</p>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/smol">smol</a></li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0051: Unsoundness in xcb</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0051.html</id><updated>2025-08-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0051.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0051: Unsoundness in xcb"/><published>2025-08-22T12:00:00+00:00</published><summary xml:lang="en">`xcb::Connection::connect_to_fd*` functions violate I/O safety</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/xcb/RUSTSEC-2025-0051.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/xcb/RUSTSEC-2025-0051.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0051">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0051
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>xcb::Connection::connect_to_fd*</code> functions violate I/O safety</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-08-05">
|
|
August 5, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-08-22">
|
|
August 22, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/xcb.html">xcb</a>
|
|
(<a href="https://crates.io/crates/xcb">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/rust-x-bindings/rust-xcb/issues/282">
|
|
https://github.com/rust-x-bindings/rust-xcb/issues/282
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/rust-x-bindings/rust-xcb/issues/167">
|
|
https://github.com/rust-x-bindings/rust-xcb/issues/167
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/rust-x-bindings/rust-xcb/pull/283">
|
|
https://github.com/rust-x-bindings/rust-xcb/pull/283
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=1.6.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>xcb::Connection::connect_to_fd</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=1.0.0-beta.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>xcb::Connection::connect_to_fd_with_extensions</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=1.0.0-beta.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The API of <code>xcb::Connection</code> has constructors which allow an arbitrary <code>RawFd</code>
|
|
to be used as a socket connection. On either failure of these constructors or
|
|
on the drop of <code>Connection</code>, it closes the associated file descriptor. Thus, a
|
|
program which uses an <code>OwnedFd</code> (such as a <code>UnixStream</code>) as the file descriptor
|
|
can close the file descriptor and continue to attempt using it or close an
|
|
already-closed file descriptor, violating I/O safety.</p>
|
|
<p>Starting in version 1.6.0, <code>xcb</code> provides <code>Connection::connect_with_fd</code> and
|
|
<code>Connection::connect_with_fd_and_extensions</code> as safe alternatives and
|
|
deprecates the problematic functions.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0050: Vulnerability in id-map</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0050.html</id><updated>2025-08-15T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0050.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0050: Vulnerability in id-map"/><published>2025-08-15T12:00:00+00:00</published><summary xml:lang="en">IdMap::from_iter may lead to uninitialized memory being freed on drop</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/id-map/RUSTSEC-2025-0050.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/id-map/RUSTSEC-2025-0050.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0050">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0050
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>IdMap::from_iter may lead to uninitialized memory being freed on drop</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-08-14">
|
|
August 14, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-08-15">
|
|
August 15, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/id-map.html">id-map</a>
|
|
(<a href="https://crates.io/crates/id-map">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/uninitialized-memory.html">#uninitialized-memory</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/andrewhickman/id-map/issues/4">
|
|
https://github.com/andrewhickman/id-map/issues/4
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.2.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.1.6</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>id_map::IdMap::from_iter</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.1.6, &#60;=0.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Due to a flaw in the constructor <code>id_map::IdMap::from_iter</code>, ill-formed objects may be created in which the amount of actually initialized memory is less than what is expected by the fields of <code>IdMap</code>. Specifically, the field <code>ids</code> is initialized based on the capacity of the vector <code>values</code>, which is constructed from the provided iterator. However, the length of this vector may be smaller than its capacity.</p>
|
|
<p>In such cases, when the resulting <code>IdMap</code> is dropped, its destructor incorrectly assumes that <code>values</code> contains <code>ids.len() == values.capacity()</code> initialized elements and attempts to iterate over and drop them. This leads to dereferencing and attempting to free uninitialized memory, resulting in undefined behavior and potential segmentation faults.</p>
|
|
<p>The bug was fixed in commit <code>fab6922</code>, and all unsafe code was removed from the crate.</p>
|
|
<p>Note that the maintainer recommends using the following alternatives:</p>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/slab">slab</a></li>
|
|
<li><a href="https://crates.io/crates/slotmap">slotmap</a></li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0049: Vulnerability in scratchpad</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0049.html</id><updated>2025-08-14T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0049.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0049: Vulnerability in scratchpad"/><published>2025-08-14T12:00:00+00:00</published><summary xml:lang="en">User-defined implementations of the safe trait scratchpad::Tracking can cause heap buffer overflows</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/scratchpad/RUSTSEC-2025-0049.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/scratchpad/RUSTSEC-2025-0049.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0049">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0049
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>User-defined implementations of the safe trait scratchpad::Tracking can cause heap buffer overflows</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-08-14">
|
|
August 14, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-08-14">
|
|
August 14, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/scratchpad.html">scratchpad</a>
|
|
(<a href="https://crates.io/crates/scratchpad">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/buffer-overflow.html">#buffer-overflow</a>
|
|
|
|
<a href="/keywords/raw-pointer.html">#raw-pointer</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/okready/scratchpad/issues/2">
|
|
https://github.com/okready/scratchpad/issues/2
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>scratchpad::Tracking::get</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=1.3.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>scratchpad::Tracking::set</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=1.3.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>get</code> and <code>set</code> methods of the public trait <code>scratchpad::Tracking</code> interact with unsafe code regions in the crate, and they influence the computation of addresses returned as raw pointers. However, the trait itself is not marked as unsafe, meaning users may provide custom implementations under the assumption that the crate upholds all safety guarantees.</p>
|
|
<p>This becomes problematic because even safe implementations of <code>get</code> and <code>set</code>-written without using any unsafe code-can still result in ill-formed raw pointers. These pointers may later be dereferenced within safe APIs of the crate (e.g., <code>marker::MarkerBack::allocate_slice_copy</code>), potentially leading to arbitrary memory access or heap buffer overflows.</p>
|
|
<p>According to the <a href="https://github.com/okready/scratchpad/commit/957dee1a3902f48600b06910e8e0b1d5ee7dab83">penultimate commit</a>, the crate is in maintenance mode awaiting a cleanup that will reduce the area of unsafe code. Note that the last commits to the repository are from 4 years ago.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0048: tsify-next is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0048.html</id><updated>2025-08-13T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0048.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0048: tsify-next is unmaintained"/><published>2025-08-13T12:00:00+00:00</published><summary xml:lang="en">tsify-next is unmaintained, use tsify instead</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tsify-next/RUSTSEC-2025-0048.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tsify-next/RUSTSEC-2025-0048.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0048">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0048
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>tsify-next is unmaintained, use tsify instead</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-07-29">
|
|
July 29, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-08-13">
|
|
August 13, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tsify-next.html">tsify-next</a>
|
|
(<a href="https://crates.io/crates/tsify-next">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/siefkenj/tsify/pull/56">
|
|
https://github.com/siefkenj/tsify/pull/56
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/siefkenj/tsify/issues/57">
|
|
https://github.com/siefkenj/tsify/issues/57
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>tsify-next</code> crate is not maintained any more; use <a href="https://crates.io/crates/tsify"><code>tsify</code></a> instead.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0047: Vulnerability in slab</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0047.html</id><updated>2025-08-12T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0047.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0047: Vulnerability in slab"/><published>2025-08-12T12:00:00+00:00</published><summary xml:lang="en">Out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/slab/RUSTSEC-2025-0047.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/slab/RUSTSEC-2025-0047.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0047">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0047
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Out-of-bounds access in <code>get_disjoint_mut</code> due to incorrect bounds check</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-08-12">
|
|
August 12, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-08-12">
|
|
August 12, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/slab.html">slab</a>
|
|
(<a href="https://crates.io/crates/slab">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/memory-exposure.html">#memory-exposure</a>
|
|
|
|
<a href="/keywords/bounds-check.html">#bounds-check</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-55159">CVE-2025-55159</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-qx2v-8332-m4fv">GHSA-qx2v-8332-m4fv</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv">
|
|
https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/tokio-rs/slab/pull/152">
|
|
https://github.com/tokio-rs/slab/pull/152
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.4.11</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.4.10</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>slab::Slab::get_disjoint_mut</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>=0.4.10</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Impact</h2>
|
|
<p>The <code>get_disjoint_mut</code> method in slab v0.4.10 incorrectly checked if indices were within the slab's capacity instead of its length, allowing access to uninitialized memory. This could lead to undefined behavior or potential crashes.</p>
|
|
<h2>Patches</h2>
|
|
<p>This has been fixed in slab v0.4.11.</p>
|
|
<h2>Workarounds</h2>
|
|
<p>Avoid using <code>get_disjoint_mut</code> with indices that might be beyond the slab's actual length, or upgrade to v0.4.11 or later.</p>
|
|
<h2>References</h2>
|
|
<ul>
|
|
<li><a href="https://github.com/tokio-rs/slab/pull/152">https://github.com/tokio-rs/slab/pull/152</a></li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0046: Vulnerability in wasmtime</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0046.html</id><updated>2025-07-18T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0046.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0046: Vulnerability in wasmtime"/><published>2025-07-18T12:00:00+00:00</published><summary xml:lang="en">Host panic with `fd_renumber` WASIp1 function</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/wasmtime/RUSTSEC-2025-0046.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime/RUSTSEC-2025-0046.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0046">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0046
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Host panic with <code>fd_renumber</code> WASIp1 function</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-07-18">
|
|
July 18, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-07-18">
|
|
July 18, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/wasmtime.html">wasmtime</a>
|
|
(<a href="https://crates.io/crates/wasmtime">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-53901">CVE-2025-53901</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-fm79-3f68-h2fc">GHSA-fm79-3f68-h2fc</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-fm79-3f68-h2fc">
|
|
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-fm79-3f68-h2fc
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>3.3 <span class="tag low">
|
|
LOW
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Local</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</dd>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>Low</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>Low</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
|
|
|
|
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L">CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=34.0.2</code></li>
|
|
|
|
<li><code>&#62;=33.0.2, &#60;34.0.0</code></li>
|
|
|
|
<li><code>&#62;=24.0.4, &#60;25.0.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;10.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>This is an entry in the RustSec database for the Wasmtime security advisory
|
|
located at
|
|
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-fm79-3f68-h2fc.
|
|
For more information see the GitHub-hosted security advisory.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0045: Unsoundness in static_cell</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0045.html</id><updated>2025-07-17T12:00:00+00:00</updated><category term="memory-exposure"/><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0045.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0045: Unsoundness in static_cell"/><published>2025-07-17T12:00:00+00:00</published><summary xml:lang="en">ConstStaticCell could have been used to pass non-Send values to another thread</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/static_cell/RUSTSEC-2025-0045.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/static_cell/RUSTSEC-2025-0045.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0045">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0045
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>ConstStaticCell could have been used to pass non-Send values to another thread</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-07-17">
|
|
July 17, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-07-17">
|
|
July 17, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/static_cell.html">static_cell</a>
|
|
(<a href="https://crates.io/crates/static_cell">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-exposure.html">memory-exposure</a></li>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/send.html">#send</a>
|
|
|
|
<a href="/keywords/thread-safety.html">#thread-safety</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/embassy-rs/static-cell/issues/19">
|
|
https://github.com/embassy-rs/static-cell/issues/19
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=2.1.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=2.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>static_cell::ConstStaticCell::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>=2.1.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>ConstStaticCell&lt;T&gt;</code> could have been used to pass non-<code>Send</code> values to another thread, because <code>T</code> was not required to be <code>Send</code> while <code>ConstStaticCell</code> is <code>Send</code>.</p>
|
|
<p>This was corrected by introducing a <code>T: Send</code> bound.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0044: Vulnerability in slice-ring-buffer</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0044.html</id><updated>2025-07-14T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0044.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0044: Vulnerability in slice-ring-buffer"/><published>2025-07-14T12:00:00+00:00</published><summary xml:lang="en">Four unique double-free vulnerabilities triggered via safe APIs</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/slice-ring-buffer/RUSTSEC-2025-0044.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/slice-ring-buffer/RUSTSEC-2025-0044.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0044">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0044
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Four unique double-free vulnerabilities triggered via safe APIs</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-06-16">
|
|
June 16, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-07-14">
|
|
July 14, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/slice-ring-buffer.html">slice-ring-buffer</a>
|
|
(<a href="https://crates.io/crates/slice-ring-buffer">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/double-free.html">#double-free</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/LiquidityC/slice_ring_buffer/issues/12">
|
|
https://github.com/LiquidityC/slice_ring_buffer/issues/12
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>slice_ring_buffer::IntoIter::clone</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.3.4</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>slice_ring_buffer::SliceRingBuffer::extend_from_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.3.4</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>slice_ring_buffer::SliceRingBuffer::insert</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.3.4</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>slice_ring_buffer::SliceRingBuffer::shrink_to_fit</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.3.4</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The crate <a href="https://crates.io/crates/slice-ring-buffer"><code>slice-ring-buffer</code></a> was developed as a fork of <a href="https://crates.io/crates/slice-deque"><code>slice-deque</code></a> to continue maintenance and provide security patches, since the latter has been officially unmaintained (<a href="https://rustsec.org/advisories/RUSTSEC-2020-0158.html">RUSTSEC-2020-0158</a>).</p>
|
|
<p>While <code>slice-ring-buffer</code> has addressed some previously reported memory safety issues inherited from its fork origin (<a href="https://rustsec.org/advisories/RUSTSEC-2021-0047.html">RUSTSEC-2021-0047</a>), it still retains multiple unresolved memory corruption vulnerabilities.</p>
|
|
<p>Specifically, we have discovered four new memory safety bugs, each resulting in double-free violations that can occur when only safe APIs are invoked. These vulnerabilities correspond to four distinct safe APIs in the crate, each exposing unsound and vulnerable behavior due to incorrect usage of unsafe code internally.</p>
|
|
<p>Unfortunately, the maintainer doesn't have much availability to resolve these issues so there's no concrete timeline for fixes. Community contributions towards fixing these vulnerabilities would be much appreciated.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0042: Unsoundness in static-alloc</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0042.html</id><updated>2025-07-11T12:00:00+00:00</updated><category term="memory-exposure"/><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0042.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0042: Unsoundness in static-alloc"/><published>2025-07-11T12:00:00+00:00</published><summary xml:lang="en">Uninitialized read after allocating MemBump</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/static-alloc/RUSTSEC-2025-0042.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/static-alloc/RUSTSEC-2025-0042.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0042">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0042
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Uninitialized read after allocating MemBump</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-07-11">
|
|
July 11, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-07-11">
|
|
July 11, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/static-alloc.html">static-alloc</a>
|
|
(<a href="https://crates.io/crates/static-alloc">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-exposure.html">memory-exposure</a></li>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/initialization.html">#initialization</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/197g/static-alloc/issues/81">
|
|
https://github.com/197g/static-alloc/issues/81
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.2.6</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>static_alloc::unsync::MemBump::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.2.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The affected function, <code>MemBump::new()</code>, would allocate memory without
|
|
initializing it. Subsequently calling the created value's various <code>alloc</code>
|
|
methods would then read and write the start of that memory as a <code>Cell</code> which is
|
|
undefined behavior. Instead, it should zero initialize the start of the
|
|
allocated memory.</p>
|
|
<p>For instance, some values could violate the internal invariants of the type and
|
|
cause an assertion failure. Nevertheless, no deterministic read is known to
|
|
cause further uninitialized memory to be exposed.</p>
|
|
<p>Affected downstream users that can not upgrade are advised to call
|
|
<code>MemBump::reset</code> immediately after allocation to manually perform the missing
|
|
write of the counter best-as-possible.</p>
|
|
<p>The flaw was corrected in commit d8d6a7d096d3aaafd963b356a8f1bbd8d26fd967 by
|
|
zeroing the Cell at the start of the allocated memory.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry></feed> |