CVE-2022-28737 There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables
An attacker can execute arbitrary code by exploiting a memory overflow in the shim bootloader when loading crafted EFI executables.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-28737?
CVE-2022-28737 is a medium-severity memory corruption vulnerability in Red Hat Bootloader Team shim, published on 20 Jul 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2022-28737?
It affects 1 product.
Linux distribution packages (40)
shim SUSE:Enterprise Storage 7 | All versions | 15.7-150100.3.35.1 |
shim SUSE:Enterprise Storage 7.1 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Enterprise Storage 7.1 | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 15.7-150100.3.35.1 |
shim SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 15.7-150100.3.35.1 |
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Micro 5.1 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Micro 5.1 | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Micro 5.2 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Micro 5.2 | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Micro 5.3 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Micro 5.3 | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Micro 5.4 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Micro 5.4 | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 15.7-22.15.1 |
shim SUSE:Linux Enterprise Server 12 SP4-ESPOS | All versions | 15.7-25.24.1 |
shim SUSE:Linux Enterprise Server 12 SP4-ESPOS | All versions | 15.7-25.27.1 |
shim SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 15.7-25.24.1 |
shim SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 15.7-25.27.1 |
shim SUSE:Linux Enterprise Server 12 SP5 | All versions | 15.7-25.24.1 |
shim SUSE:Linux Enterprise Server 12 SP5 | All versions | 15.7-25.27.1 |
shim SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 15.7-150100.3.35.1 |
shim SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 15.7-150100.3.35.1 |
shim SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 15.7-150300.4.16.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 15.7-25.24.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 15.7-25.27.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 15.7-25.24.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 15.7-25.27.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 15.7-150100.3.35.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 15.7-150100.3.35.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 15.7-150300.4.11.1 |
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 15.7-150300.4.16.1 |
Products include Redhat Shim.
How do I fix CVE-2022-28737?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-28737 being exploited?
There is no known exploitation of CVE-2022-28737 in the wild and no public exploit code.
Other vulnerabilities in Red Hat Bootloader Team shim
Sources
Also known as AZL-27559, AZL-35252, AZL-40910, AZL-41063, DEBIAN-CVE-2022-28737, GHSA-hmxr-46w2-jjwh and 8 more.