Files
advisory-db/crates/sized-chunks/RUSTSEC-2020-0041.md
2023-06-13 15:10:24 +02:00

910 B

[advisory]
id = "RUSTSEC-2020-0041"
package = "sized-chunks"
aliases = ["CVE-2020-25791", "CVE-2020-25792", "CVE-2020-25793", "CVE-2020-25794", "CVE-2020-25795", "CVE-2020-25796", "GHSA-64gv-qg2v-vxv6", "GHSA-9p9m-9xww-qjcx", "GHSA-fqpx-cq8x-9wp4", "GHSA-mp6f-p9gp-vpj9", "GHSA-rfgg-vccr-m46m", "GHSA-x54v-qxxr-93qc"]
cvss = "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
date = "2020-09-06"
url = "https://github.com/bodil/sized-chunks/issues/11"

[versions]
patched = [">= 0.6.3"]

Multiple soundness issues in Chunk and InlineArray

Chunk:

  • Array size is not checked when constructed with unit() and pair().
  • Array size is not checked when constructed with From<InlineArray<A, T>>.
  • Clone and insert_from are not panic-safe; A panicking iterator causes memory safety issues with them.

InlineArray:

  • Generates unaligned references for types with a large alignment requirement.