Vulnerability Details : CVE-2022-23523
In versions prior to 0.8.1, the linux-loader crate uses the offsets and sizes provided in the ELF headers to determine the offsets to read from. If those offsets point beyond the end of the file this could lead to Virtual Machine Monitors using the `linux-loader` crate entering an infinite loop if the ELF header of the kernel they are loading was modified in a malicious manner. This 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 do not point beyond the end of the file.
Vulnerability category: Overflow
Products affected by CVE-2022-23523
- cpe:2.3:a:linux-loader_project:linux-loader:*:*:*:*:*:rust:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-23523
0.04%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 13 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-23523
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
1.8
|
3.6
|
NIST | |
4.0
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
2.5
|
1.4
|
GitHub, Inc. |
CWE ids for CVE-2022-23523
-
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.Assigned by: security-advisories@github.com (Secondary)
-
The product reads data past the end, or before the beginning, of the intended buffer.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2022-23523
-
https://github.com/rust-vmm/linux-loader/pull/125
loader: x86_64: elf: Avoid reading beyond file end by likebreath · Pull Request #125 · rust-vmm/linux-loader · GitHubIssue Tracking;Patch;Third Party Advisory
-
https://github.com/rust-vmm/linux-loader/security/advisories/GHSA-52h2-m2cf-9jh6
Reading beyond EOF could lead to infinite loop · Advisory · rust-vmm/linux-loader · GitHubIssue Tracking;Third Party Advisory
Jump to