diff --git a/advisories/RUSTSEC-2021-0138.html b/advisories/RUSTSEC-2021-0138.html new file mode 100644 index 000000000..ee9d76a7e --- /dev/null +++ b/advisories/RUSTSEC-2021-0138.html @@ -0,0 +1,150 @@ + + + + + + + +RUSTSEC-2021-0138: mz-avro: Incorrect use of `set_len` allows for un-initialized memory › RustSec Advisory Database + + + + + + +
+

+ +
+ +
+
+ + + History ⋅ + Edit + + + +
+

+ + RUSTSEC-2021-0138 + +

+

Incorrect use of set_len allows for un-initialized memory

+
+
+ + + +
+
Issued
+
+ +
+ +
Package
+
+ + + mz-avro + (crates.io) + + +
+ +
Type
+
+ + INFO + Unsound + +
+ + +
Categories
+
+ +
+ + + + + + + +
Details
+
+ + https://github.com/MaterializeInc/materialize/issues/8669 + +
+ + + + + + + +
Patched
+
+ +
    + +
  • >=0.7.0
  • + +
+ +
+ + + + + +
+ + + + +

Description

+

Affected versions of this crate passes an uninitialized buffer to a user-provided Read +implementation.

+

Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) +and also can return incorrect number of bytes written to the buffer. +Reading from uninitialized memory produces undefined values that can quickly invoke +undefined behavior.

+

Note: there is only UB in the case where a user provides a struct whose Read +implementation inspects the buffer passed to read_exact before writing to it. +This is an unidiomatic (albeit possible) Read implementation.

+

See https://github.com/MaterializeInc/materialize/issues/8669 for details.

+ +
+
diff --git a/advisories/index.html b/advisories/index.html index 70fad7ffa..2ec09f0a0 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -1286,6 +1286,27 @@

abomonation transmutes &T to and from &[u8] without sufficient constraints

+ + +
  • + + + +

    + + + INFO + + + + RUSTSEC-2021-0138: Unsoundness in mz-avro + +

    +

    Incorrect use of set_len allows for un-initialized memory

    +
    +
  • diff --git a/categories/memory-exposure.html b/categories/memory-exposure.html index 22b9902ca..f0aec32b3 100644 --- a/categories/memory-exposure.html +++ b/categories/memory-exposure.html @@ -149,6 +149,27 @@

    Unsoundness in dashmap references

    +
  • + +
  • + + + +

    + + + INFO + + + + RUSTSEC-2021-0138: Unsoundness in mz-avro + +

    +

    Incorrect use of set_len allows for un-initialized memory

    +
    +
  • diff --git a/packages/index.html b/packages/index.html index 6161cda27..2b6d7c320 100644 --- a/packages/index.html +++ b/packages/index.html @@ -1180,6 +1180,12 @@
  • +
  • mz-avro + + (1) + +
  • +
  • nalgebra (1) diff --git a/packages/mz-avro.html b/packages/mz-avro.html new file mode 100644 index 000000000..7dd507949 --- /dev/null +++ b/packages/mz-avro.html @@ -0,0 +1,78 @@ + + + + + + + +Advisories for package 'mz-avro' › RustSec Advisory Database + + + + + + +
    +

    + +
    + +
    + +