Vulnerability · Published Dec 13, 2022 · Assigned by GitHub_M
CVE-2022-23523rust-vmm linux-loader vulnerable to Out-of-bounds Read
Medium 4.0
In plain English
A medium-severity out-of-bounds read in linux-loader from rust-vmm. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities).
Official 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 (as reported)
| Vendor | Product | Versions |
|---|---|---|
| rust-vmm | linux-loader | < 0.8.1 |
Weakness: CWE-125, CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/rust-vmm/linux-loader/security/advisories/GHSA-52h2-m2cf-9jh6 x_refsource_CONFIRM
- https://github.com/rust-vmm/linux-loader/pull/125 x_refsource_MISC