6.5medium
There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables
- Severity
- 6.5medium CVSS:3.1 by canonical
- Exploit likelihood
- 0.40% (higher than 26% of CVEs)
- Published
- Last changed
- Assigned by
- canonical
Description
There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables; The handle_image() function takes into account the SizeOfRawData field from each section to be loaded. An attacker can leverage this to perform out-of-bound writes into memory. Arbitrary code execution is not discarded in such scenario.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| shim | before 15.6 | CVE List |
| redhat shim | before 15.6 | CVE List, NVD |
All scores
| canonical | 6.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables; The handle_image() function takes into account the SizeOfRawData field from each section to be loaded. An attacker can leverage this to perform out-of-bound writes into memory. Arbitrary code execution is not discarded in such scenario.
NVD (es)
Hay un posible desbordamiento en handle_image() cuando shim intenta cargar y ejecutar ejecutables EFI manipulados; La función handle_image() tiene en cuenta el campo SizeOfRawData de cada sección a cargar. Un atacante puede aprovechar esto para realizar escrituras fuera de límites en la memoria. La ejecución de código arbitrario no se descarta en dicho escenario.
References
| https://www.openwall.com/lists/oss-security/2022/06/07/5 | mailing-list, third-party-advisory | |
| https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28737 | issue-tracking, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-28737 changed 2024-10-22 | CVE Terms of Use |
| NVD | CVE-2022-28737 changed 2026-11-10 | Public domain |