Out-of-Bounds Affecting vm-memory package, versions <0.12.2


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (22nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-VMMEMORY-5880417
  • published3 Sept 2023
  • disclosed1 Sept 2023
  • creditManishearth

Introduced: 1 Sep 2023

CVE-2023-41051  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade vm-memory to version 0.12.2 or higher.

Overview

vm-memory is a The vm-memory crate provides a set of traits to decouple VM memory consumers from VM memory providers.

Affected versions of this package are vulnerable to Out-of-Bounds through the VolatileMemory::{get_atomic_ref, aligned_as_ref, aligned_as_mut, get_ref, get_array_ref} trait functions. An attacker can perform out-of-bounds memory access if the VolatileMemory::get_slice function returns a VolatileSlice whose length is less than the function's count argument.

References

CVSS Scores

version 3.1