Skip to content
OpenAdvisories
Medium · 6.5 CVE-2022-28737 EUVD-2022-33176GHSA-hmxr-46w2-jjwh

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

Published Jul 20, 2023 · Updated Oct 22, 2024 · 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 products

VendorProductAffectedFixed
Red Hat Bootloader Team shim < 15.6 15.6

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 shim 15.6-1 —
Debian 13 shim 15.6-1 —
Debian 12 shim 15.6-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS grub2-signed 1.187.3~22.04.1 USN-6355-1
Ubuntu 22.04 LTS grub2-unsigned 2.06-2ubuntu14.1 USN-6355-1
Ubuntu 22.04 LTS shim 15.7-0ubuntu1 USN-6355-1
Ubuntu 22.04 LTS shim-signed 1.51.3 USN-6355-1
Ubuntu 20.04 LTS grub2-signed 1.187.3~20.04.1 USN-6355-1
Ubuntu 20.04 LTS grub2-unsigned 2.06-2ubuntu14.1 USN-6355-1
Ubuntu 20.04 LTS shim 15.7-0ubuntu1 USN-6355-1
Ubuntu 20.04 LTS shim-signed 1.40.9 USN-6355-1
Ubuntu 18.04 LTS shim No fix yet —
Ubuntu 16.04 LTS shim No fix yet —
Ubuntu 14.04 LTS shim No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 grub2 +15 1:2.06-27.el9_0.7 RHSA-2022:5099
RHEL 9 shim +3 15.6-1.el9 RHSA-2022:5099
RHEL 8 grub2 +18 1:2.02-123.el8_6.8 RHSA-2022:5095
RHEL 8 shim +4 15.6-1.el8 RHSA-2022:5095
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.4 EUS grub2 +18 1:2.02-99.el8_4.9 RHSA-2022:5096
RHEL 8.4 EUS shim +4 15.6-1.el8 RHSA-2022:5096
RHEL 8.2 EUS grub2 +18 1:2.02-87.el8_2.10 RHSA-2022:5100
RHEL 8.2 EUS shim +4 15.6-1.el8 RHSA-2022:5100
RHEL 8.1 E4S grub2 +16 1:2.02-87.el8_1.10 RHSA-2022:5098
RHEL 8.1 E4S shim +2 15.6-1.el8 RHSA-2022:5098

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 grub2-pc +14 1:2.06-27.el9_0.7.alma ALSA-2022:5099
AlmaLinux 9 shim-x64 +2 15.6-1.el9.alma ALSA-2022:5099
AlmaLinux 8 grub2-pc +16 1:2.02-123.el8_6.8.alma ALSA-2022:5095
AlmaLinux 8 shim-x64 +3 15.6-1.el8.alma ALSA-2022:5095

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 mokutil 2:0.4.0-8.el9_0.1 RLSA-2022:5099
Rocky Linux 9 shim 15.6-1.el9 RLSA-2022:5099
Rocky Linux 8 grub2 1:2.02-123.el8_6.8 RLSA-2022:5095
Rocky Linux 8 mokutil 1:0.3.0-11.el8_6.1 RLSA-2022:5095
Rocky Linux 8 shim +1 15.6-1.el8 RLSA-2022:5095
ReleasePackageFixed inAdvisory
SLES 15 SP5 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
SLES 15 SP4 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLES 15 SP3 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLES 15 SP2 shim 15.7-150100.3.35.1 SUSE-SU-2024:1461-1, SUSE-SU-2023:2086-1
SLES 15 SP1 shim 15.7-150100.3.35.1 SUSE-SU-2023:2086-1
Show 27 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 shim 15.7-25.24.1 SUSE-SU-2024:1462-1, SUSE-SU-2023:2091-1, SUSE-SU-2023:1863-1
SLES 12 SP4 shim 15.7-25.24.1 SUSE-SU-2023:2091-1, SUSE-SU-2023:1863-1
SLES 12 SP2 shim 15.7-22.15.1 SUSE-SU-2023:2150-1
SLES for SAP 15 SP4 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
SLES for SAP 15 SP3 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLES for SAP 15 SP2 shim 15.7-150100.3.35.1 SUSE-SU-2024:1461-1, SUSE-SU-2023:2086-1
SLES for SAP 15 SP1 shim 15.7-150100.3.35.1 SUSE-SU-2023:2086-1
SLES for SAP 12 SP5 shim 15.7-25.24.1 SUSE-SU-2024:1462-1, SUSE-SU-2023:2091-1, SUSE-SU-2023:1863-1
SLES for SAP 12 SP4 shim 15.7-25.24.1 SUSE-SU-2023:2091-1, SUSE-SU-2023:1863-1
SLE Real Time 15 SP3 shim 15.7-150300.4.11.1 SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLE Micro 5.5 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
SLE Micro 5.4 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLE Micro 5.3 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLE Micro 5.2 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLE Micro 5.1 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLE HPC 15 SP4 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
SLE HPC 15 SP3 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SLE HPC 15 SP2 shim 15.7-150100.3.35.1 SUSE-SU-2024:1461-1, SUSE-SU-2023:2086-1
SLE HPC 15 SP1 shim 15.7-150100.3.35.1 SUSE-SU-2023:2086-1
SUSE OpenStack Cloud Crowbar 9 shim 15.7-25.24.1 SUSE-SU-2023:2091-1, SUSE-SU-2023:1863-1
SUSE OpenStack Cloud 9 shim 15.7-25.24.1 SUSE-SU-2023:2091-1, SUSE-SU-2023:1863-1
SUSE Manager Server 4.3 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
SUSE Manager Server 4.2 shim 15.7-150300.4.11.1 SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SUSE Manager Proxy 4.3 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
SUSE Manager Proxy 4.2 shim 15.7-150300.4.11.1 SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SUSE Enterprise Storage 7.1 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
SUSE Enterprise Storage 7 shim 15.7-150100.3.35.1 SUSE-SU-2023:2086-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
openSUSE Leap 15.4 shim 15.7-150300.4.11.1 SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 shim 15.8-150300.4.20.2 SUSE-SU-2024:1368-1
openSUSE Leap Micro 5.3 shim 15.7-150300.4.11.1 SUSE-SU-2024:1368-1, SUSE-SU-2023:2084-1, SUSE-SU-2023:1702-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 shim +2 15.8-3 —
Azure Linux 2 (CBL-Mariner) shim 15.8-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 grub2-pc +12 1:2.06-27.0.6.el9_0.7 ELSA-2022-9596, ELSA-2022-5099
Oracle Linux 8 grub2-pc +15 1:2.02-123.0.7.el8_6.8 ELSA-2022-9595, ELSA-2022-5095
Oracle Linux 8 shim-x64 +1 15.6-1.0.3.el8 ELSA-2022-9465
Oracle Linux 7 mokutil +2 15.6-1.0.7.el7 ELSA-2022-9466

Advisories 28

References