Update gh-pages

This commit is contained in:
github-actions
2026-05-11 13:59:55 +00:00
parent 5be230e0d4
commit aa5eb82051
13 changed files with 32 additions and 54 deletions
+9 -9
View File
@@ -5,7 +5,7 @@
<meta name="author" content="Rust Project Developers">
<meta name="description" content="Security advisory database for Rust crates published through https://crates.io">
<title>RUSTSEC-2026-0122: rkyv: Panic safety bugs in `InlineVec::clear` and `SerVec::clear` enable arbitrary code execution › RustSec Advisory Database</title>
<title>RUSTSEC-2026-0122: rkyv: Potential use-after-free due to lack of panic safety in `InlineVec::clear` and `SerVec::clear` › RustSec Advisory Database</title>
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic" rel="stylesheet">
<link href="/css/basic.css" rel="stylesheet">
@@ -68,7 +68,7 @@
RUSTSEC-2026-0122
</h1>
<span class="subtitle"><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span class="subtitle"><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</header>
@@ -119,8 +119,6 @@
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
</ul>
</dd>
@@ -205,13 +203,15 @@ implementation when the value is later dropped.</li>
<li><code>SerVec::clear()</code> is called again by <code>SerVec::with_capacity()</code> after the
user closure returns.</li>
</ul>
<h2>Technical Impact</h2>
<h2>Impact</h2>
<ul>
<li><strong>CWE-415 (Double Free):</strong> Heap corruption when element type holds <code>Box&lt;T&gt;</code></li>
<li><strong>CWE-416 (Use-After-Free):</strong> Memory corruption when element reads from heap during <code>Drop</code></li>
<li><strong>CWE-415 (Double Free):</strong> heap corruption when the element type is one that
owns memory, such as <code>Box&lt;T&gt;</code> or <code>Vec&lt;T&gt;</code></li>
<li><strong>CWE-416 (Use-After-Free):</strong> memory corruption when an element is accessed
following a caught panic</li>
</ul>
<p>Both vulnerabilities are triggerable entirely from safe Rust via <code>std::panic::catch_unwind</code>
and require no special privileges.</p>
<p>Both types of undefined behavior can be invoked in safe Rust, but only if
unwinding panics are enabled and <code>std::panic::catch_unwind</code> is used.</p>
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
+1 -1
View File
@@ -80,7 +80,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
+1 -1
View File
@@ -82,7 +82,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
-21
View File
@@ -66,27 +66,6 @@
<ul>
<li>
<time datetime="2026-05-11">
May 11, 2026
</time>
<h3>
<span class="tag info">INFO</span>
<a href="/advisories/RUSTSEC-2026-0122.html">
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
</span>
</li>
<li>
<time datetime="2026-05-06">
May 6, 2026
+1 -1
View File
@@ -82,7 +82,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
+9 -9
View File
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2026-05-11T12: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-2026-0122: Unsoundness in rkyv</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0122.html</id><updated>2026-05-11T12:00:00+00:00</updated><category term="code-execution"/><category term="memory-corruption"/><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0122.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0122: Unsoundness in rkyv"/><published>2026-05-11T12:00:00+00:00</published><summary xml:lang="en">Panic safety bugs in `InlineVec::clear` and `SerVec::clear` enable arbitrary code execution</summary><content xml:lang="en" type="html"> &lt;article&gt;
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2026-05-11T12: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-2026-0122: Unsoundness in rkyv</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0122.html</id><updated>2026-05-11T12:00:00+00:00</updated><category term="code-execution"/><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0122.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0122: Unsoundness in rkyv"/><published>2026-05-11T12:00:00+00:00</published><summary xml:lang="en">Potential use-after-free due to lack of panic safety in `InlineVec::clear` and `SerVec::clear`</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/rkyv/RUSTSEC-2026-0122.md&quot;&gt;History&lt;/a&gt; ⋅
@@ -14,7 +14,7 @@
RUSTSEC-2026-0122
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Panic safety bugs in &lt;code&gt;InlineVec::clear&lt;/code&gt; and &lt;code&gt;SerVec::clear&lt;/code&gt; enable arbitrary code execution&lt;/p&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Potential use-after-free due to lack of panic safety in &lt;code&gt;InlineVec::clear&lt;/code&gt; and &lt;code&gt;SerVec::clear&lt;/code&gt;&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
@@ -65,8 +65,6 @@
&lt;li&gt;&lt;a href=&quot;/categories/memory-corruption.html&quot;&gt;memory-corruption&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/categories/denial-of-service.html&quot;&gt;denial-of-service&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
@@ -151,13 +149,15 @@ implementation when the value is later dropped.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;SerVec::clear()&lt;/code&gt; is called again by &lt;code&gt;SerVec::with_capacity()&lt;/code&gt; after the
user closure returns.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Technical Impact&lt;/h2&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;CWE-415 (Double Free):&lt;/strong&gt; Heap corruption when element type holds &lt;code&gt;Box&amp;lt;T&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CWE-416 (Use-After-Free):&lt;/strong&gt; Memory corruption when element reads from heap during &lt;code&gt;Drop&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CWE-415 (Double Free):&lt;/strong&gt; heap corruption when the element type is one that
owns memory, such as &lt;code&gt;Box&amp;lt;T&amp;gt;&lt;/code&gt; or &lt;code&gt;Vec&amp;lt;T&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CWE-416 (Use-After-Free):&lt;/strong&gt; memory corruption when an element is accessed
following a caught panic&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both vulnerabilities are triggerable entirely from safe Rust via &lt;code&gt;std::panic::catch_unwind&lt;/code&gt;
and require no special privileges.&lt;/p&gt;
&lt;p&gt;Both types of undefined behavior can be invoked in safe Rust, but only if
unwinding panics are enabled and &lt;code&gt;std::panic::catch_unwind&lt;/code&gt; is used.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -82,7 +82,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
+1 -1
View File
@@ -82,7 +82,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
+1 -1
View File
@@ -82,7 +82,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
+1 -1
View File
@@ -82,7 +82,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
+1 -1
View File
@@ -82,7 +82,7 @@
RUSTSEC-2026-0122: Unsoundness in rkyv
</a>
</h3>
<span><p>Panic safety bugs in <code>InlineVec::clear</code> and <code>SerVec::clear</code> enable arbitrary code execution</p>
<span><p>Potential use-after-free due to lack of panic safety in <code>InlineVec::clear</code> and <code>SerVec::clear</code></p>
</span>
</li>
+4 -5
View File
@@ -1,12 +1,12 @@
[
{
"id": "RUSTSEC-2026-0122",
"modified": "2026-05-11T09:37:41Z",
"modified": "2026-05-11T13:59:32Z",
"published": "2026-04-23T12:00:00Z",
"aliases": [],
"related": [],
"summary": "Panic safety bugs in `InlineVec::clear` and `SerVec::clear` enable arbitrary code execution",
"details": "`InlineVec::clear()` and `SerVec::clear()` in `rkyv` were not panic-safe.\nBoth functions iterate over their elements and call `drop_in_place` on each,\nupdating `self.len` only *after* the loop. If an element's `Drop` implementation\npanics during the loop, `self.len` is left at its original value.\n\nA subsequent invocation of `clear()` on the same container then re-visits the\nalready-freed elements:\n\n- `InlineVec::clear()` is called again from `InlineVec`'s own `Drop`\n implementation when the value is later dropped.\n- `SerVec::clear()` is called again by `SerVec::with_capacity()` after the\n user closure returns.\n\n\n## Technical Impact\n\n- **CWE-415 (Double Free):** Heap corruption when element type holds `Box<T>` \n- **CWE-416 (Use-After-Free):** Memory corruption when element reads from heap during `Drop`\n\nBoth vulnerabilities are triggerable entirely from safe Rust via `std::panic::catch_unwind`\nand require no special privileges.",
"summary": "Potential use-after-free due to lack of panic safety in `InlineVec::clear` and `SerVec::clear`",
"details": "`InlineVec::clear()` and `SerVec::clear()` in `rkyv` were not panic-safe.\nBoth functions iterate over their elements and call `drop_in_place` on each,\nupdating `self.len` only *after* the loop. If an element's `Drop` implementation\npanics during the loop, `self.len` is left at its original value.\n\nA subsequent invocation of `clear()` on the same container then re-visits the\nalready-freed elements:\n\n- `InlineVec::clear()` is called again from `InlineVec`'s own `Drop`\n implementation when the value is later dropped.\n- `SerVec::clear()` is called again by `SerVec::with_capacity()` after the\n user closure returns.\n\n## Impact\n- **CWE-415 (Double Free):** heap corruption when the element type is one that\n owns memory, such as `Box<T>` or `Vec<T>`\n- **CWE-416 (Use-After-Free):** memory corruption when an element is accessed\n following a caught panic\n\nBoth types of undefined behavior can be invoked in safe Rust, but only if\nunwinding panics are enabled and `std::panic::catch_unwind` is used.",
"severity": [],
"affected": [
{
@@ -26,8 +26,7 @@
"database_specific": {
"categories": [
"code-execution",
"memory-corruption",
"denial-of-service"
"memory-corruption"
],
"cvss": null,
"informational": "unsound"