CVE-2022-23523
linux-loader reading beyond EOF could lead to infinite loop
Auswirkung
### 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
Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: geringes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | linux-loader | < 0.8.1 | 0.8.1 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen | Behoben durch |
|---|---|---|---|
| Linux-loader Project | Linux-loader | vor 0.8.1 | Kein Hersteller-Update aufgeführt |
| Microsoft | Azure Linux 3.0 ARM | Onlinedienst | Vom Hersteller behoben, nichts zu tun |
| Microsoft | Azure Linux 3.0 x64 | Onlinedienst | Vom Hersteller behoben, nichts zu tun |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/rust-vmm/linux-loader/pull/125
- https://github.com/rust-vmm/linux-loader/security/advisories/GHSA-52h2-m2cf-9jh6
- https://github.com/advisories/GHSA-52h2-m2cf-9jh6
- https://github.com/rust-vmm/linux-loader/commit/a44f152da4f38c538ed492b1efa8515be2047db2
- https://nvd.nist.gov/vuln/detail/CVE-2022-23523