GitHub Advisoryadvisory · crates.io

GHSA-x54v-qxxr-93qc Missing release of memory in sized-chunks

HIGH Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2020-25795
Ecosystem
crates.io
Packages
sized-chunks
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-401
Reviewed
2021-08-19

Affected packages

• crates.io sized-chunks: < 0.6.3 → fixed in 0.6.3

Description

Chunk: • Array size is not checked when constructed with unit() and pair(). • Array size is not checked when constructed with From>. • 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.

Related

Alias · CVE (1)

  • CVE-2020-25795 An issue was discovered in the sized-chunks crate through 0.6.2 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-401 Missing Release of Memory after Effective Lifetime weakness

References