Vulnerability DatabaseRUSTSEC-2024-0431

RUSTSEC-2024-0431
Rust vulnerability analysis and mitigation

Overview

A memory safety vulnerability was discovered in the xous-core library, specifically in the implementation of MemoryRange::as_slice/as_slice_mut functions. The issue was identified and reported on September 12, 2023, affecting the Rust-based xous-core library's memory handling functionality (GitHub Issue).

Technical details

The vulnerability stems from an unsound implementation in the MemoryRange::as_slice function where a pointer with arbitrary bit patterns could be cast to a slice of arbitrary types. The issue lies in the unsafe code block that uses core::slice::from_raw_parts without proper type checking. The problematic code allows the creation of invalid memory representations through the combination of unsafe new and deprecated from_parts functions (GitHub Issue).

Impact

When exploited, this vulnerability can lead to undefined behavior in Rust programs using the xous-core library. This was demonstrated through Miri (Rust's memory checking tool) which showed that the code could construct invalid values, specifically encountering unexpected value patterns when boolean values were expected (GitHub Issue).

Mitigation and workarounds

The issue was addressed through a dedicated fix in pull request #411. The development team removed the deprecated from_parts function and implemented additional safety measures. For long-term resolution, the developers suggested that a better API design would involve turning MemoryRange into a smart pointer that encodes the type, with only the constructor being unsafe (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65807HIGH8.4
  • RustRust
  • rust-sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • wasmi
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management