mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:14:33 -06:00
1625 lines
51 KiB
XML
1625 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-10-25T12: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-0110: Vulnerability in astral-tokio-tar</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0110.html</id><updated>2025-10-25T12:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0110.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0110: Vulnerability in astral-tokio-tar"/><published>2025-10-25T12:00:00+00:00</published><summary xml:lang="en">astral-tokio-tar Vulnerable to PAX Header Desynchronization</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/astral-tokio-tar/RUSTSEC-2025-0110.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/astral-tokio-tar/RUSTSEC-2025-0110.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0110">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0110
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>astral-tokio-tar Vulnerable to PAX Header Desynchronization</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-25">
|
|
October 25, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/astral-tokio-tar.html">astral-tokio-tar</a>
|
|
(<a href="https://crates.io/crates/astral-tokio-tar">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/format-injection.html">format-injection</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/parser-differential.html">#parser-differential</a>
|
|
|
|
<a href="/keywords/smuggling.html">#smuggling</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-62518">CVE-2025-62518</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-j5gw-2vrg-8fgx">GHSA-j5gw-2vrg-8fgx</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/advisories/GHSA-j5gw-2vrg-8fgx">
|
|
https://github.com/advisories/GHSA-j5gw-2vrg-8fgx
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.1 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Network</dd>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>User Interaction</dt>
|
|
<dd>Required</dd>
|
|
|
|
<dt>Scope</dt>
|
|
<dd>Unchanged</dd>
|
|
|
|
<dt>Confidentiality Impact</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Integrity Impact</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Availability Impact</dt>
|
|
<dd>None</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
|
|
|
|
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N">CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.5.6</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Versions of astral-tokio-tar prior to 0.5.6 contain a boundary parsing
|
|
vulnerability that allows attackers to smuggle additional archive entries by
|
|
exploiting inconsistent PAX/ustar header handling. When processing archives with
|
|
PAX-extended headers containing size overrides, the parser incorrectly advances
|
|
stream position based on ustar header size (often zero) instead of the
|
|
PAX-specified size, causing it to interpret file content as legitimate tar
|
|
headers.</p>
|
|
<p>This vulnerability was disclosed to multiple Rust tar parsers, all derived from
|
|
the original async-tar fork of tar-rs.</p>
|
|
<p>For additional information see
|
|
<a href="https://edera.dev/stories/tarmageddon">Edera's blog post</a>.</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-0112: Vulnerability in wasmtime</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0112.html</id><updated>2025-10-25T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0112.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0112: Vulnerability in wasmtime"/><published>2025-10-25T12:00:00+00:00</published><summary xml:lang="en">Possible host crash with host-to-wasm component intrinsics</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-0112.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime/RUSTSEC-2025-0112.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0112">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0112
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Possible host crash with host-to-wasm component intrinsics</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-10-25">
|
|
October 25, 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-62711">CVE-2025-62711</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-4h67-722j-5pmc">GHSA-4h67-722j-5pmc</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4h67-722j-5pmc">
|
|
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4h67-722j-5pmc
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=38.0.3</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;38.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-4h67-722j-5pmc
|
|
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-0111: Vulnerability in tokio-tar</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0111.html</id><updated>2025-10-25T12:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0111.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0111: Vulnerability in tokio-tar"/><published>2025-10-25T12:00:00+00:00</published><summary xml:lang="en">`tokio-tar` parses PAX extended headers incorrectly, allows file smuggling</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tokio-tar/RUSTSEC-2025-0111.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tokio-tar/RUSTSEC-2025-0111.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0111">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0111
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>tokio-tar</code> parses PAX extended headers incorrectly, allows file smuggling</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-25">
|
|
October 25, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tokio-tar.html">tokio-tar</a>
|
|
(<a href="https://crates.io/crates/tokio-tar">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/format-injection.html">format-injection</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/unsound.html">#unsound</a>
|
|
|
|
<a href="/keywords/parsing.html">#parsing</a>
|
|
|
|
<a href="/keywords/smuggling.html">#smuggling</a>
|
|
|
|
<a href="/keywords/file-smuggling.html">#file-smuggling</a>
|
|
|
|
<a href="/keywords/unmaintained.html">#unmaintained</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://edera.dev/stories/tarmageddon">
|
|
https://edera.dev/stories/tarmageddon
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-62518">CVE-2025-62518</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-j5gw-2vrg-8fgx">GHSA-j5gw-2vrg-8fgx</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>tokio_tar::Archive::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.3.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>tokio_tar::ArchiveBuilder::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.3.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The archive reader incorrectly handles PAX extended headers, when the ustar
|
|
header incorrectly specifies zero size (<code>size=000000000000</code>), while a PAX
|
|
header specifies a non-zero size, <code>tokio-tar::Archive</code> is going to read the
|
|
file content as tar entry header.</p>
|
|
<p>This can be used by a tar file to present different content to <code>tokio-tar</code>
|
|
compared to other tar reader implementations.</p>
|
|
<p>This bug is also known as <code>CVE-2025-62518</code> and <code>GHSA-j5gw-2vrg-8fgx</code>, as those
|
|
crates share a common ancestor codebase.</p>
|
|
<p>The <code>tokio-tar</code> crate is archived and no longer maintained, we recommend you
|
|
switch to an alternative crate such as:</p>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/astral-tokio-tar"><code>astral-tokio-tar</code></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-0107: Unsoundness in borrowck_sacrifices</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0107.html</id><updated>2025-10-28T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0107.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0107: Unsoundness in borrowck_sacrifices"/><published>2025-10-22T12:00:00+00:00</published><summary xml:lang="en">Uninitialized memory exposure in any_as_u8_slice</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/borrowck_sacrifices/RUSTSEC-2025-0107.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/borrowck_sacrifices/RUSTSEC-2025-0107.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0107">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0107
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Uninitialized memory exposure in any_as_u8_slice</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-22">
|
|
October 22, 2025
|
|
</time>
|
|
|
|
<time datetime="2025-10-28">
|
|
(last modified: October 28, 2025)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/borrowck_sacrifices.html">borrowck_sacrifices</a>
|
|
(<a href="https://crates.io/crates/borrowck_sacrifices">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>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/uninitialized-memory.html">#uninitialized-memory</a>
|
|
|
|
<a href="/keywords/soundness.html">#soundness</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-xcpm-76hf-c9cc">GHSA-xcpm-76hf-c9cc</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/alexpyattaev/borrowck_sacrifices/issues/1">
|
|
https://github.com/alexpyattaev/borrowck_sacrifices/issues/1
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.2.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>borrowck_sacrifices::unsafe_casts::any_as_u8_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.2.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The safe function <code>any_as_u8_slice</code> can create byte slices that reference uninitialized memory when used with types containing padding bytes.</p>
|
|
<p>The function uses <code>slice::from_raw_parts</code> to create a <code>&amp;[u8]</code> covering the entire size of a type, including padding bytes. According to Rust's documentation, <code>from_raw_parts</code> requires all bytes to be properly initialized, but padding bytes in structs are not guaranteed to be initialized. This violates the safety contract and causes undefined behavior.</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-0108: Unsoundness in ncurses</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0108.html</id><updated>2025-10-28T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0108.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0108: Unsoundness in ncurses"/><published>2025-10-22T12:00:00+00:00</published><summary xml:lang="en">Uninitialized memory exposure in string reading functions</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ncurses/RUSTSEC-2025-0108.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ncurses/RUSTSEC-2025-0108.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0108">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0108
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Uninitialized memory exposure in string reading functions</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-22">
|
|
October 22, 2025
|
|
</time>
|
|
|
|
<time datetime="2025-10-28">
|
|
(last modified: October 28, 2025)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/ncurses.html">ncurses</a>
|
|
(<a href="https://crates.io/crates/ncurses">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>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/soundness.html">#soundness</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-x77x-7mmh-cxv3">GHSA-x77x-7mmh-cxv3</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/RustSec/advisory-db/pull/2427">
|
|
https://github.com/RustSec/advisory-db/pull/2427
|
|
</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>ncurses::inchnstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::inchstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::innstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::mvwinchnstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::mvwinchstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::mvwinnstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::winchnstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::winchstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::winnstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ncurses::winstr</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=6.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Multiple string reading functions expose uninitialized memory by setting length to capacity when no null terminator is found.</p>
|
|
<p>This allows reading uninitialized memory which may contain sensitive data from previous allocations.</p>
|
|
<p>The ncurses-rs repository is archived and unmaintained.</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-0109: Unsoundness in binary_vec_io</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0109.html</id><updated>2025-10-28T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0109.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0109: Unsoundness in binary_vec_io"/><published>2025-10-22T12:00:00+00:00</published><summary xml:lang="en">Out-of-bounds memory access in binary_read_to_ref and binary_write_from_ref</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/binary_vec_io/RUSTSEC-2025-0109.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/binary_vec_io/RUSTSEC-2025-0109.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0109">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0109
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Out-of-bounds memory access in binary_read_to_ref and binary_write_from_ref</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-22">
|
|
October 22, 2025
|
|
</time>
|
|
|
|
<time datetime="2025-10-28">
|
|
(last modified: October 28, 2025)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/binary_vec_io.html">binary_vec_io</a>
|
|
(<a href="https://crates.io/crates/binary_vec_io">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-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/buffer-overflow.html">#buffer-overflow</a>
|
|
|
|
<a href="/keywords/soundness.html">#soundness</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-wwxp-hxh6-8gf8">GHSA-wwxp-hxh6-8gf8</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/RustSec/advisory-db/pull/2428">
|
|
https://github.com/RustSec/advisory-db/pull/2428
|
|
</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>binary_vec_io::binary_read_to_ref</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.1.12</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>binary_vec_io::binary_write_from_ref</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.1.12</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Safe functions accept a single <code>&amp;T</code> or <code>&amp;mut T</code> but multiply by <code>n</code> to create slices extending beyond allocated memory when <code>n &gt; 1</code>.</p>
|
|
<p>These functions use <code>from_raw_parts</code> to create slices larger than the underlying allocation, violating memory safety.</p>
|
|
<p>The binary_vec_io repository is archived and unmaintained.</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-0074: unic-segment is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0074.html</id><updated>2025-10-21T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0074.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0074: unic-segment is unmaintained"/><published>2025-10-21T12:00:00+00:00</published><summary xml:lang="en">`unic-segment` is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/unic-segment/RUSTSEC-2025-0074.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/unic-segment/RUSTSEC-2025-0074.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0074">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0074
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>unic-segment</code> is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-18">
|
|
October 18, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/unic-segment.html">unic-segment</a>
|
|
(<a href="https://crates.io/crates/unic-segment">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/rustsec/advisory-db/issues/2414">
|
|
https://github.com/rustsec/advisory-db/issues/2414
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>All Unicode crates that are part of https://github.com/open-i18n/rust-unic are unmaintained.</p>
|
|
<h2>Recommended alternatives</h2>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/icu_segmenter"><code>icu_segmenter</code></a></li>
|
|
<li><a href="https://crates.io/crates/unicode-segmentation"><code>unicode-segmentation</code></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-0075: unic-char-range is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0075.html</id><updated>2025-10-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0075.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0075: unic-char-range is unmaintained"/><published>2025-10-21T12:00:00+00:00</published><summary xml:lang="en">`unic-char-range` is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/unic-char-range/RUSTSEC-2025-0075.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/unic-char-range/RUSTSEC-2025-0075.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0075">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0075
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>unic-char-range</code> is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-18">
|
|
October 18, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
|
|
<time datetime="2025-10-22">
|
|
(last modified: October 22, 2025)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/unic-char-range.html">unic-char-range</a>
|
|
(<a href="https://crates.io/crates/unic-char-range">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/rustsec/advisory-db/issues/2414">
|
|
https://github.com/rustsec/advisory-db/issues/2414
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>All Unicode crates that are part of https://github.com/open-i18n/rust-unic are unmaintained.</p>
|
|
<h2>Recommended alternatives</h2>
|
|
<ul>
|
|
<li>Since version <a href="https://releases.rs/docs/1.45.0/#libraries">1.45.0</a> Rust <a href="https://github.com/rust-lang/rust/pull/72413/">supports</a> using <code>char</code> with <code>ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}</code> to iterate over a range of codepoints.</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-0076: unic-ucd-name is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0076.html</id><updated>2025-10-21T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0076.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0076: unic-ucd-name is unmaintained"/><published>2025-10-21T12:00:00+00:00</published><summary xml:lang="en">`unic-ucd-name` is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/unic-ucd-name/RUSTSEC-2025-0076.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/unic-ucd-name/RUSTSEC-2025-0076.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0076">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0076
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>unic-ucd-name</code> is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-18">
|
|
October 18, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/unic-ucd-name.html">unic-ucd-name</a>
|
|
(<a href="https://crates.io/crates/unic-ucd-name">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/rustsec/advisory-db/issues/2414">
|
|
https://github.com/rustsec/advisory-db/issues/2414
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>All Unicode crates that are part of https://github.com/open-i18n/rust-unic are unmaintained.</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-0105: Unsoundness in direct_ring_buffer</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0105.html</id><updated>2025-10-28T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0105.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0105: Unsoundness in direct_ring_buffer"/><published>2025-10-21T12:00:00+00:00</published><summary xml:lang="en">Uninitialized memory exposure in create_ring_buffer</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/direct_ring_buffer/RUSTSEC-2025-0105.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/direct_ring_buffer/RUSTSEC-2025-0105.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0105">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0105
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Uninitialized memory exposure in create_ring_buffer</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2025-10-21">
|
|
October 21, 2025
|
|
</time>
|
|
|
|
<time datetime="2025-10-28">
|
|
(last modified: October 28, 2025)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/direct_ring_buffer.html">direct_ring_buffer</a>
|
|
(<a href="https://crates.io/crates/direct_ring_buffer">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>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/uninitialized-memory.html">#uninitialized-memory</a>
|
|
|
|
<a href="/keywords/soundness.html">#soundness</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-fp5x-7m4q-449f">GHSA-fp5x-7m4q-449f</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/ain1084/direct_ring_buffer/issues/1">
|
|
https://github.com/ain1084/direct_ring_buffer/issues/1
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/ain1084/direct_ring_buffer/pull/2">
|
|
https://github.com/ain1084/direct_ring_buffer/pull/2
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.2.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>direct_ring_buffer::create_ring_buffer</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The safe function <code>create_ring_buffer</code> allocates a buffer using <code>Vec::with_capacity</code> followed by <code>set_len</code>, creating a <code>Box&lt;[T]&gt;</code> containing uninitialized memory.</p>
|
|
<p>This leads to undefined behavior when functions like <code>write_slices</code> create typed slices (e.g., <code>&amp;mut [bool]</code>) over the uninitialized memory, violating Rust's validity invariants. The issue has been confirmed using Miri.</p>
|
|
<p>Fixed in version 0.2.2 by using <code>resize_with</code> to properly initialize the buffer with <code>T::default()</code>, adding a <code>T: Default</code> bound to ensure sound initialization.</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> |