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

Published May 26, 2022
·
Updated

A flaw was found in shim during the handling of EFI executables. A crafted EFI image can lead to an overflow in shim. This flaw allows an attacker to perform an out-of-bounds write in memory. A successful attack can lead to data integrity, confidentiality issues, and arbitrary code execution.

Other sources

There's a possible overflow in handleimage() when shim tries to load and execute crafted EFI executables; The handleimage() 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.

There's a possible overflow in handleimage() when shim tries to load and execute crafted EFI executables. The handleimage() function takes in account by the SizeOfRawData field from each section to be load, an attacker can leverage this to perform out-of-bound writes into memory. Arbitrary code execution is not discarded in such scenario.

— Red Hat

Affected Software

17 affected componentsFixes available
ubuntu/shim<15.6
15.6
redhat/shim<0:15.6-1.el8
0:15.6-1.el8
redhat/shim-unsigned-x64<0:15.6-1.el8
0:15.6-1.el8
redhat/shim<0:15.6-1.el9
0:15.6-1.el9
redhat/shim-unsigned-x64<0:15.6-1.el9
0:15.6-1.el9
redhat Shim<15.6
redhat/shim<15.6
15.6
Microsoft azl3 shim 15.8-5
Microsoft azl3 shim-unsigned-aarch64 15.8-5
Microsoft azl3 shim-unsigned-x64 15.8-5
Microsoft azl3 shim-unsigned-x64 15.4-3
Microsoft azl3 shim-unsigned-aarch64 15.4-2
Microsoft azl3 shim 15.4-2
debian/shim<15.6-1
15.6-1
debian/shim<15.6-1
15.6-1
debian/shim<15.6-1
15.6-1
debian/shim
16.1-2~deb12u116.1-2~deb13u116.1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/shim to a version that resolves this vulnerability.

    Fixed in 15.6
  2. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 0:15.6-1.el8
  3. Upgrade

    Upgrade redhat/shim-unsigned-x64 to a version that resolves this vulnerability.

    Fixed in 0:15.6-1.el8
  4. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 0:15.6-1.el9
  5. Upgrade

    Upgrade redhat/shim-unsigned-x64 to a version that resolves this vulnerability.

    Fixed in 0:15.6-1.el9
  6. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 15.6
  7. Upgrade

    Upgrade debian/shim to a version that resolves this vulnerability.

    Fixed in 16.1-2~deb12u1Fixed in 16.1-2~deb13u1Fixed in 16.1-2
  8. Upgrade

    Upgrade debian/shim to a version that resolves this vulnerability.

    Fixed in 15.6-1

Event History

May 26, 2022
Data Sourced
via Red Hat·08:50 PM
DescriptionSeverityAffected Software
Jun 7, 2022
CVE Published
05:00 PM
Jul 20, 2023
CVE Published
via MITRE·12:26 AM
Data Sourced
via MITRE·12:26 AM
DescriptionSeverity
Data Sourced
01:15 AM
Description
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeaknessAffected Software
Sep 11, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Nov 11, 2026
Data Sourced
via OSV·09:47 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-28737?

CVE-2022-28737 is a vulnerability in shim that allows an attacker to perform out-of-bounds writes into memory by leveraging a crafted EFI image.

2

What is the severity of CVE-2022-28737?

The severity of CVE-2022-28737 is high with a CVSS score of 7.8.

3

Which software is affected by CVE-2022-28737?

The Red Hat Shim package versions up to 15.6, Red Hat Shim Unsigned x64 package versions up to 15.6, Red Hat Shim package versions up to 15.6 on el8, Red Hat Shim Unsigned x64 package versions up to 15.6 on el8, Red Hat Shim package versions up to 15.6 on el9, Red Hat Shim Unsigned x64 package versions up to 15.6 on el9, Ubuntu Shim package versions up to 15.6, and Debian Shim package versions up to 15.4-7~deb10u1 are affected by CVE-2022-28737.

4

How can an attacker exploit CVE-2022-28737?

An attacker can exploit CVE-2022-28737 by using a crafted EFI image to perform out-of-bounds writes into memory.

5

Is there a fix available for CVE-2022-28737?

Yes, the remedy for CVE-2022-28737 is to update to Red Hat Shim package version 15.6 or later, Red Hat Shim Unsigned x64 package version 15.6 or later, Ubuntu Shim package version 15.6 or later, or Debian Shim package version 15.7-1~deb10u1 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203