Skip to content
OpenAdvisories
Medium · 4.0 CVE-2022-23523 EUVD-2022-7510GHSA-52h2-m2cf-9jh6

rust-vmm linux-loader vulnerable to Out-of-bounds Read

Published Dec 13, 2022 · Updated Apr 18, 2025 · Assigned by GitHub_M

Description

In versions prior to 0.8.1, the linux-loader crate uses the offsets and sizes provided in the ELF headers to determine the offsets to read from. If those offsets point beyond the end of the file this could lead to Virtual Machine Monitors using the `linux-loader` crate entering an infinite loop if the ELF header of the kernel they are loading was modified in a malicious manner. This issue has been addressed in 0.8.1. The issue can be mitigated by ensuring that only trusted kernel images are loaded or by verifying that the headers do not point beyond the end of the file.

Affected products

VendorProductAffectedFixed
rust-vmm linux-loader < 0.8.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io linux-loader < 0.8.1 0.8.1 GHSA-52h2-m2cf-9jh6

References