4.0medium
rust-vmm linux-loader vulnerable to Out-of-bounds Read
- Severity
- 4.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-52h2-m2cf-9jh6
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
| Product or package | Versions | Reported by |
|---|---|---|
| rust-vmm linux-loader | < 0.8.1 | CVE List |
| linux-loader (crates.io) | before 0.8.1 | GitHub Advisory Database |
| linux-loader_project linux-loader | before 0.8.1 | NVD |
All scores
| GitHub_M | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 1.9low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
The linux-loader crate used the offsets and sizes provided in the ELF headers to determine the offsets to read from. If those offsets pointed beyond the end of the file this could lead to an infinite loop. Virtual Machine Monitors using the linux-loader crate could enter an infinite loop if the ELF header of the kernel they are loading was modified in a malicious manner.
Patches
The issue has been addressed in 0.8.1
Workarounds
The issue can be mitigated by ensuring that only trusted kernel images are loaded or by verifying that the headers to not point beyond the end of the file.
References
NVD (es)
En versiones anteriores a la 0.8.1, la caja del cargador de Linux utiliza las compensaciones y los tamaños proporcionados en los encabezados ELF para determinar las compensaciones para leer. Si esas compensaciones apuntan más allá del final del archivo, esto podría llevar a que los monitores de máquinas virtuales utilicen la caja `linux-loader` entrando en un bucle infinito si el encabezado ELF del kernel que están cargando se modificó de manera maliciosa. Este problema se ha solucionado en 0.8.1. El problema se puede mitigar asegurándose de que solo se carguen imágenes confiables del kernel o verificando que los encabezados no apunten más allá del final del archivo.
References
| https://github.com/rust-vmm/linux-loader/security/advisories/GHSA-52h2-m2cf-9jh6 | issue-tracking, third-party-advisory, web | |
| https://github.com/rust-vmm/linux-loader/pull/125 | issue-tracking, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-23523 | advisory | |
| https://github.com/rust-vmm/linux-loader/commit/a44f152da4f38c538ed492b1efa8515be2047db2 | web | |
| https://github.com/rust-vmm/linux-loader | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-23523 changed 2025-04-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-52h2-m2cf-9jh6 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-23523 changed 2026-06-17 | Public domain |