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.
The 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 to not point beyond the end of the file.
See: https://github.com/rust-vmm/linux-loader/pull/125
{ "nvd_published_at": "2022-12-13T08:15:00Z", "github_reviewed_at": "2022-12-12T22:35:41Z", "severity": "LOW", "github_reviewed": true, "cwe_ids": [ "CWE-119", "CWE-125", "CWE-835" ] }