{"id":"EUVD-2023-2414","enisaUuid":"4b541d60-878f-3338-b175-7f893ecf23cb","description":"In a typical Virtual Machine Monitor (VMM) there are several components, such as boot loader, virtual device drivers, virtio backend drivers and vhost drivers, that need to access the VM physical memory. The vm-memory rust crate provides a set of traits to decouple VM memory consumers from VM memory providers. An issue was discovered in the default implementations of the `VolatileMemory::{get_atomic_ref, aligned_as_ref, aligned_as_mut, get_ref, get_array_ref}` trait functions, which allows out-of-bounds memory access if the `VolatileMemory::get_slice` function returns a `VolatileSlice` whose length is less than the function’s `count` argument. No implementations of `get_slice` provided in `vm_memory` are affected. Users of custom `VolatileMemory` implementations may be impacted if the custom implementation does not adhere to `get_slice`\u0027s documentation. The issue started in version 0.1.0 but was fixed in version 0.12.2 by inserting a check that verifies that the `VolatileSlice` returned by `get_slice` is of the correct length. Users are advised to upgrade. There are no known workarounds for this issue.","datePublished":"Sep 1, 2023, 6:22:53 PM","dateUpdated":"Feb 13, 2025, 5:08:47 PM","baseScore":2.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L","references":"https://github.com/rust-vmm/vm-memory/security/advisories/GHSA-49hh-fprx-m68g\nhttps://github.com/rust-vmm/vm-memory/commit/aff1dd4a5259f7deba56692840f7a2d9ca34c9c8\nhttps://crates.io/crates/vm-memory/0.12.2\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XZGJL6BQLU4XCPQLLTW4GSSBTNQXB3TI/\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXRXD5VXBZHBGMUM77B52CJJMG7EJGI/\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYM6CYW2DWRHRAVL2HYTQPXC3J2V77J4/\n","aliases":"CVE-2023-41051\nGHSA-49hh-fprx-m68g\n","assigner":"GitHub_M","epss":0.26,"enisaIdProduct":[{"id":"8e200245-a618-30e3-a60c-bdc92a23317c","product":{"name":"vm-memory","vendor":{"name":"rust-vmm"}},"product_version":"0.1.0, \u003c 0.12.2"}],"enisaIdVendor":[{"id":"f0fecd9c-8257-366d-9cb4-a906074d23e3","vendor":{"name":"rust-vmm"}}],"enisaIdVulnerability":[{"id":"6acaad37-7806-34e7-8c37-a88521076d1f","vulnerability":{"id":"CVE-2023-41051","description":"In a typical Virtual Machine Monitor (VMM) there are several components, such as boot loader, virtual device drivers, virtio backend drivers and vhost drivers, that need to access the VM physical memory. The vm-memory rust crate provides a set of traits to decouple VM memory consumers from VM memory providers. An issue was discovered in the default implementations of the `VolatileMemory::{get_atomic_ref, aligned_as_ref, aligned_as_mut, get_ref, get_array_ref}` trait functions, which allows out-of-bounds memory access if the `VolatileMemory::get_slice` function returns a `VolatileSlice` whose length is less than the function’s `count` argument. No implementations of `get_slice` provided in `vm_memory` are affected. Users of custom `VolatileMemory` implementations may be impacted if the custom implementation does not adhere to `get_slice`\u0027s documentation. The issue started in version 0.1.0 but was fixed in version 0.12.2 by inserting a check that verifies that the `VolatileSlice` returned by `get_slice` is of the correct length. Users are advised to upgrade. There are no known workarounds for this issue.","datePublished":"Sep 1, 2023, 6:22:53 PM","dateUpdated":"Feb 13, 2025, 5:08:47 PM","status":"PUBLISHED","baseScore":2.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L","references":"https://github.com/rust-vmm/vm-memory/security/advisories/GHSA-49hh-fprx-m68g\nhttps://github.com/rust-vmm/vm-memory/commit/aff1dd4a5259f7deba56692840f7a2d9ca34c9c8\nhttps://crates.io/crates/vm-memory/0.12.2\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XZGJL6BQLU4XCPQLLTW4GSSBTNQXB3TI/\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXRXD5VXBZHBGMUM77B52CJJMG7EJGI/\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYM6CYW2DWRHRAVL2HYTQPXC3J2V77J4/\n","enisa_id":"EUVD-2023-2414\n","assigner":"GitHub_M","epss":0.26,"dataProcessed":"Nov 16, 2026, 7:19:21 AM","vulnerabilityProduct":[{"id":"a7fab574-32d6-3870-afde-016783bf7196","product":{"name":"vm-memory","vendor":{"name":"rust-vmm"}},"product_version":"0.1.0, \u003c 0.12.2"}],"vulnerabilityVendor":[{"id":"ca525a8f-fb75-3379-a3d2-5e48a20d1cd4","vendor":{"name":"rust-vmm"}}]}},{"id":"d6eed1bb-c648-3096-b754-6adeb3199380","vulnerability":{"id":"GHSA-49hh-fprx-m68g","description":"Default functions in VolatileMemory trait lack bounds checks, potentially leading to out-of-bounds memory accesses","datePublished":"Sep 4, 2023, 4:35:37 PM","dateUpdated":"Feb 13, 2025, 7:11:48 PM","baseScore":0.0,"references":"https://github.com/rust-vmm/vm-memory/security/advisories/GHSA-49hh-fprx-m68g\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-41051\nhttps://github.com/rust-vmm/vm-memory/issues/250\nhttps://github.com/rust-vmm/vm-memory/commit/aff1dd4a5259f7deba56692840f7a2d9ca34c9c8\nhttps://crates.io/crates/vm-memory/0.12.2\nhttps://github.com/rust-vmm/vm-memory\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXRXD5VXBZHBGMUM77B52CJJMG7EJGI\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYM6CYW2DWRHRAVL2HYTQPXC3J2V77J4\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XZGJL6BQLU4XCPQLLTW4GSSBTNQXB3TI\nhttps://rustsec.org/advisories/RUSTSEC-2023-0056.html\n","enisa_id":"EUVD-2023-2414\n","aliases":"CVE-2023-41051\nGHSA-49hh-fprx-m68g\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:33:56 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[{"id":"de44584c-8843-3828-a56d-f96e1dd5952b","advisory":{"id":"msrc_CVE-2023-41051","description":"Default functions in VolatileMemory trait lack bounds checks in vm-memory","datePublished":"Sep 5, 2023, 12:00:00 AM","dateUpdated":"Aug 12, 2026, 9:05:35 PM","baseScore":0.0,"references":"https://msrc.microsoft.com/csaf/vex/2023/msrc_cve-2023-41051.json\n","aliases":"CVE-2023-41051\n","source":{"id":20,"name":"csaf_microsoft"},"advisoryProduct":[{"id":"4374835e-5131-375e-bfa5-6fad088aab64","product":{"name":"3.0","vendor":{"name":"Wind River"}}},{"id":"a3ea541d-ed9f-37b3-8716-026ff63278aa","product":{"name":"azl3 virtiofsd 0:1.8.0-3.azl3","vendor":{"name":"Microsoft"}}},{"id":"a55c3e20-409b-3f7e-8048-dba47605675e","product":{"name":"Azure Linux","vendor":{"name":"Microsoft"}}},{"id":"ac99e6bb-8e0e-3cdd-ae0e-8e3c0057d11b","product":{"name":"cbl2 virtiofsd 1.8.0-3","vendor":{"name":"Microsoft"}}},{"id":"bde68a34-256e-3649-916e-7303c0d0f963","product":{"name":"2.0","vendor":{"name":"Smiths Medical"}}},{"id":"d621dea4-c45b-3510-b16d-ac33ca54a4a0","product":{"name":"azl3 kata-containers 3.1.3-2","vendor":{"name":"Microsoft"}}},{"id":"d827ea5f-4cea-33ab-865b-11ea4bb6d186","product":{"name":"azl3 kata-containers 0:3.1.3-2.azl3","vendor":{"name":"Microsoft"}}},{"id":"f9090ece-310d-3296-b90a-a0e7b90a3af7","product":{"name":"azl3 virtiofsd 1.8.0-3","vendor":{"name":"Microsoft"}}},{"id":"fd2e67bb-99f1-3fe1-a518-26b8ed7b32a2","product":{"name":"cbl2 virtiofsd 0:1.8.0-3.cbl2","vendor":{"name":"Microsoft"}}}]}}]}