Lucene search
+L

18 matches found

Github Security Blog
Github Security Blog
•added 2026/02/04 8:36 p.m.•21 views

git2 has potential undefined behavior when dereferencing Buf struct

If the Buf struct is dereferenced immediately after calling new or default on the Buf struct, a null pointer is passed to the unsafe function slice::fromrawparts. According to the safety section documentation of the function, data must be non-null and aligned even for zero-length slices or slices...

5.5AI score
SaveExploits0References5Affected Software1
RustSec
RustSec
•added 2026/02/02 12:00 p.m.•28 views

Potential undefined behavior when dereferencing Buf struct

if we dereference the Buf struct right after calling new or default on Buf struct, it passes Null Pointer to the unsafe function slice::fromrawparts. Based on the safety section documentation of function, data must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passi...

5.4AI score
SaveExploits0Affected Software1
osv_rustsec
osv_rustsec
•added 2025/10/21 12:00 p.m.•25 views

RUSTSEC-2025-0107 Uninitialized memory exposure in any_as_u8_slice

The safe function anyasu8slice can create byte slices that reference uninitialized memory when used with types containing padding bytes. The function uses slice::fromrawparts to create a &u8 covering the entire size of a type, including padding bytes. According to Rust's documentation, fromrawpar...

7.2AI score
SaveExploits0References3
RustSec
RustSec
•added 2025/10/21 12:00 p.m.•28 views

Uninitialized memory exposure in any_as_u8_slice

The safe function anyasu8slice can create byte slices that reference uninitialized memory when used with types containing padding bytes. The function uses slice::fromrawparts to create a &u8 covering the entire size of a type, including padding bytes. According to Rust's documentation, fromrawpar...

7.2AI score
SaveExploits0Affected Software1
EUVD
EUVD
•added 2025/10/03 8:07 p.m.•13 views

EUVD-2025-4901

Malicious code in bioql PyPI...

6.6AI score
SaveExploits0References5
RustSec
RustSec
•added 2024/12/19 12:00 p.m.•19 views

Unsound usages of `Vec::from_raw_parts`

The library provides a public safe API transmutevecasbytes, which incorrectly assumes that any generic type T could have stable layout, causing to uninitialized memory exposure if the users pass any types with padding bytes as T and cast it to u8 pointer. In the issue, we develop a PoC to show...

7AI score
SaveExploits0Affected Software1
osv_rustsec
osv_rustsec
•added 2024/11/25 12:00 p.m.•16 views

RUSTSEC-2024-0448 `parse_arguments` reads a caller-supplied pointer as a slice

parsearguments is safe. It takes arguments: const AnyObject and argc, and calls slice::fromrawpartsarguments, argc as usize. It does not check that arguments is non-null and aligned, or that argc elements are initialized. Safe Rust can pass a null pointer or a length past the allocation. The...

5.7AI score
SaveExploits0References3
Mend
Mend
•added 2024/11/03 10:17 a.m.•6 views

WS-2023-0051

In crate maligned, maligned::alignfirst manually allocates with an alignment larger than T, and then uses Vec::fromrawparts on that allocation to get a Vec. GlobalAlloc::dealloc requires that the layout argument must be the same layout that was used to allocate that block of memory. When...

6.9CVSS5.8AI score
SaveExploits0References5
osv_rustsec
osv_rustsec
•added 2024/07/21 12:00 p.m.•43 views

RUSTSEC-2024-0357 `MemBio::get_buf` has undefined behavior with empty buffers

Previously, MemBio::getbuf called slice::fromrawparts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed...

7AI score
SaveExploits0References3
RustSec
RustSec
•added 2024/07/21 12:00 p.m.•17 views

`MemBio::get_buf` has undefined behavior with empty buffers

Previously, MemBio::getbuf called slice::fromrawparts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed...

7AI score
SaveExploits0Affected Software1
Github Security Blog
Github Security Blog
•added 2023/03/07 8:13 p.m.•28 views

Maligned causes incorrect deallocation

maligned::alignfirst manually allocates with an alignment larger than T, and then uses Vec::fromrawparts on that allocation to get a Vec. 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 m...

2.2AI score
SaveExploits0References4Affected Software1
osv_rustsec
osv_rustsec
•added 2023/03/04 12:00 p.m.•30 views

RUSTSEC-2023-0017 `maligned::align_first` causes incorrect deallocation

maligned::alignfirst manually allocates with an alignment larger than T, and then uses Vec::fromrawparts on that allocation to get a Vec. 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 m...

7AI score
SaveExploits0References3
RustSec
RustSec
•added 2023/03/04 12:00 p.m.•35 views

`maligned::align_first` causes incorrect deallocation

maligned::alignfirst manually allocates with an alignment larger than T, and then uses Vec::fromrawparts on that allocation to get a Vec. 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 m...

2.2AI score
SaveExploits0
osv_ghsa
osv_ghsa
•added 2021/08/25 8:53 p.m.•136 views

GHSA-HVQC-PC78-X9WH Soundness issue in raw-cpuid

VendorInfo::asstring, SoCVendorBrand::asstring, and ExtendedFunctionInfo::processorbrandstring construct byte slices using std::slice::fromrawparts, with data coming from reprRust structs. This is always undefined behavior. This flaw has been fixed in v9.0.0, by making the relevant structs reprC...

7.5CVSS6.2AI score0.01261EPSS
SaveExploits1References5
Github Security Blog
Github Security Blog
•added 2021/08/25 8:43 p.m.•34 views

Heap overflow or corruption in safe-transmute

Affected versions of this crate switched the length and capacity arguments in the Vec::fromrawparts constructor, which could lead to memory corruption or data leakage...

9.8CVSS9.1AI score0.01977EPSS
SaveExploits0References5Affected Software1
Positive Technologies
Positive Technologies
•added 2021/01/20 12:00 a.m.•7 views

PT-2021-16994

Name of the Vulnerable Software and Affected Versions raw-cpuid crate versions prior to 9.0.0 Description The issue allows cpuid count calls even if the processor does not support the CPUID instruction, which is unsound and causes a deterministic crash. Additionally, there is undefined behavior i...

5.5CVSS5.8AI score0.00341EPSS
SaveExploits1References16
RustSec
RustSec
•added 2018/11/27 12:00 p.m.•30 views

Vec-to-vec transmutations could lead to heap overflow/corruption

Affected versions of this crate switched the length and capacity arguments in the Vec::fromrawparts constructor, which could lead to memory corruption or data leakage. The flaw was corrected by using the constructor correctly...

9.8CVSS2.8AI score0.01977EPSS
SaveExploits0Affected Software1
Positive Technologies
Positive Technologies
•added 2018/11/27 12:00 a.m.•7 views

PT-2018-15493

Name of the Vulnerable Software and Affected Versions safe-transmute crate versions prior to 0.10.1 Description An issue was discovered in the safe-transmute crate where a constructor's arguments are in the wrong order, causing heap memory corruption. The affected versions of this crate switched...

9.8CVSS0.01977EPSS
SaveExploits0References12
Rows per page
Query Builder