icon

We found results for “

WS-2023-0051

Date: March 4, 2023

In crate maligned, maligned::align_first manually allocates with an alignment larger than T, and then uses Vec::from_raw_parts on that allocation to get a Vec<T>. GlobalAlloc::dealloc requires that the layout argument must be the same layout that was used to allocate that block of memory. When deallocating, Box and Vec may not respect the specified alignment and can cause undefined behavior.

Language: RUST

Severity Score

Severity Score

Weakness Type (CWE)

Memory Allocation with Excessive Size Value

CWE-789

CVSS v3.1

Base Score:
Attack Vector (AV): LOCAL
Attack Complexity (AC): LOW
Privileges Required (PR): NONE
User Interaction (UI): NONE
Scope (S): UNCHANGED
Confidentiality (C): NONE
Integrity (I): NONE
Availability (A): HIGH

Do you need more information?

Contact Us