mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 18:34:31 -06:00
1529 lines
48 KiB
XML
1529 lines
48 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>2021-11-29T00: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-2021-0126: Vulnerability in rust-embed</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0126.html</id><updated>2021-11-29T00:00:00+00:00</updated><category term="file-disclosure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0126.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0126: Vulnerability in rust-embed"/><published>2021-11-29T00:00:00+00:00</published><summary xml:lang="en">RustEmbed generated `get` method allows for directory traversal when reading files from disk</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/rust-embed/RUSTSEC-2021-0126.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/rust-embed/RUSTSEC-2021-0126.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0126
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>RustEmbed generated <code>get</code> method allows for directory traversal when reading files from disk</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-11-29">
|
|
November 29, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/rust-embed.html">rust-embed</a>
|
|
(<a href="https://crates.io/crates/rust-embed">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/file-disclosure.html">file-disclosure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;pyros2097&#x2f;rust-embed&#x2f;issues&#x2f;159">
|
|
https:&#x2f;&#x2f;github.com&#x2f;pyros2097&#x2f;rust-embed&#x2f;issues&#x2f;159
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=6.3.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>When running in debug mode and the <code>debug-embed</code> (off by default) feature is
|
|
not enabled, the generated <code>get</code> method does not check that the input path is
|
|
a child of the folder given.</p>
|
|
<p>This allows attackers to read arbitrary files in the file system if they have
|
|
control over the filename given. The following code will print the contents of
|
|
your <code>/etc/passwd</code> if adjusted with a correct number of <code>../</code>s depending on
|
|
where it is run from.</p>
|
|
<pre><code class="language-rust">#[derive(rust_embed::RustEmbed)]
|
|
#[folder = &quot;src/&quot;]
|
|
pub struct Asset;
|
|
|
|
fn main() {
|
|
let d = Asset::get(&quot;../../../etc/passwd&quot;).unwrap().data;
|
|
println!(&quot;{}&quot;, String::from_utf8_lossy(&amp;d));
|
|
}
|
|
</code></pre>
|
|
<p>The flaw was corrected by canonicalizing the input filename and ensuring that
|
|
it starts with the canonicalized folder path.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0124: Vulnerability in tokio</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0124.html</id><updated>2021-11-16T00:00:00+00:00</updated><category term="memory-corruption"/><category term="thread-safety"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0124.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0124: Vulnerability in tokio"/><published>2021-11-16T00:00:00+00:00</published><summary xml:lang="en">Data race when sending and receiving after closing a `oneshot` channel</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tokio/RUSTSEC-2021-0124.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tokio/RUSTSEC-2021-0124.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0124
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Data race when sending and receiving after closing a <code>oneshot</code> channel</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-11-16">
|
|
November 16, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/tokio.html">tokio</a>
|
|
(<a href="https://crates.io/crates/tokio">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>
|
|
|
|
<li><a href="/categories/thread-safety.html">thread-safety</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/race-condition.html">#race-condition</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;tokio&#x2f;issues&#x2f;4225">
|
|
https:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;tokio&#x2f;issues&#x2f;4225
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.8.4, &lt;1.9.0</code></li>
|
|
|
|
<li><code>&gt;=1.13.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.1.14</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/race-condition.html">#race-condition</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>tokio::sync::oneshot::Receiver::close</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=1.13.0, &gt;=0.1.14</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>If a <code>tokio::sync::oneshot</code> channel is closed (via the
|
|
<a href="https://docs.rs/tokio/1.14.0/tokio/sync/oneshot/struct.Receiver.html#method.close"><code>oneshot::Receiver::close</code></a> method), a data race may occur if the
|
|
<code>oneshot::Sender::send</code> method is called while the corresponding
|
|
<code>oneshot::Receiver</code> is <code>await</code>ed or calling <code>try_recv</code>.</p>
|
|
<p>When these methods are called concurrently on a closed channel, the two halves
|
|
of the channel can concurrently access a shared memory location, resulting in a
|
|
data race. This has been observed to <a href="https://github.com/tokio-rs/tokio/issues/4225#issuecomment-967434847">cause memory corruption</a>.</p>
|
|
<p>Note that the race only occurs when <strong>both</strong> halves of the channel are used
|
|
after the <code>Receiver</code> half has called <code>close</code>. Code where <code>close</code> is not used, or where the
|
|
<code>Receiver</code> is not <code>await</code>ed and <code>try_recv</code> is not called after calling <code>close</code>,
|
|
is not affected.</p>
|
|
<p>See <a href="https://github.com/tokio-rs/tokio/issues/4225">tokio#4225</a> for more details.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0123: Vulnerability in fruity</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0123.html</id><updated>2021-11-14T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0123.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0123: Vulnerability in fruity"/><published>2021-11-14T00:00:00+00:00</published><summary xml:lang="en">Converting `NSString` to a String Truncates at Null Bytes</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/fruity/RUSTSEC-2021-0123.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/fruity/RUSTSEC-2021-0123.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0123
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Converting <code>NSString</code> to a String Truncates at Null Bytes</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-11-14">
|
|
November 14, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/fruity.html">fruity</a>
|
|
(<a href="https://crates.io/crates/fruity">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
|
|
<a href="https:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-43620">CVE-2021-43620</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;nvzqz&#x2f;fruity&#x2f;issues&#x2f;14">
|
|
https:&#x2f;&#x2f;github.com&#x2f;nvzqz&#x2f;fruity&#x2f;issues&#x2f;14
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>fruity::foundation::NSString::to_str</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;0.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>fruity::foundation::NSString::to_str_with_nul</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;0.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>fruity::foundation::NSString::to_string</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;0.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>fruity::foundation::NSString::to_string_with_nul</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;0.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Methods of <a href="https://docs.rs/fruity/0.2.0/fruity/foundation/struct.NSString.html"><code>NSString</code></a> for conversion to a string may return a partial result.
|
|
Since they call <a href="https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_ptr"><code>CStr::from_ptr</code></a> on a pointer to the string buffer, the
|
|
string is terminated at the first null byte, which might not be the end of the
|
|
string.</p>
|
|
<p>In addition to the vulnerable functions listed for this issue, the
|
|
implementations of <a href="https://doc.rust-lang.org/std/fmt/trait.Display.html"><code>Display</code></a>, <a href="https://doc.rust-lang.org/std/cmp/trait.PartialEq.html"><code>PartialEq</code></a>, <a href="https://doc.rust-lang.org/std/cmp/trait.PartialOrd.html"><code>PartialOrd</code></a>, and <a href="https://doc.rust-lang.org/std/string/trait.ToString.html"><code>ToString</code></a>
|
|
for <a href="https://docs.rs/fruity/0.2.0/fruity/foundation/struct.NSString.html"><code>NSString</code></a> are also affected, since they call those functions.</p>
|
|
<h2>Impact</h2>
|
|
<p>Since <a href="https://docs.rs/fruity/0.2.0/fruity/foundation/struct.NSString.html"><code>NSString</code></a> is commonly used as the type for paths by the <a href="https://developer.apple.com/documentation/foundation">Foundation</a>
|
|
framework, null byte truncation might allow for easily bypassing file extension
|
|
checks. For example, if a file name is provided by a user and validated to have
|
|
one of a specific set of extensions, with validation taking place before
|
|
truncation, an attacker can add an accepted extension after a null byte (e.g.,
|
|
<code>file.exe\0.txt</code>). After truncation, the file name used by the application
|
|
would be <code>file.exe</code>.</p>
|
|
<p>It would be better to generate unique names for files, instead of using
|
|
user-provided names, but not all applications take this approach.</p>
|
|
<h2>Example:</h2>
|
|
<pre><code class="language-rust">let string = NSString::from_str(&quot;null\0byte&quot;);
|
|
println!(&quot;{}&quot;, string);
|
|
</code></pre>
|
|
<p>That example only prints the string &quot;null&quot;.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0125: Vulnerability in simple_asn1</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0125.html</id><updated>2021-11-14T00:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0125.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0125: Vulnerability in simple_asn1"/><published>2021-11-14T00:00:00+00:00</published><summary xml:lang="en">Panic on incorrect date input to `simple_asn1`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/simple_asn1/RUSTSEC-2021-0125.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/simple_asn1/RUSTSEC-2021-0125.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0125
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Panic on incorrect date input to <code>simple_asn1</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-11-14">
|
|
November 14, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/simple_asn1.html">simple_asn1</a>
|
|
(<a href="https://crates.io/crates/simple_asn1">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/panic.html">#panic</a>
|
|
|
|
<a href="/keywords/string_slice.html">#string_slice</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;acw&#x2f;simple_asn1&#x2f;issues&#x2f;27">
|
|
https:&#x2f;&#x2f;github.com&#x2f;acw&#x2f;simple_asn1&#x2f;issues&#x2f;27
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.6.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.6.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/panic.html">#panic</a>
|
|
|
|
<a href="/keywords/string_slice.html">#string_slice</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Version 0.6.0 of the <code>simple_asn1</code> crate panics on certain malformed
|
|
inputs to its parsing functions, including <code>from_der</code> and <code>der_decode</code>.
|
|
Because this crate is frequently used with inputs from the network, this
|
|
should be considered a security vulnerability.</p>
|
|
<p>The issue occurs when parsing the old ASN.1 &quot;UTCTime&quot; time format. If an
|
|
attacker provides a UTCTime where the first character is ASCII but the
|
|
second character is above 0x7f, a string slice operation in the
|
|
<code>from_der_</code> function will try to slice into the middle of a UTF-8
|
|
character, and cause a panic.</p>
|
|
<p>This error was introduced in commit
|
|
<a href="https://github.com/acw/simple_asn1/commit/d7d39d709577710e9dc8833ee57d200eef366db8"><code>d7d39d709577710e9dc8</code></a>,
|
|
which updated <code>simple_asn1</code> to use <code>time</code> instead of <code>chrono</code> because of
|
|
<a href="https://rustsec.org/advisories/RUSTSEC-2020-0159"><code>RUSTSEC-2020-159</code></a>.
|
|
Versions of <code>simple_asn1</code> before 0.6.0 are not affected by this issue.</p>
|
|
<p>The <a href="https://github.com/acw/simple_asn1/pull/28">patch</a> was applied in
|
|
<code>simple_asn1</code> version 0.6.1.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0122: Vulnerability in flatbuffers</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0122.html</id><updated>2021-10-31T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0122.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0122: Vulnerability in flatbuffers"/><published>2021-10-31T00:00:00+00:00</published><summary xml:lang="en">Generated code can read and write out of bounds in safe code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/flatbuffers/RUSTSEC-2021-0122.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/flatbuffers/RUSTSEC-2021-0122.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0122
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Generated code can read and write out of bounds in safe code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-10-31">
|
|
October 31, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/flatbuffers.html">flatbuffers</a>
|
|
(<a href="https://crates.io/crates/flatbuffers">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;google&#x2f;flatbuffers&#x2f;issues&#x2f;6627">
|
|
https:&#x2f;&#x2f;github.com&#x2f;google&#x2f;flatbuffers&#x2f;issues&#x2f;6627
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>9.8 <span class="tag critical">
|
|
CRITICAL
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>None</dd>
|
|
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>High</dd>
|
|
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>High</dd>
|
|
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>High</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1&#x2f;AV:N&#x2f;AC:L&#x2f;PR:N&#x2f;UI:N&#x2f;S:U&#x2f;C:H&#x2f;I:H&#x2f;A:H">CVSS:3.1&#x2f;AV:N&#x2f;AC:L&#x2f;PR:N&#x2f;UI:N&#x2f;S:U&#x2f;C:H&#x2f;I:H&#x2f;A:H</a></dd>
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Code generated by flatbuffers' compiler is <code>unsafe</code> but not marked as such.
|
|
See https://github.com/google/flatbuffers/issues/6627 for details.</p>
|
|
<p>All users that use generated code by <code>flatbuffers</code> compiler are recommended to:</p>
|
|
<ol>
|
|
<li>not expose flatbuffer generated code as part of their public APIs</li>
|
|
<li>audit their code and look for any usage of <code>follow</code>, <code>push</code>, or any method that uses them
|
|
(e.g. <code>self_follow</code>).</li>
|
|
<li>Carefuly go through the crates' documentation to understand which &quot;safe&quot; APIs are not
|
|
intended to be used.</li>
|
|
</ol>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0120: Unsoundness in abomonation</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0120.html</id><updated>2021-10-17T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0120.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0120: Unsoundness in abomonation"/><published>2021-10-17T00:00:00+00:00</published><summary xml:lang="en">abomonation transmutes &amp;T to and from &amp;[u8] without sufficient constraints</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/abomonation/RUSTSEC-2021-0120.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/abomonation/RUSTSEC-2021-0120.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0120
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>abomonation transmutes &amp;T to and from &amp;[u8] without sufficient constraints</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-10-17">
|
|
October 17, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/abomonation.html">abomonation</a>
|
|
(<a href="https://crates.io/crates/abomonation">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;TimelyDataflow&#x2f;abomonation&#x2f;issues&#x2f;23">
|
|
https:&#x2f;&#x2f;github.com&#x2f;TimelyDataflow&#x2f;abomonation&#x2f;issues&#x2f;23
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>This transmute is at the core of the abomonation crates. It's so easy to use it to violate alignment requirements that no test in the crate's test suite passes under miri.
|
|
The use of this transmute in serialization/deserialization also incorrectly assumes that the layout of a repr(Rust) type is stable.
|
|
This transmute can also disclose both the contents of padding bytes which may be an information leak and the contents of pointers, which may be used to defeat ASLR.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0121: Unsoundness in crypto2</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0121.html</id><updated>2021-10-08T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0121.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0121: Unsoundness in crypto2"/><published>2021-10-08T00:00:00+00:00</published><summary xml:lang="en">Non-aligned u32 read in Chacha20 encryption and decryption</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/crypto2/RUSTSEC-2021-0121.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/crypto2/RUSTSEC-2021-0121.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0121
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Non-aligned u32 read in Chacha20 encryption and decryption</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-10-08">
|
|
October 8, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/crypto2.html">crypto2</a>
|
|
(<a href="https://crates.io/crates/crypto2">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/crypto.html">#crypto</a>
|
|
|
|
<a href="/keywords/alignment.html">#alignment</a>
|
|
|
|
<a href="/keywords/unsound.html">#unsound</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;shadowsocks&#x2f;crypto2&#x2f;issues&#x2f;27">
|
|
https:&#x2f;&#x2f;github.com&#x2f;shadowsocks&#x2f;crypto2&#x2f;issues&#x2f;27
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/crypto.html">#crypto</a>
|
|
|
|
<a href="/keywords/alignment.html">#alignment</a>
|
|
|
|
<a href="/keywords/unsound.html">#unsound</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>crypto2::streamcipher::Chacha20::decrypt_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>*</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>crypto2::streamcipher::Chacha20::encrypt_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>*</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>crypto2::streamcipher::xor_si512_inplace</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>*</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The implementation does not enforce alignment requirements on input slices while incorrectly assuming 4-byte alignment through an unsafe call to <code>std::slice::from_raw_parts_mut</code>, which breaks the contract and introduces undefined behavior.</p>
|
|
<p>This affects Chacha20 encryption and decryption in crypto2.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0119: Vulnerability in nix</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0119.html</id><updated>2021-09-27T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0119.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0119: Vulnerability in nix"/><published>2021-09-27T00:00:00+00:00</published><summary xml:lang="en">Out-of-bounds write in nix::unistd::getgrouplist</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nix/RUSTSEC-2021-0119.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nix/RUSTSEC-2021-0119.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0119
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Out-of-bounds write in nix::unistd::getgrouplist</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-09-27">
|
|
September 27, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/nix.html">nix</a>
|
|
(<a href="https://crates.io/crates/nix">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/nss.html">#nss</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;nix-rust&#x2f;nix&#x2f;issues&#x2f;1541">
|
|
https:&#x2f;&#x2f;github.com&#x2f;nix-rust&#x2f;nix&#x2f;issues&#x2f;1541
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
|
|
<ul>
|
|
|
|
<li><code>^0.20.2</code></li>
|
|
|
|
<li><code>^0.21.2</code></li>
|
|
|
|
<li><code>^0.22.2</code></li>
|
|
|
|
<li><code>&gt;=0.23.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.16.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/nss.html">#nss</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected OSes</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>linux</code></li>
|
|
|
|
<li><code>freebsd</code></li>
|
|
|
|
<li><code>android</code></li>
|
|
|
|
<li><code>netbsd</code></li>
|
|
|
|
<li><code>dragonfly</code></li>
|
|
|
|
<li><code>openbsd</code></li>
|
|
|
|
<li><code>fuchsia</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>nix::unistd::getgrouplist</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.16.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>On certain platforms, if a user has more than 16 groups, the
|
|
<code>nix::unistd::getgrouplist</code> function will call the libc <code>getgrouplist</code>
|
|
function with a length parameter greater than the size of the buffer it
|
|
provides, resulting in an out-of-bounds write and memory corruption.</p>
|
|
<p>The libc <code>getgrouplist</code> function takes an in/out parameter <code>ngroups</code>
|
|
specifying the size of the group buffer. When the buffer is too small to
|
|
hold all of the reqested user's group memberships, some libc
|
|
implementations, including glibc and Solaris libc, will modify <code>ngroups</code>
|
|
to indicate the actual number of groups for the user, in addition to
|
|
returning an error. The version of <code>nix::unistd::getgrouplist</code> in nix
|
|
0.16.0 and up will resize the buffer to twice its size, but will not
|
|
read or modify the <code>ngroups</code> variable. Thus, if the user has more than
|
|
twice as many groups as the initial buffer size of 8, the next call to
|
|
<code>getgrouplist</code> will then write past the end of the buffer.</p>
|
|
<p>The issue would require editing /etc/groups to exploit, which is usually
|
|
only editable by the root user.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0115: Vulnerability in zeroize_derive</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0115.html</id><updated>2021-09-24T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0115.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0115: Vulnerability in zeroize_derive"/><published>2021-09-24T00:00:00+00:00</published><summary xml:lang="en">`#[zeroize(drop)]` doesn&apos;t implement `Drop` for `enum`s</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/zeroize_derive/RUSTSEC-2021-0115.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/zeroize_derive/RUSTSEC-2021-0115.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0115
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>#[zeroize(drop)]</code> doesn't implement <code>Drop</code> for <code>enum</code>s</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-09-24">
|
|
September 24, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/zeroize_derive.html">zeroize_derive</a>
|
|
(<a href="https://crates.io/crates/zeroize_derive">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;iqlusioninc&#x2f;crates&#x2f;issues&#x2f;876">
|
|
https:&#x2f;&#x2f;github.com&#x2f;iqlusioninc&#x2f;crates&#x2f;issues&#x2f;876
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.1.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of this crate did not implement <code>Drop</code> when <code>#[zeroize(drop)]</code> was used on an <code>enum</code>.</p>
|
|
<p>This can result in memory not being zeroed out after dropping it, which is exactly what is intended when adding this attribute.</p>
|
|
<p>The flaw was corrected in version 1.2 and <code>#[zeroize(drop)]</code> on <code>enum</code>s now properly implements <code>Drop</code>.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0114: Vulnerability in nanorand</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0114.html</id><updated>2021-09-23T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0114.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0114: Vulnerability in nanorand"/><published>2021-09-23T00:00:00+00:00</published><summary xml:lang="en">Aliased mutable references from `tls_rand` &amp; `TlsWyRand`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nanorand/RUSTSEC-2021-0114.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nanorand/RUSTSEC-2021-0114.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
|
|
RUSTSEC-2021-0114
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Aliased mutable references from <code>tls_rand</code> &amp; <code>TlsWyRand</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2021-09-23">
|
|
September 23, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
|
|
<a href="/packages/nanorand.html">nanorand</a>
|
|
(<a href="https://crates.io/crates/nanorand">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/aliasing.html">#aliasing</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https:&#x2f;&#x2f;github.com&#x2f;Absolucy&#x2f;nanorand-rs&#x2f;issues&#x2f;28">
|
|
https:&#x2f;&#x2f;github.com&#x2f;Absolucy&#x2f;nanorand-rs&#x2f;issues&#x2f;28
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.6.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.5.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/aliasing.html">#aliasing</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>nanorand::tls::tls_rand</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.5.0</code></li>
|
|
|
|
<li><code>&lt;=0.6.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>TlsWyRand</code>'s implementation of <code>Deref</code> unconditionally dereferences a raw pointer, and returns
|
|
multiple mutable references to the same object, which is undefined behavior.</p>
|
|
|
|
</article></content></entry></feed> |