Low, CVSS 1.9crates.ioPublished
linux-loader reading beyond EOF could lead to infinite loop
CVE-2022-23523 · GHSA-52h2-m2cf-9jh6
- Affected
- crates.io linux-loader < 0.8.1
- Fixed in
- 0.8.1· Vendor fix available
- Issue
- 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 See: https://github.com/rust-vmm/linux-loader/pull/125
Recommended action: Upgrade to 0.8.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.