Advisory

GHSA-52h2-m2cf-9jh6

Also known as: CVE-2022-23523

Summary

linux-loader reading beyond EOF could lead to infinite loop

Details

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

Severity

Low Basis: The source's own band: LOW

Dates

Published
2022-12-12 22:35 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

linux-loader

crates.io · All systems

Affected

  • introduced 0, fixed 0.8.1 (semver)

Fixed versions

0.8.1

Fix

  • Fixed version 0.8.1
    cargo update -p linux-loader --precise 0.8.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences