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.
References (2)
Core 2
Core References
Issue Tracking, Third Party Advisory x_refsource_confirm
https://github.com/rust-vmm/linux-loader/security/advisories/GHSA-52h2-m2cf-9jh6
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/rust-vmm/linux-loader/pull/125
Scores
CVSS v3
4.0
EPSS
0.0004
EPSS Percentile
13.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-119
CWE-125
Status
published
Products (2)
crates.io/linux-loader
0 - 0.8.1crates.io
linux-loader_project/linux-loader
< 0.8.1
Published
Dec 13, 2022
Tracked Since
Feb 18, 2026