Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions crates/safemem/RUSTSEC-0000-0000.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[advisory]
id = "RUSTSEC-0000-0000"
package = "safemem"
date = "2019-10-23"
title = "prepend() internals create a reference to uninitialized memory"
description = """
Affected versions of this crate had a non-unsafe prepend() function that
temporarily created a `&mut` reference to uninitialized memory of type <T : Copy>
to afterwards write to it, which currently is Undefined Behavior.

This does not allow an attacker to do anything yet, since the uninitialized memory
is not explicitely used by the code, and the current implementations of the
compiler do not seem to exploit the UB.

The flaw was corrected by @danielhenrymantilla and published as of version 0.3.3.
"""
patched_versions = [">= 0.3.3"]
url = "https://github.com/abonander/safemem/issues/7"
keywords = ["uninitialized-memory", "UB"]
[affected]
functions = { "safemem::prepend" = ["< 0.3.3"] }