icon

We found results for “

WS-2023-0051

Good to know:

icon

Date: November 3, 2024

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): NETWORK
Attack Complexity (AC): LOW
Privileges Required (PR): LOW
User Interaction (UI): REQUIRED
Scope (S): UNCHANGED
Confidentiality (C): HIGH
Integrity (I): HIGH
Availability (A): HIGH

Do you need more information?

Contact Us