mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-12-03 21:31:27 -06:00
1372 lines
46 KiB
XML
1372 lines
46 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>2024-12-28T12: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-2024-0431: Unsoundness in xous</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0431.html</id><updated>2024-12-28T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0431.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0431: Unsoundness in xous"/><published>2024-12-28T12:00:00+00:00</published><summary xml:lang="en">Unsound usages of `core::slice::from_raw_parts`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/xous/RUSTSEC-2024-0431.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/xous/RUSTSEC-2024-0431.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0431">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0431
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound usages of <code>core::slice::from_raw_parts</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-12-23">
|
|
December 23, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-28">
|
|
December 28, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/xous.html">xous</a>
|
|
(<a href="https://crates.io/crates/xous">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/betrusted-io/xous-core/issues/410">
|
|
https://github.com/betrusted-io/xous-core/issues/410
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/betrusted-io/xous-core/pull/411">
|
|
https://github.com/betrusted-io/xous-core/pull/411
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.9.51</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>xous::definitions::MemoryRange::as_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.9.51</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>xous::definitions::MemoryRange::as_slice_mut</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.9.51</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>We consider <code>as_slice</code> and <code>as_slice_mut</code> unsound because: the pointer with any bit patterns could be cast to the slice of arbitrary types. The pointer could be created by unsafe new and deprecated <code>from_parts</code>. We consider that <code>from_parts</code> should be removed in latest version because it will help trigger unsoundness in <code>as_slice</code>. With new declared as unsafe, <code>as_slice</code> should also declared as unsafe.</p>
|
|
<p>This was patched in by marking two functions as <code>unsafe</code>.</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-2024-0430: Vulnerability in magic-crypt</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0430.html</id><updated>2024-12-28T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0430.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0430: Vulnerability in magic-crypt"/><published>2024-12-28T12:00:00+00:00</published><summary xml:lang="en">Use of insecure cryptographic algorithms</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/magic-crypt/RUSTSEC-2024-0430.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/magic-crypt/RUSTSEC-2024-0430.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0430">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0430
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Use of insecure cryptographic algorithms</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-12-28">
|
|
December 28, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-28">
|
|
December 28, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/magic-crypt.html">magic-crypt</a>
|
|
(<a href="https://crates.io/crates/magic-crypt">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/crypto.html">#crypto</a>
|
|
|
|
<a href="/keywords/unsound.html">#unsound</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/magiclen/rust-magiccrypt/issues/17">
|
|
https://github.com/magiclen/rust-magiccrypt/issues/17
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>This crate uses a number of cryptographic algorithms that are no longer
|
|
considered secure and it uses them in ways that do not guarantee the integrity
|
|
of the encrypted data.</p>
|
|
<p><code>MagicCrypt64</code> uses the insecure DES block cipher in CBC mode without
|
|
authentication. This allows for practical brute force and padding oracle
|
|
attacks and does not protect the integrity of the encrypted data. Key and IV
|
|
are generated from user input using CRC64, which is not at all a key derivation
|
|
function.</p>
|
|
<p><code>MagicCrypt64</code>, <code>MagicCrypt128</code>, <code>MagicCrypt192</code>, and <code>MagicCrypt256</code> are all
|
|
vulnerable to padding-oracle attacks. None of them protect the integrity of the
|
|
ciphertext. Furthermore, none use password-based key derivation functions, even
|
|
though the key is intended to be generated from a password.</p>
|
|
<p>Each of the implementations are unsound in that they use uninitialized memory
|
|
without <code>MaybeUninit</code> or equivalent structures.</p>
|
|
<p>For more information, visit the <a href="https://github.com/magiclen/rust-magiccrypt/issues/17">issue</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-2024-0429: Unsoundness in glib</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0429.html</id><updated>2024-12-23T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0429.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0429: Unsoundness in glib"/><published>2024-12-23T12:00:00+00:00</published><summary xml:lang="en">Unsoundness in `Iterator` and `DoubleEndedIterator` impls for `glib::VariantStrIter`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/glib/RUSTSEC-2024-0429.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/glib/RUSTSEC-2024-0429.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0429">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0429
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsoundness in <code>Iterator</code> and <code>DoubleEndedIterator</code> impls for <code>glib::VariantStrIter</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-03-30">
|
|
March 30, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-23">
|
|
December 23, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/glib.html">glib</a>
|
|
(<a href="https://crates.io/crates/glib">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/gtk-rs/gtk-rs-core/pull/1343">
|
|
https://github.com/gtk-rs/gtk-rs-core/pull/1343
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.20.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.15.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>glib::VariantStrIter::last</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.15.0, &lt;0.20.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>glib::VariantStrIter::next</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.15.0, &lt;0.20.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>glib::VariantStrIter::next_back</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.15.0, &lt;0.20.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>glib::VariantStrIter::nth</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.15.0, &lt;0.20.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>glib::VariantStrIter::nth_back</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.15.0, &lt;0.20.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>VariantStrIter::impl_get</code> function (called internally by implementations of the <code>Iterator</code> and <code>DoubleEndedIterator</code> traits for this type) was unsound, resulting in undefined behaviour.</p>
|
|
<p>An immutable reference <code>&amp;p</code> to a <code>*mut libc::c_char</code> pointer initialized to <code>NULL</code> was passed as an argument to a C function that that mutates the pointer behind <code>&amp;p</code> in-place (i.e. as an out-argument), which was unsound. After changes in recent versions of the Rust compiler, these unsound writes through <code>&amp;p</code> now seem to be completely disregarded when building the <code>glib</code> crate with optimizations.</p>
|
|
<p>This subsequently caused all calls of <code>VariantStrIter::impl_get</code> to violate the safety requirements of the <code>std::ffi::CStr::from_ptr</code> function - which requires its argument to be a valid pointer to a C-style string - resulting in crashes due to <code>NULL</code> pointer dereferences.</p>
|
|
<p>This was fixed by passing the out-argument pointer explitly as <code>&amp;mut p</code> instead of <code>&amp;p</code>.</p>
|
|
<p>This issue has been present since this code was initially added in <code>glib</code> v0.15.0. The mismatch in mutability was likely missed (and not raised as an error by the compiler) because the C function wrapped by <code>VariantStrIter::impl_get</code> is variadic (<code>glib_sys::g_variant_get_child</code>), and the pointer in question is one of the variadic arguments.</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-2024-0424: Unsoundness in libafl</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0424.html</id><updated>2024-12-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0424.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0424: Unsoundness in libafl"/><published>2024-12-22T12:00:00+00:00</published><summary xml:lang="en">Unsound usages of `core::slice::from_raw_parts_mut`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libafl/RUSTSEC-2024-0424.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libafl/RUSTSEC-2024-0424.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0424">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0424
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound usages of <code>core::slice::from_raw_parts_mut</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-12-19">
|
|
December 19, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-22">
|
|
December 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/libafl.html">libafl</a>
|
|
(<a href="https://crates.io/crates/libafl">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/align.html">#align</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/AFLplusplus/LibAFL/issues/1526">
|
|
https://github.com/AFLplusplus/LibAFL/issues/1526
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/AFLplusplus/LibAFL/pull/1530">
|
|
https://github.com/AFLplusplus/LibAFL/pull/1530
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.11.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>libafl::observers::map::HitcountsMapObserver::post_exec</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.11.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The library breaks the safety assumptions when using unsafe API <code>slice::from_raw_parts_mut</code>. The pointer passed to <code>from_raw_parts_mut</code> is misaligned by casting <code>u8</code> to <code>u16</code> raw pointer directly, which is unsound. The bug is patched by using <code>align_offset</code>, which could make sure the memory address is aligned to 2 bytes for <code>u16</code>.</p>
|
|
<p>This was patched in 0.11.2 in the <a href="https://github.com/AFLplusplus/LibAFL/pull/1530/commits/5a60cb31ef587d71d09d534bba39bd3973c4b35d">commit</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-2024-0425: get-size is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0425.html</id><updated>2024-12-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0425.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0425: get-size is unmaintained"/><published>2024-12-22T12:00:00+00:00</published><summary xml:lang="en">get-size 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/get-size/RUSTSEC-2024-0425.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/get-size/RUSTSEC-2024-0425.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0425">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0425
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>get-size is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-15">
|
|
September 15, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-22">
|
|
December 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/get-size.html">get-size</a>
|
|
(<a href="https://crates.io/crates/get-size">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/DKerp/get-size/issues/22">
|
|
https://github.com/DKerp/get-size/issues/22
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>get-size's maintainer seems to be unreachable, with no commits and releases pushed for 1 year and no activity on the GitHub repo.</p>
|
|
<p>get-size also depends on <code>get-size-derive 0.1.3</code>, which uses <code>attribute-derive ^0.6</code> a version of the crate which uses the yanked crate <code>proc-macro-error</code>.</p>
|
|
<h2>Possible Alternative(s)</h2>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/get-size2">get-size2</a></li>
|
|
<li><a href="https://crates.io/crates/typesize">typesize</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-2024-0426: Unsoundness in spl-token-swap</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0426.html</id><updated>2024-12-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0426.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0426: Unsoundness in spl-token-swap"/><published>2024-12-22T12:00:00+00:00</published><summary xml:lang="en">Unsound usages of `u8` type casting</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/spl-token-swap/RUSTSEC-2024-0426.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/spl-token-swap/RUSTSEC-2024-0426.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0426">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0426
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound usages of <code>u8</code> type casting</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-12-19">
|
|
December 19, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-22">
|
|
December 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/spl-token-swap.html">spl-token-swap</a>
|
|
(<a href="https://crates.io/crates/spl-token-swap">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/align.html">#align</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/solana-labs/solana-program-library/issues/5243">
|
|
https://github.com/solana-labs/solana-program-library/issues/5243
|
|
</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>spl_token_swap::instruction::unpack</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=3.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The library provides a safe public API <code>unpack</code> to cast <code>u8</code> array to arbitrary types, which can cause to undefined behaviors. The length check of array can only prevent out-of-bound access on the return type. However, it can't prevent misaligned pointer when casting <code>u8</code> pointer to a type aligned to larger bytes. For example, if we assign <code>u16</code> to <code>T</code>, <strong>misaligned raw pointer dereference</strong> could happen and cause to panic. Even if we pass the type aligned to same byte as <code>u8</code> (e.g., <code>bool</code>), it could construct a illegal type since <code>bool</code> can only have 0 or 1 as bit patterns, which is also an undefined behavior. The further exploits of the bug here are still not clear, so we would report this issue as unsound.</p>
|
|
<p>The details of PoC to reproduce undefined behavior are provided in the <a href="https://github.com/solana-labs/solana-program-library/issues/5243">issue</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-2024-0427: get-size-derive is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0427.html</id><updated>2024-12-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0427.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0427: get-size-derive is unmaintained"/><published>2024-12-22T12:00:00+00:00</published><summary xml:lang="en">get-size-derive 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/get-size-derive/RUSTSEC-2024-0427.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/get-size-derive/RUSTSEC-2024-0427.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0427">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0427
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>get-size-derive is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-15">
|
|
September 15, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-22">
|
|
December 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/get-size-derive.html">get-size-derive</a>
|
|
(<a href="https://crates.io/crates/get-size-derive">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/DKerp/get-size/issues/22">
|
|
https://github.com/DKerp/get-size/issues/22
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>get-size-derive's maintainer seems to be unreachable, with no commits and releases pushed for 1 year and no activity on the GitHub repo.</p>
|
|
<p>get-size-derive also depends on <code>attribute-derive ^0.6</code> a version of the crate which uses the yanked crate <code>proc-macro-error</code>.</p>
|
|
<h2>Possible Alternative(s)</h2>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/get-size-derive2">get-size-derive2</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-2024-0428: Unsoundness in kvm-ioctls</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0428.html</id><updated>2024-12-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0428.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0428: Unsoundness in kvm-ioctls"/><published>2024-12-22T12:00:00+00:00</published><summary xml:lang="en">Undefined behaviour in `kvm_ioctls::ioctls::vm::VmFd::create_device`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/kvm-ioctls/RUSTSEC-2024-0428.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/kvm-ioctls/RUSTSEC-2024-0428.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0428">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0428
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Undefined behaviour in <code>kvm_ioctls::ioctls::vm::VmFd::create_device</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-12-05">
|
|
December 5, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-22">
|
|
December 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/kvm-ioctls.html">kvm-ioctls</a>
|
|
(<a href="https://crates.io/crates/kvm-ioctls">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/unsound.html">#unsound</a>
|
|
|
|
<a href="/keywords/1-82.html">#1-82</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/rust-vmm/kvm/pull/298">
|
|
https://github.com/rust-vmm/kvm/pull/298
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.19.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected OSes</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>linux</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>kvm_ioctls::ioctls::vm::VmFd::create_device</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=0.19.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>An issue was identified in the <code>VmFd::create_device function</code>, leading to undefined behavior and miscompilations on rustc 1.82.0 and newer due to the function's violation of Rust's pointer safety rules.</p>
|
|
<p>The function downcasted a mutable reference to its <code>struct kvm_create_device</code> argument to an immutable pointer, and then proceeded to pass this pointer to a mutating system call. Rustc 1.82.0 and newer elides subsequent reads of this structure's fields, meaning code will not see the value written by the kernel into the <code>fd</code> member. Instead, the code will observe the value that this field was initialized to prior to calling <code>VmFd::create_device</code> (usually, 0).</p>
|
|
<p>The issue started in kvm-ioctls 0.1.0 and was fixed in 0.19.1 by correctly using
|
|
a mutable pointer.</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-2024-0410: gdkwayland is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0410.html</id><updated>2024-12-09T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0410.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0410: gdkwayland is unmaintained"/><published>2024-12-09T12:00:00+00:00</published><summary xml:lang="en">gtk-rs GTK3 bindings - no longer maintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gdkwayland/RUSTSEC-2024-0410.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gdkwayland/RUSTSEC-2024-0410.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0410">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0410
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>gtk-rs GTK3 bindings - no longer maintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-03-04">
|
|
March 4, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-09">
|
|
December 9, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/gdkwayland.html">gdkwayland</a>
|
|
(<a href="https://crates.io/crates/gdkwayland">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/gtk.html">#gtk</a>
|
|
|
|
<a href="/keywords/gtk-rs.html">#gtk-rs</a>
|
|
|
|
<a href="/keywords/gnome.html">#gnome</a>
|
|
|
|
<a href="/keywords/GUI.html">#GUI</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/gtk-rs/gtk3-rs/commit/508a69b63a3c5bf73790e0e59101a955847f30d6">
|
|
https://github.com/gtk-rs/gtk3-rs/commit/508a69b63a3c5bf73790e0e59101a955847f30d6
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The gtk-rs GTK3 bindings are no longer maintained.</p>
|
|
<p>The maintainers have archived the repository, and added a note to the crate
|
|
description and its README.md that the crates are no longer maintained.</p>
|
|
<p>Please take a look at <a href="https://github.com/gtk-rs/gtk4-rs">gtk4-rs</a> instead.</p>
|
|
<pre><code></code></pre>
|
|
|
|
|
|
<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-2024-0422: gtk-layer-shell is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0422.html</id><updated>2024-12-09T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0422.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0422: gtk-layer-shell is unmaintained"/><published>2024-12-09T12:00:00+00:00</published><summary xml:lang="en">gtk-layer-shell GTK3 bindings - no longer maintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gtk-layer-shell/RUSTSEC-2024-0422.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gtk-layer-shell/RUSTSEC-2024-0422.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0422">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0422
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>gtk-layer-shell GTK3 bindings - no longer maintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-12-09">
|
|
December 9, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-12-09">
|
|
December 9, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/gtk-layer-shell.html">gtk-layer-shell</a>
|
|
(<a href="https://crates.io/crates/gtk-layer-shell">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/gtk.html">#gtk</a>
|
|
|
|
<a href="/keywords/gtk-rs.html">#gtk-rs</a>
|
|
|
|
<a href="/keywords/gnome.html">#gnome</a>
|
|
|
|
<a href="/keywords/GUI.html">#GUI</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/pentamassiv/gtk-layer-shell-gir/commit/094c356273f209e04bf481fb404dc17990ae76e0">
|
|
https://github.com/pentamassiv/gtk-layer-shell-gir/commit/094c356273f209e04bf481fb404dc17990ae76e0
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The gtk-layer-shell GTK3 bindings are no longer maintained.</p>
|
|
<p>The maintainers have archived the repository, and added a note to the crate
|
|
description and its README.md that the crates are no longer maintained.</p>
|
|
<p>Please take a look at <a href="https://github.com/pentamassiv/gtk4-layer-shell-gir">gtk4-layer-shell</a> instead.</p>
|
|
<pre><code></code></pre>
|
|
|
|
|
|
<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> |