CVE-2022-28737 There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables

Medium 6.5 Published Updated

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 7All versions15.7-150100.3.35.1
shim SUSE:Enterprise Storage 7.1All versions15.7-150300.4.11.1
shim SUSE:Enterprise Storage 7.1All versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions15.7-150100.3.35.1
shim SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions15.7-150100.3.35.1
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Micro 5.1All versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Micro 5.1All versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Micro 5.2All versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Micro 5.2All versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Micro 5.3All versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Micro 5.3All versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Micro 5.4All versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Micro 5.4All versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Real Time 15 SP3All versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Real Time 15 SP3All versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Server 12 SP2-BCLAll versions15.7-22.15.1
shim SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions15.7-25.24.1
shim SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions15.7-25.27.1
shim SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions15.7-25.24.1
shim SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions15.7-25.27.1
shim SUSE:Linux Enterprise Server 12 SP5All versions15.7-25.24.1
shim SUSE:Linux Enterprise Server 12 SP5All versions15.7-25.27.1
shim SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions15.7-150100.3.35.1
shim SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions15.7-150100.3.35.1
shim SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions15.7-150300.4.16.1
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions15.7-25.24.1
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions15.7-25.27.1
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions15.7-25.24.1
shim SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions15.7-25.27.1
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions15.7-150100.3.35.1
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions15.7-150100.3.35.1
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions15.7-150300.4.11.1
shim SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions15.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.

Sources

Also known as AZL-27559, AZL-35252, AZL-40910, AZL-41063, DEBIAN-CVE-2022-28737, GHSA-hmxr-46w2-jjwh and 8 more.

Is CVE-2022-28737 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free