Vulnerability · Published Jul 20, 2023 · Assigned by canonical

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

Medium 6.5

In plain English

A medium-severity security flaw in shim from Red Hat Bootloader Team. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.3%top 73.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8grub2-common1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-common1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-aa641:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-aa641:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-aa64-cdboot1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-aa64-cdboot1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-aa64-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-aa64-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-ia321:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:8grub2-efi-ia32-cdboot1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:8grub2-efi-ia32-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:8grub2-efi-x641:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-x641:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-x64-cdboot1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-x64-cdboot1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-x64-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-x64-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-pc1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-pc1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-pc-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-pc-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:9grub2-ppc64le1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-ppc64le-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-ppc64le-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools-efi1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools-efi1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools-extra1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools-extra1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools-minimal1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools-minimal1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8shim-aa6415.6-1.el8.almaALSA-2022:5095
AlmaLinux:9shim-aa6415.6-1.el9.almaALSA-2022:5099
AlmaLinux:8shim-ia3215.6-1.el8.almaALSA-2022:5095
AlmaLinux:8shim-unsigned-x6415.6-1.el8.almaALSA-2022:5095
AlmaLinux:9shim-unsigned-x6415.6-1.el9.almaALSA-2022:5099
AlmaLinux:8shim-x6415.6-1.el8.almaALSA-2022:5095
AlmaLinux:9shim-x6415.6-1.el9.almaALSA-2022:5099
Debian:12shim15.6-1DEBIAN-CVE-2022-28737
Debian:13shim15.6-1DEBIAN-CVE-2022-28737
Debian:14shim15.6-1DEBIAN-CVE-2022-28737
Rocky Linux:8grub21:2.02-123.el8_6.8RLSA-2022:5095
Rocky Linux:8mokutil1:0.3.0-11.el8_6.1RLSA-2022:5095
Rocky Linux:9mokutil2:0.4.0-8.el9_0.1RLSA-2022:5099
Rocky Linux:8shim0:15.6-1.el8RLSA-2022:5095
Rocky Linux:9shim0:15.6-1.el9.rocky.0.1RLSA-2022:5099
Rocky Linux:9shim0:15.6-1.el9RLSA-2022:5099
Rocky Linux:8shim-unsigned-x640:15.6-1.el8RLSA-2022:5095
Ubuntu:22.04:LTSgrub2-signed1.187.3~22.04.1USN-6355-1
Ubuntu:22.04:LTSgrub2-unsigned2.06-2ubuntu14.1USN-6355-1
Ubuntu:22.04:LTSshim15.7-0ubuntu1UBUNTU-CVE-2022-28737
Ubuntu:22.04:LTSshim15.7-0ubuntu1USN-6355-1
Ubuntu:22.04:LTSshim-signed1.51.3USN-6355-1

Affected products (as reported)

VendorProductVersions
Red Hat Bootloader Team shim 0 – before 15.6

References