mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:54:32 -06:00
Update gh-pages
This commit is contained in:
@@ -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<T></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<T></code> or <code>Vec<T></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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,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"> <article>
|
||||
<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"> <article>
|
||||
|
||||
<span class="floating-menu">
|
||||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/rkyv/RUSTSEC-2026-0122.md">History</a> ⋅
|
||||
@@ -14,7 +14,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>
|
||||
|
||||
@@ -65,8 +65,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>
|
||||
|
||||
@@ -151,13 +149,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>
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user