{"id":"CVE-2022-23523","aliases":["CVE-2022-23523","GHSA-52h2-m2cf-9jh6"],"related":[],"kind":"vulnerability","state":"published","title":"rust-vmm linux-loader vulnerable to Out-of-bounds Read","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe 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.\n\n### Patches\nThe issue has been addressed in 0.8.1\n\n### Workarounds\nThe 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.\n\n### References\n\nSee: https://github.com/rust-vmm/linux-loader/pull/125","format":"markdown","source":"ghsa"},{"lang":"es","text":"En versiones anteriores a la 0.8.1, la caja del cargador de Linux utiliza las compensaciones y los tamaños proporcionados en los encabezados ELF para determinar las compensaciones para leer. Si esas compensaciones apuntan más allá del final del archivo, esto podría llevar a que los monitores de máquinas virtuales utilicen la caja `linux-loader` entrando en un bucle infinito si el encabezado ELF del kernel que están cargando se modificó de manera maliciosa. Este problema se ha solucionado en 0.8.1. El problema se puede mitigar asegurándose de que solo se carguen imágenes confiables del kernel o verificando que los encabezados no apunten más allá del final del archivo.","source":"nvd"}],"published":"2022-12-12T22:35:41.000Z","modified":"2026-06-17T04:30:17.673Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L","score":1.9,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-119","CWE-125","CWE-835"],"affected":[{"ranges":[{"version":"< 0.8.1","status":"affected"}],"vendor":"rust-vmm","product":"linux-loader","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.1"}],"ecosystem":"crates.io","package":"linux-loader","purl":"pkg:cargo/linux-loader","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.8.1"}],"vendor":"linux-loader_project","product":"linux-loader","cpe":"cpe:2.3:a:linux-loader_project:linux-loader:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rust-vmm/linux-loader/security/advisories/GHSA-52h2-m2cf-9jh6","tags":["issue-tracking","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rust-vmm/linux-loader/pull/125","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23523","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rust-vmm/linux-loader/commit/a44f152da4f38c538ed492b1efa8515be2047db2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rust-vmm/linux-loader","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-18T18:28:11.983Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23523","url":"https://www.cve.org/CVERecord?id=CVE-2022-23523","licence":"CVE Terms of Use","modified":"2025-04-18T18:28:35.965Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-52h2-m2cf-9jh6","url":"https://github.com/advisories/GHSA-52h2-m2cf-9jh6","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:20.739Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23523","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23523","licence":"Public domain","modified":"2026-06-17T04:30:17.673Z"}],"updatedAt":"2026-11-25T22:58:17.408Z","epss":{"score":0.00218,"percentile":0.13086,"date":"2026-12-01T12:00:22.000Z"}}