Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. linux-loader
  4. ›
  5. CVE-2022-23523

CVE-2022-23523: linux-loader reading beyond EOF could lead to infinite loop

December 12, 2022

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.

References

  • github.com/advisories/GHSA-52h2-m2cf-9jh6
  • github.com/rust-vmm/linux-loader
  • github.com/rust-vmm/linux-loader/commit/a44f152da4f38c538ed492b1efa8515be2047db2
  • github.com/rust-vmm/linux-loader/pull/125
  • github.com/rust-vmm/linux-loader/security/advisories/GHSA-52h2-m2cf-9jh6
  • nvd.nist.gov/vuln/detail/CVE-2022-23523

Code Behaviors & Features

Detect and mitigate CVE-2022-23523 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.1

Fixed versions

  • 0.8.1

Solution

Upgrade to version 0.8.1 or above.

Impact 1.9 LOW

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-125: Out-of-bounds Read
  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

cargo/linux-loader/CVE-2022-23523.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:45 +0000.